Commit Graph

1164 Commits

Author SHA1 Message Date
Benjamin Riefenstahl e32d7e67f7 contrib/crontab (debian/oldstable): Fix the title 2022-04-13 10:55:45 +02:00
xdavidwu 9ad1d1d9b6 images/archlinux: use sudo inside chroot for run_normal
Instead of relying on current uid/gid who run sudo ./genimg, use sudo
inside chroot. This fixes when not running genimg under sudo, or who run
sudo is different from build:build in new rootfs.
2022-04-08 14:10:24 +02:00
xdavidwu 77783287aa images/archlinux: set gitconfig owner with chroot
This fixes bootstraping in environment without build:build and
unexpected ownership when bootstrap host has different build:build.
2022-04-08 14:10:24 +02:00
xdavidwu e1e6de9cda images/archlinux: do not use keyring from bootstrap host
Instead of relying on pacman keyring on bootstrap host, generate a new
one. This prevents unexpected trust in keyring when bootstrap host have
additional keys configured.
2022-04-08 14:10:23 +02:00
xdavidwu f7151bb098 master-shell: submit: fix -n (note) option
Before this, note from `submit -n test` was encoded as `{test}`.
2022-04-08 14:10:11 +02:00
Simon Ser eca7693e23 images/freebsd: upgrade to 12.3
I missed the release a few months back, and now 12.2 has reached
end-of-life.
2022-04-08 14:09:55 +02:00
Dhruvin Gandhi 27d6a2596e worker: add fallback for instanceName of hutConfig 2022-03-25 09:33:26 +01:00
Drew DeVault e234992bc9 Remove models_gen.go 2022-03-24 14:42:54 +01:00
Drew DeVault 6299f6d5e8 api: refactor build 2022-03-24 14:00:21 +01:00
Drew DeVault 3a89d06613 api: refactor loader generation 2022-03-24 11:48:01 +01:00
Simon Ser 7e066abea4 worker: create config file for hut
Co-authored-by: Dhruvin Gandhi <contact@dhruvin.dev>
2022-03-24 11:14:55 +01:00
Drew DeVault 3dffe62942 .builds/alpine.yml: upgrade to 3.15 2022-02-21 18:21:38 +01:00
Drew DeVault a6b7982eb7 alpine: drop 3.11
Out of support upstream. No need to send notice to users, it hasn't been
used for a build since late 2021.
2022-02-21 11:14:55 +01:00
Haowen Liu e9339107c3 EOL: ubuntu/hirsute 2022-02-07 09:42:59 +01:00
Drew DeVault 644c821c8a qemu: upgrade to 6.2.0 2022-02-03 13:10:59 +01:00
Benjamin Riefenstahl 487dd36cf8 images/qemu/Dockerfile (COPY): Use wildcards. 2022-02-03 11:44:14 +01:00
Benjamin Riefenstahl 5a7b3b84f1 images/9front/functions (guest_ssh): Use Plan 9 style port spec. 2022-02-03 11:44:13 +01:00
Benjamin Riefenstahl 13d5a0654f images/9front/functions (guest_ssh): Fix parameter parsing. 2022-02-03 11:44:12 +01:00
Dhruvin Gandhi 124154b8a4 images/guix: Increase the memory for guix pull 2022-02-01 08:23:28 +01:00
Haowen Liu 5054bcbbf1 crontab: remove hirsute 2022-01-21 13:29:32 +01:00
Ryan Gonzalez edac5158b2 images/fedora: Install dnf-plugins-core
This is needed for dnf config-manager to work.
2022-01-19 07:56:52 +01:00
Simon Ser d2ff99146a go generate 2022-01-11 09:39:03 +01:00
Simon Ser 268fa61fff api/graph: add missing non-null types
Entries of the lists cannot be null.
2022-01-11 09:39:02 +01:00
Dhruvin Gandhi aa4a1806c0 images/guix: use %qemu-static-networking
static-networking-service is deprecated in guix. It is recommended to
use static-networking-service-type with a list of static-networking
records, one for each interface. base services has one defined for
localhost already. We extend that with %qemu-static-networking.

Fixes: https://todo.sr.ht/~dhruvin/builds.sr.ht-guix/8
2022-01-02 09:54:51 +01:00
Thorben Günther acd73740d7 api: Add settings field to version 2022-01-02 09:54:50 +01:00
Haowen Liu e3a516ae97 crontab: fix ubuntu/oldlts arch 2022-01-02 09:50:36 +01:00
Simon Ser 0928d2a1e9 api: import github.com/99designs/gqlgen
Create a new generate.go file which imports github.com/99designs/gqlgen.
This fixes this kind of error because go mod now knows about the
dependency:

    /home/simon/go/pkg/mod/github.com/99designs/gqlgen@v0.13.0/cmd/gen.go:9:2: missing go.sum entry for module providing package github.com/urfave/cli/v2 (imported by github.com/99designs/gqlgen/cmd); to add:
    	go get github.com/99designs/gqlgen/cmd@v0.13.0
    /home/simon/go/pkg/mod/github.com/99designs/gqlgen@v0.13.0/internal/imports/prune.go:15:2: missing go.sum entry for module providing package golang.org/x/tools/go/ast/astutil (imported by github.com/99designs/gqlgen/internal/imports); to add:
    	go get github.com/99designs/gqlgen/internal/imports@v0.13.0
    /home/simon/go/pkg/mod/github.com/99designs/gqlgen@v0.13.0/internal/code/packages.go:8:2: missing go.sum entry for module providing package golang.org/x/tools/go/packages (imported by github.com/99designs/gqlgen/internal/code); to add:
    	go get github.com/99designs/gqlgen/internal/code@v0.13.0
    /home/simon/go/pkg/mod/github.com/99designs/gqlgen@v0.13.0/internal/imports/prune.go:16:2: missing go.sum entry for module providing package golang.org/x/tools/imports (imported by github.com/99designs/gqlgen/internal/imports); to add:
    	go get github.com/99designs/gqlgen/internal/imports@v0.13.0
    graph/resolver.go:7: running "go": exit status 1
    missing go.sum entry for module providing package github.com/vektah/dataloaden; to add:
    	go mod download github.com/vektah/dataloaden
    loaders/middleware.go:3: running "./gen": exit status 1
2021-12-24 10:55:29 +01:00
Simon Ser 45e539eacc api/graph: use GraphQL descriptions for docs 2021-12-24 10:55:29 +01:00
Drew DeVault f18050057d alpine: update release symlinks 2021-12-20 11:12:29 +01:00
Drew DeVault 6de588aca2 Alpine: add 3.15 image 2021-12-20 10:46:54 +01:00
Drew DeVault ad16113230 Escape names for build badges
This *looks* like an XSS vulnerability, but shouldn't be, because we
only show SVGs in <img> tags which are protected from XSS even when
served from the same domain.

However, it's still wrong, so let's fix the bug.
2021-12-20 10:11:11 +01:00
Dhruvin Gandhi 91a84013e1 images/guix: fetch or build latest guix
We now will build the latest guix if the CI doesn't have substitutes
available. This will ensure the builds are strictly up to date.

This will prevent CI from making guix downgrade.

Fixes: https://todo.sr.ht/~dhruvin/builds.sr.ht-guix/6
2021-12-17 12:20:58 +01:00
john muhl c4831c2adf Add Libre.js header to yaml.js 2021-12-17 11:57:46 +01:00
Ignas Kiela 2614bc0cb7 api: instrument build submissions 2021-12-15 11:24:03 +01:00
Simon Ser c24f2c212e Only fetch log body when requested
If the GraphQL query only fetches the fullURL and not the
last128KiB, don't make an extra HTTP request.

This allows the user to fetch logs on its own, see e.g. [1].

[1]: ac5cc211e2
2021-12-15 11:23:37 +01:00
Simon Ser 4ba8dcd6fb go fmt 2021-12-13 10:55:19 +01:00
Simon Ser ccfb55e263 Pass context to FetchLogs
The context will take care of the HTTP request timeout.
2021-12-13 10:55:18 +01:00
Ignas Kiela 690f1aa16c Add build submission and queue monitoring 2021-12-08 12:06:10 +01:00
Ignas Kiela 994d5d8174 Use requests session to keep connections to build runners alive 2021-12-08 12:06:10 +01:00
Ignas Kiela 5b995c3cc4 Monitor build log cache hits 2021-12-08 12:06:10 +01:00
Julien Moutinho 97fcc9ec92 worker: update go.{mod,sum} for go-redis 2021-12-07 11:55:26 +01:00
Julien Moutinho f79b5ae8b1 worker: update go-redis to support Unix sockets 2021-12-07 11:55:25 +01:00
Dmitry Kalinkin db0f41a44c crontab: add nixos/21.11 2021-12-07 11:47:56 +01:00
Dmitry Kalinkin 414f839bc0 images/nixos: point latest to 21.11 2021-12-04 11:56:32 +01:00
Dmitry Kalinkin e0b37d4183 images/nixos: add 21.11 2021-12-04 11:39:06 +01:00
Dhruvin Gandhi 56c93dc72a submit_GET: accept note via query params 2021-12-03 12:39:08 +01:00
Drew DeVault 4977405935 submit_GET: fix manifest via query params 2021-12-02 10:12:51 +01:00
Drew DeVault 36518bc029 Legacy API: fix exception when tags is not an array 2021-12-01 10:02:10 +01:00
Francesco Gazzetta 570f7196f9 Remove end-of-life NixOS 20.09 2021-11-29 11:10:25 +01:00
Haowen Liu cf686aa966 Remove obselete Fedora build scripts 2021-11-18 12:54:18 +01:00