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 | 2 | # Fast feedback: this finishes in seconds, so it is not held behind the |
| 3 | 3 | # suite. |
| 4 | 4 | build: |
| 5 | | image: localhost/gitbay-ci:3 |
| 5 | image: localhost/gitbay-ci:4 |
| 6 | 6 | steps: |
| 7 | 7 | - go build ./... |
| 8 | 8 | - go vet ./... |
| @@ -13,7 +13,7 @@ jobs: |
| 13 | 13 | # The 20m is under the runner's own 30m limit, so go times out first and |
| 14 | 14 | # says which test hung instead of the runner killing it blind. |
| 15 | 15 | test: |
| 16 | | image: localhost/gitbay-ci:3 |
| 16 | image: localhost/gitbay-ci:4 |
| 17 | 17 | steps: |
| 18 | 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 | 19 | - go test ./... -count=1 -timeout 20m |
| @@ -25,7 +25,7 @@ jobs: |
| 25 | 25 | # sha256 Qlty publishes beside it, and unpacked with Python because this |
| 26 | 26 | # image has no xz. |
| 27 | 27 | quality: |
| 28 | | image: localhost/gitbay-ci:3 |
| 28 | image: localhost/gitbay-ci:4 |
| 29 | 29 | steps: |
| 30 | 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 | 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 | 46 | # `build trigger krz/gitbay vuln` runs it on demand before a release |
| 47 | 47 | # (#177). |
| 48 | 48 | vuln: |
| 49 | | image: localhost/gitbay-ci:3 |
| 49 | image: localhost/gitbay-ci:4 |
| 50 | 50 | schedule: "0 3 * * *" |
| 51 | 51 | steps: |
| 52 | 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 |
| 1143 | 1143 | runner started with =-isolation podman= that cannot find a working |
| 1144 | 1144 | podman exits rather than running a build unsandboxed. |
| 1145 | 1145 | |
| 1146 | | gitbay's own jobs name =localhost/gitbay-ci:3=, built from |
| 1146 | gitbay's own jobs name =localhost/gitbay-ci:4=, built from |
| 1147 | 1147 | =deploy/Containerfile.ci= on the runner host. A job's image must carry |
| 1148 | 1148 | what its steps need: the suite drives real git, git-lfs, gpg and sshd and |
| 1149 | 1149 | asserts they exist before running, so the stock runner default would fail |
| @@ -1152,7 +1152,7 @@ it immediately. Build or rebuild it with: |
| 1152 | 1152 | #+begin_src sh |
| 1153 | 1153 | ssh -p 2222 root@<host> 'cat > /tmp/Containerfile.ci' < deploy/Containerfile.ci |
| 1154 | 1154 | ssh -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 | 1156 | #+end_src |
| 1157 | 1157 | |
| 1158 | 1158 | The tag is deliberate rather than =:latest=: changing the file means |
deploy/Containerfile.ci
+2 −2
| @@ -8,12 +8,12 @@ |
| 8 | 8 | # |
| 9 | 9 | # scp -P 2222 deploy/Containerfile.ci root@gitbay.org:/var/lib/gitbay-runner/gitbay-ci.Containerfile |
| 10 | 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 | 12 | # && rm /var/lib/gitbay-runner/gitbay-ci.Containerfile' |
| 13 | 13 | # |
| 14 | 14 | # Tagged, not :latest, so a change to this file is a deliberate bump in |
| 15 | 15 | # .gitbay/ci.yml rather than a silent change under a running branch. |
| 16 | | FROM docker.io/library/golang:1.27.3-trixie |
| 16 | FROM docker.io/library/golang:1.27.4-trixie |
| 17 | 17 | |
| 18 | 18 | # gitbay-runner-prune.service skips images carrying this label. A localhost/ |
| 19 | 19 | # image cannot be pulled back, so pruning it fails every job that names it. |
go.mod
+1 −1
| @@ -1,6 +1,6 @@ |
| 1 | 1 | module gitbay.org/gitbay |
| 2 | 2 | |
| 3 | | go 1.27.3 |
| 3 | go 1.27.4 |
| 4 | 4 | |
| 5 | 5 | require ( |
| 6 | 6 | filippo.io/age v1.3.2 |