Commit Graph

1164 Commits

Author SHA1 Message Date
Drew DeVault c77a9c27fe api: upgrade gqlgen 2022-10-20 14:03:23 +02:00
Eli Schwartz dea73ff783 when failing to clone a repository, include the used protocol
It fits decently well in the error message, and can help people catch
assumptions such as "I tried to clone a mercurial repository without
hg+", which resulted in builds.sr.ht thinking it was git, and attempting
to use `git clone`.

The error messages from git/hg themselves are not super obvious.

For `git clone` it prints:
```
fatal: repository 'https://hg.sr.ht/~username/reponame/' not found
```

For `hg clone` it prints:
```
abort: HTTP Error 404: NOT FOUND
```

Neither one makes it obvious that you attempted to clone with the wrong
VCS program, and mercurial also doesn't make it obvious if you attempted
to clone with the wrong url, but it's particularly non-obvious to debug
the case of accidentally using git.
2022-10-10 11:28:38 +02:00
Tanguy Fardet 2a9b879050 Make "to-bottom" link sticky too 2022-10-10 11:28:33 +02:00
Theodore Ni f58bbde6bf worker: Update prometheus/client_golang.
This picks up a transitive update to golang.org/x/sys in order to fix
building with Go 1.18+ on aarch64-darwin.
2022-09-22 11:00:00 +02:00
Dhruvin Gandhi 656dec4167 images/guix: stop providing cache from host 2022-09-22 10:57:11 +02:00
Francesco Gazzetta 4fb96bcc10 nixos,guix: Update OpenNIC anycast dns 2022-09-22 10:56:30 +02:00
Haowen Liu f1f6b317bf rockylinux: remove unnecessary update 2022-08-30 10:21:28 +02:00
Francesco Gazzetta a11c84e86d nixos: remove 21.11, it reached EOL
Co-authored-by: Drew DeVault <sir@cmpwn.com>
2022-08-29 15:35:29 +02:00
Haowen Liu 654e30f4e1 ubuntu/impish EOL 2022-08-29 15:35:09 +02:00
Haowen Liu daf7ebe2df Add rockylinux/9 2022-08-29 11:29:50 +02:00
Adnan Maolood 1c7fd53551 worker: Run go fmt and go mod tidy 2022-08-29 11:28:52 +02:00
Drew DeVault fcb43a9e98 schema.sql: add ON DELETE CASCADE to gql_user_wh_delivery 2022-08-16 15:02:53 +02:00
Drew DeVault 63f316fd56 Add schema.sql 2022-08-16 14:55:36 +02:00
Haowen Liu 1936d33c23 Fix F35 build failure
https://builds.sr.ht/~sircmpwn/job/816721#task-genimg-1027
2022-08-15 12:39:12 +02:00
Jason Lenz 1590f480d0 openbsd: build.yml: use latest rather than numerical release number 2022-08-15 12:25:54 +02:00
Jason Lenz 8e299c8a54 openbsd: update latest snapshot weekly and old snapshot monthly 2022-08-15 12:25:53 +02:00
Jason Lenz 30ba94d969 openbsd: add symlink for old version 2022-08-15 12:25:53 +02:00
Jason Lenz 178dc2a48c openbsd: during genimg, continue if syspatch exit status is 0 or 2 2022-08-15 12:25:42 +02:00
Drew DeVault bad3b0ced7 openbsd/6.9: drop
deprecated upstream
2022-08-10 10:49:23 +02:00
Jason Lenz e4c3056ee4 openbsd: add 7.1 2022-07-26 13:53:41 +02:00
Simon Ser 189cebe60b worker: add -config flag
Useful when invoking "go run" from the parent dir, e.g. so that
the worker can access the local images/ dir.
2022-07-26 13:50:51 +02:00
Simon Ser 7f1998a01a worker: stop using a special exit status for complete-build
Use a file instead. This should be much less fragile.

Fixes ssh connection failures (they return 255) from making the
build succeed (and skip subsequent tasks). See for instance [1].

[1]: https://builds.sr.ht/~emersion/job/792004
2022-07-26 13:50:51 +02:00
Drew DeVault 2689f2a753 alpine: update latest alias 2022-07-22 10:44:00 +02:00
Drew DeVault 4fe53096ce alpine/genimg: drop urandom service 2022-07-07 10:25:00 +02:00
Drew DeVault 090e9e9756 contrib/crontab: update fedora 2022-07-06 10:27:58 +02:00
Drew DeVault 92df1be896 alpine: add 3.16 2022-07-02 11:41:24 +02:00
Drew DeVault 11c0c5cf05 Update core-go 2022-06-30 12:33:56 +02:00
Adnan Maolood 470032569e buildsrht: Use GraphQL to submit builds
Use the GraphQL API to submit builds so that job creation webhooks are
delivered.
2022-06-29 17:13:44 +02:00
Adnan Maolood 0a2552096c api/graph: Implement GraphQL-native user webhooks
Implement GraphQL-native user webhooks for job creation events.
2022-06-29 17:13:44 +02:00
Drew DeVault 73d780149d Drop Fedora 34 and NixOS 21.05 2022-06-28 09:50:17 +02:00
Francesco Gazzetta a4b061233c nixos: add 22.05 2022-06-17 12:34:32 +02:00
Hanna c27bb9d14d recursively initialize submodules
Updates the clone task to recursively init submodules rather
than only initializing at a depth of 1.
2022-06-17 12:34:31 +02:00
Simon Ser 303fe05186 images/freebsd: upgrade to 13.1-RELEASE
See https://www.freebsd.org/releases/13.1R/relnotes/
2022-05-30 12:15:22 +02:00
Dhruvin Gandhi 48fa5794c1 alpine: run setup-timezone conditionally
alpine-conf dropped setup-timezone's -z flag used to specify the
timezone and is now accepting it as an arg (in commit 3b793bb).
2022-05-23 10:04:40 +02:00
Drew DeVault 0467110ee8 qemu: upgrade to 7.0.0 2022-05-13 10:14:30 +02:00
Drew DeVault 6c04767f64 contrib/submit_image_build: add additional tag 2022-05-11 12:37:43 +02:00
Haowen Liu d749086619 ubuntu: kinetic starts development 2022-05-11 12:36:32 +02:00
Conrad Hoffmann acc8707af9 Add api-origin to example config
If the service is not behind a reverse proxy (e.g. during local
development/testing) then this is needed by meta.sr.ht for API discovery
for all services that have a seperate API component. Add this (commented
out) to the example config, to make it easier to discover (and require
less documentation).
2022-05-10 10:31:02 +02:00
Haowen Liu 84c5482ded ubuntu: fix multiple repositories 2022-05-06 14:56:11 +02:00
Haowen Liu a8c6bfb4d6 ubuntu: apt quiet install 2022-05-06 14:55:43 +02:00
Konrad Borowski 4894f3a8f7 crontab: remove NixOS/21.05 2022-05-06 14:54:41 +02:00
Drew DeVault c086156ca5 loaders: fix jobs by ID 2022-04-28 13:37:54 +02:00
Drew DeVault 6ef4d59a12 jobs.py: fix markupsafe import 2022-04-28 13:37:48 +02:00
Haowen Liu 39e6854a69 Add fdisk to required packages 2022-04-28 11:27:41 +02:00
Thorben Günther c3c93ddee3 api: Bump core-go
With the old core-go, running a GraphQL API request with an invalid
token does not error out with "Authentication error" but instead fails
silently.
References: https://todo.sr.ht/~emersion/hut/21
2022-04-28 11:27:39 +02:00
Haowen Liu fd4b6c233c fedora: 36 released 2022-04-28 11:19:27 +02:00
xdavidwu 0a9901149a master-shell: implement -t option for tags 2022-04-18 11:31:59 +02:00
Haowen Liu 5e4a2ee2a4 ubuntu: jammy jellyfish released 2022-04-18 10:51:24 +02:00
Benjamin Riefenstahl 7a21607c4b images/control: Distinguish error messages
Having the same error message for several different conditions is
confusing.
2022-04-13 10:56:03 +02:00
Benjamin Riefenstahl fca5b442d8 images/control (_wait_boot): Use "echo" instead of "true".
9front does not have "true", we'd have to install it.  But that would
make it a more non-standard install.
2022-04-13 10:55:52 +02:00