Commit 7c9ece04dc

7c9ece04dc3e7ca6ecf12981124ce57ed4a3e948

parent: 4a934923dc

Verified · cmc ci/build: success ci/quality: success ci/test: success

cmc <hello@cleberg.net> · 2026-11-18 03:44 UTC

deps: go 1.27.4, gitbay-ci:4

Go 1.27.3's net/http is affected by GO-2026-6859 (MaxBytesReader header
race crashing the HTTP/1 server), fixed in 1.27.4. The image sets
GOTOOLCHAIN=local, so jobs move to gitbay-ci:4 built from
golang:1.27.4-trixie on the runner host.

Layout: unified · split

.gitbay/ci.yml +4 −4
@@ -2,7 +2,7 @@ jobs:
2 # Fast feedback: this finishes in seconds, so it is not held behind the 2 # Fast feedback: this finishes in seconds, so it is not held behind the
3 # suite. 3 # suite.
4 build: 4 build:
5 image: localhost/gitbay-ci:3 5 image: localhost/gitbay-ci:4
6 steps: 6 steps:
7 - go build ./... 7 - go build ./...
8 - go vet ./... 8 - go vet ./...
@@ -13,7 +13,7 @@ jobs:
13 # The 20m is under the runner's own 30m limit, so go times out first and 13 # The 20m is under the runner's own 30m limit, so go times out first and
14 # says which test hung instead of the runner killing it blind. 14 # says which test hung instead of the runner killing it blind.
15 test: 15 test:
16 image: localhost/gitbay-ci:3 16 image: localhost/gitbay-ci:4
17 steps: 17 steps:
18 - missing=""; for t in git git-lfs gpg; do command -v "$t" >/dev/null || missing="$missing $t"; done; test -x /usr/sbin/sshd || missing="$missing sshd"; test -z "$missing" || { echo "runner is missing:$missing"; exit 1; } 18 - missing=""; for t in git git-lfs gpg; do command -v "$t" >/dev/null || missing="$missing $t"; done; test -x /usr/sbin/sshd || missing="$missing sshd"; test -z "$missing" || { echo "runner is missing:$missing"; exit 1; }
19 - go test ./... -count=1 -timeout 20m 19 - go test ./... -count=1 -timeout 20m
@@ -25,7 +25,7 @@ jobs:
25 # sha256 Qlty publishes beside it, and unpacked with Python because this 25 # sha256 Qlty publishes beside it, and unpacked with Python because this
26 # image has no xz. 26 # image has no xz.
27 quality: 27 quality:
28 image: localhost/gitbay-ci:3 28 image: localhost/gitbay-ci:4
29 steps: 29 steps:
30 - curl -fsSL -o /tmp/qlty.tar.xz https://qlty-releases.s3.amazonaws.com/qlty/v0.661.0/qlty-x86_64-unknown-linux-gnu.tar.xz && echo "fa07eb51fbb32a0854113e81ce2d957b73f1c027c58b478d32c233b6aba7a977 /tmp/qlty.tar.xz" | sha256sum -c - && python3 -c "import tarfile; tarfile.open('/tmp/qlty.tar.xz').extractall('/tmp', filter='data')" 30 - curl -fsSL -o /tmp/qlty.tar.xz https://qlty-releases.s3.amazonaws.com/qlty/v0.661.0/qlty-x86_64-unknown-linux-gnu.tar.xz && echo "fa07eb51fbb32a0854113e81ce2d957b73f1c027c58b478d32c233b6aba7a977 /tmp/qlty.tar.xz" | sha256sum -c - && python3 -c "import tarfile; tarfile.open('/tmp/qlty.tar.xz').extractall('/tmp', filter='data')"
31 - QLTY_TELEMETRY=off /tmp/qlty-x86_64-unknown-linux-gnu/qlty check --all --no-progress --filter trufflehog,gofmt 31 - QLTY_TELEMETRY=off /tmp/qlty-x86_64-unknown-linux-gnu/qlty check --all --no-progress --filter trufflehog,gofmt
@@ -46,7 +46,7 @@ jobs:
46 # `build trigger krz/gitbay vuln` runs it on demand before a release 46 # `build trigger krz/gitbay vuln` runs it on demand before a release
47 # (#177). 47 # (#177).
48 vuln: 48 vuln:
49 image: localhost/gitbay-ci:3 49 image: localhost/gitbay-ci:4
50 schedule: "0 3 * * *" 50 schedule: "0 3 * * *"
51 steps: 51 steps:
52 - go run golang.org/x/vuln/cmd/govulncheck@latest ./... 52 - go run golang.org/x/vuln/cmd/govulncheck@latest ./...
.gitbay/wiki/Admin.org +2 −2
@@ -1143,7 +1143,7 @@ where every repository is trusted. There is no automatic fallback: a
1143runner started with =-isolation podman= that cannot find a working 1143runner started with =-isolation podman= that cannot find a working
1144podman exits rather than running a build unsandboxed. 1144podman exits rather than running a build unsandboxed.
1145 1145
1146gitbay's own jobs name =localhost/gitbay-ci:3=, built from 1146gitbay's own jobs name =localhost/gitbay-ci:4=, built from
1147=deploy/Containerfile.ci= on the runner host. A job's image must carry 1147=deploy/Containerfile.ci= on the runner host. A job's image must carry
1148what its steps need: the suite drives real git, git-lfs, gpg and sshd and 1148what its steps need: the suite drives real git, git-lfs, gpg and sshd and
1149asserts they exist before running, so the stock runner default would fail 1149asserts they exist before running, so the stock runner default would fail
@@ -1152,7 +1152,7 @@ it immediately. Build or rebuild it with:
1152#+begin_src sh 1152#+begin_src sh
1153ssh -p 2222 root@<host> 'cat > /tmp/Containerfile.ci' < deploy/Containerfile.ci 1153ssh -p 2222 root@<host> 'cat > /tmp/Containerfile.ci' < deploy/Containerfile.ci
1154ssh -p 2222 root@<host> 'su - ci-runner -s /bin/sh -c \ 1154ssh -p 2222 root@<host> 'su - ci-runner -s /bin/sh -c \
1155 "podman build -t localhost/gitbay-ci:3 -f /tmp/Containerfile.ci /tmp"' 1155 "podman build -t localhost/gitbay-ci:4 -f /tmp/Containerfile.ci /tmp"'
1156#+end_src 1156#+end_src
1157 1157
1158The tag is deliberate rather than =:latest=: changing the file means 1158The tag is deliberate rather than =:latest=: changing the file means
deploy/Containerfile.ci +2 −2
@@ -8,12 +8,12 @@
8# 8#
9# scp -P 2222 deploy/Containerfile.ci root@gitbay.org:/var/lib/gitbay-runner/gitbay-ci.Containerfile 9# scp -P 2222 deploy/Containerfile.ci root@gitbay.org:/var/lib/gitbay-runner/gitbay-ci.Containerfile
10# ssh -p 2222 root@gitbay.org 'chown ci-runner /var/lib/gitbay-runner/gitbay-ci.Containerfile \ 10# ssh -p 2222 root@gitbay.org 'chown ci-runner /var/lib/gitbay-runner/gitbay-ci.Containerfile \
11# && su - ci-runner -s /bin/sh -c "podman build -t localhost/gitbay-ci:3 -f gitbay-ci.Containerfile ." \ 11# && su - ci-runner -s /bin/sh -c "podman build -t localhost/gitbay-ci:4 -f gitbay-ci.Containerfile ." \
12# && rm /var/lib/gitbay-runner/gitbay-ci.Containerfile' 12# && rm /var/lib/gitbay-runner/gitbay-ci.Containerfile'
13# 13#
14# Tagged, not :latest, so a change to this file is a deliberate bump in 14# Tagged, not :latest, so a change to this file is a deliberate bump in
15# .gitbay/ci.yml rather than a silent change under a running branch. 15# .gitbay/ci.yml rather than a silent change under a running branch.
16FROM docker.io/library/golang:1.27.3-trixie 16FROM docker.io/library/golang:1.27.4-trixie
17 17
18# gitbay-runner-prune.service skips images carrying this label. A localhost/ 18# gitbay-runner-prune.service skips images carrying this label. A localhost/
19# image cannot be pulled back, so pruning it fails every job that names it. 19# image cannot be pulled back, so pruning it fails every job that names it.
go.mod +1 −1
@@ -1,6 +1,6 @@
1module gitbay.org/gitbay 1module gitbay.org/gitbay
2 2
3go 1.27.3 3go 1.27.4
4 4
5require ( 5require (
6 filippo.io/age v1.3.2 6 filippo.io/age v1.3.2