deps: Go 1.27 for CI, the builder and govulncheck (ci-go:1.27)
release / go (push) Successful in 1m50s
release / integration (push) Successful in 2m25s
release / web (push) Successful in 1m9s
release / govulncheck (push) Successful in 17s
release / android (push) Successful in 2m19s
release / Build signed APK (push) Successful in 2m14s
release / Build + push container image (push) Successful in 20s

ci-go:1.27 (CI-runner PR #19) carries Go 1.27 and golangci-lint v2.15.0.
Five places now name the same Go minor:
- go.mod;
- the ci-go lanes;
- the Dockerfile's golang:1.27-trixie builder;
- the govulncheck lane;
- the requirements sheet.

The sheet's toolchain note no longer points at the x/crypto floor. It now
says to move all of these together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 16:11:21 -05:00
co-authored by Claude Opus 5.5
parent f32fe95179
commit 2551d1e11f
4 changed files with 14 additions and 14 deletions
+6 -6
View File
@@ -122,7 +122,7 @@ jobs:
go: go:
runs-on: go-ci runs-on: go-ci
container: container:
image: git.fabledsword.com/bvandeusen/ci-go:1.26 image: git.fabledsword.com/bvandeusen/ci-go:1.27
steps: steps:
- name: Checkout - name: Checkout
@@ -176,7 +176,7 @@ jobs:
integration: integration:
runs-on: go-ci runs-on: go-ci
container: container:
image: git.fabledsword.com/bvandeusen/ci-go:1.26 image: git.fabledsword.com/bvandeusen/ci-go:1.27
services: services:
postgres: postgres:
image: postgres:19-alpine image: postgres:19-alpine
@@ -306,7 +306,7 @@ jobs:
web: web:
runs-on: go-ci runs-on: go-ci
container: container:
image: git.fabledsword.com/bvandeusen/ci-go:1.26 image: git.fabledsword.com/bvandeusen/ci-go:1.27
defaults: defaults:
run: run:
@@ -413,7 +413,7 @@ jobs:
govulncheck: govulncheck:
runs-on: go-ci runs-on: go-ci
container: container:
image: golang:1.26-trixie image: golang:1.27-trixie
steps: steps:
# Plain git, not actions/checkout: that action runs on node, which the # Plain git, not actions/checkout: that action runs on node, which the
@@ -622,7 +622,7 @@ jobs:
&& needs.android-release.result == 'success' }} && needs.android-release.result == 'success' }}
runs-on: go-ci runs-on: go-ci
container: container:
image: git.fabledsword.com/bvandeusen/ci-go:1.26 image: git.fabledsword.com/bvandeusen/ci-go:1.27
env: env:
IMAGE: git.fabledsword.com/bvandeusen/minstrel IMAGE: git.fabledsword.com/bvandeusen/minstrel
@@ -790,7 +790,7 @@ jobs:
- name: Build and push - name: Build and push
shell: bash shell: bash
# --pull: the Dockerfile's base images are floating tags (golang:1.26, # --pull: the Dockerfile's base images are floating tags (golang:1.27,
# debian:trixie-slim). Without it the runner's daemon reuses # debian:trixie-slim). Without it the runner's daemon reuses
# whatever it cached, and the shipped binary can sit on a Go patch # whatever it cached, and the shipped binary can sit on a Go patch
# release govulncheck already flagged while the lane, which pulls # release govulncheck already flagged while the lane, which pulls
+1 -1
View File
@@ -7,7 +7,7 @@ RUN npm ci
COPY web/ ./ COPY web/ ./
RUN npm run build RUN npm run build
FROM golang:1.26-trixie AS builder FROM golang:1.27-trixie AS builder
WORKDIR /src WORKDIR /src
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
+6 -6
View File
@@ -8,12 +8,12 @@
Minstrel's one workflow, `.gitea/workflows/release.yml`, consumes two CI images: Minstrel's one workflow, `.gitea/workflows/release.yml`, consumes two CI images:
``` ```
git.fabledsword.com/bvandeusen/ci-go:1.26 git.fabledsword.com/bvandeusen/ci-go:1.27
git.fabledsword.com/bvandeusen/ci-android:37 git.fabledsword.com/bvandeusen/ci-android:37
``` ```
- `ci-go:1.26` — the `go`, `integration` and `web` lanes, and the container build and public release (`image-release`). All CI lives in that one workflow so every publishing job can depend on every lane. - `ci-go:1.27` — the `go`, `integration` and `web` lanes, and the container build and public release (`image-release`). All CI lives in that one workflow so every publishing job can depend on every lane.
- `golang:1.26-trixie` (Docker Hub) — the `govulncheck` lane. Deliberately the same image as the Dockerfile's builder stage rather than `ci-go`, so the standard library it checks is the one in the shipped binary. Keep the two in step. - `golang:1.27-trixie` (Docker Hub) — the `govulncheck` lane. Deliberately the same image as the Dockerfile's builder stage rather than `ci-go`, so the standard library it checks is the one in the shipped binary. Keep the two in step.
- `ci-android:37` — native Kotlin/Compose client: ktlint + detekt + unit tests (the `android` lane), and the signed release APK (`android-release`). - `ci-android:37` — native Kotlin/Compose client: ktlint + detekt + unit tests (the `android` lane), and the signed release APK (`android-release`).
**No job uses `ci-flutter`**; nothing in this repo needs a Flutter toolchain. **No job uses `ci-flutter`**; nothing in this repo needs a Flutter toolchain.
@@ -22,8 +22,8 @@ while pulling `ci-android:37`, per the label/image split below.
## Image deps used ## Image deps used
### From `ci-go:1.26` ### From `ci-go:1.27`
- **Go** (1.26 toolchain) — `go vet`, `go test -race`, `go build`, `go mod`. - **Go** (1.27 toolchain) — `go vet`, `go test -race`, `go build`, `go mod`.
- **Node + npm** — `npm ci`, `npm audit`, `npm test` and `npm run check` in the `web` lane. - **Node + npm** — `npm ci`, `npm audit`, `npm test` and `npm run check` in the `web` lane.
- **golangci-lint** — lint pass in the `go` lane. - **golangci-lint** — lint pass in the `go` lane.
- **docker CLI** — bridge-IP discovery of the per-job Postgres service container in the `integration` lane (via the runner's shared `/var/run/docker.sock`). - **docker CLI** — bridge-IP discovery of the per-job Postgres service container in the `integration` lane (via the runner's shared `/var/run/docker.sock`).
@@ -51,7 +51,7 @@ None.
- **Label/image split.** Workflows keep `runs-on: go-ci` / `runs-on: flutter-ci` as the scheduling label per the [`ci-runners.md`](https://…/FabledRulebook/ci-runners.md) "label = scheduling handle, image = `container.image`" pattern. The labels are intentional handles, not toolchain assertions — which is why the Android jobs still schedule on `flutter-ci` while pulling `ci-android:37`. Switch them to `android-ci` if that runner label is ever registered; nothing breaks either way. - **Label/image split.** Workflows keep `runs-on: go-ci` / `runs-on: flutter-ci` as the scheduling label per the [`ci-runners.md`](https://…/FabledRulebook/ci-runners.md) "label = scheduling handle, image = `container.image`" pattern. The labels are intentional handles, not toolchain assertions — which is why the Android jobs still schedule on `flutter-ci` while pulling `ci-android:37`. Switch them to `android-ci` if that runner label is ever registered; nothing breaks either way.
- **Integration-job docker-socket dependency.** The `integration` lane uses the runner's shared docker socket (`/var/run/docker.sock`) to bridge-IP-discover the per-job Postgres service container by name + network intersection — the dev compose's `minstrel-postgres-*` containers are explicitly skipped as belt-and-suspenders. Depends on `act_runner.valid_volumes` whitelisting the socket; if that ever stops auto-mounting, integration tests fail at the `docker inspect` step. - **Integration-job docker-socket dependency.** The `integration` lane uses the runner's shared docker socket (`/var/run/docker.sock`) to bridge-IP-discover the per-job Postgres service container by name + network intersection — the dev compose's `minstrel-postgres-*` containers are explicitly skipped as belt-and-suspenders. Depends on `act_runner.valid_volumes` whitelisting the socket; if that ever stops auto-mounting, integration tests fail at the `docker inspect` step.
- **Go toolchain pin.** `go.mod` is on `go 1.25.0` because `golang.org/x/crypto v0.51.0` declares 1.25 as its minimum. `ci-go:1.26` satisfies this with headroom. Future `x/crypto` bumps that move the Go floor should be paired with an image-tag bump in this file + the workflows. - **Go toolchain pin.** `go.mod`'s `go` line, `ci-go`'s tag, the Dockerfile's `golang:` builder and the govulncheck lane's image name the same Go minor (1.27). Move them together: CI must build with the Go that ships.
- **In-app update channel — `needs:`, not polling.** `release.yml`'s `image-release` job declares `needs: [android-release]`, so on dev and main pushes the signed APK built from the same commit is guaranteed present before the image build starts — no polling window, no race. No APK is attached to any release page; phones get the app from the server image. - **In-app update channel — `needs:`, not polling.** `release.yml`'s `image-release` job declares `needs: [android-release]`, so on dev and main pushes the signed APK built from the same commit is guaranteed present before the image build starts — no polling window, no race. No APK is attached to any release page; phones get the app from the server image.
- **Public release secrets.** `PUBLIC_PUSH_TOKEN` (push to github.com/Fabled-Sword/minstrel and create its releases), `GHCR_USER` and `GHCR_TOKEN` (push to ghcr.io/fabled-sword/minstrel), and `CI_TOKEN` (this forge's release page). A dev push warns when one is missing; a main push stops before anything is pushed. - **Public release secrets.** `PUBLIC_PUSH_TOKEN` (push to github.com/Fabled-Sword/minstrel and create its releases), `GHCR_USER` and `GHCR_TOKEN` (push to ghcr.io/fabled-sword/minstrel), and `CI_TOKEN` (this forge's release page). A dev push warns when one is missing; a main push stops before anything is pushed.
- **Cache server reachability.** The `web` lane does NOT use `cache: 'npm'` on `actions/setup-node` — the Gitea Actions cache server isn't reachable from this runner's container network, so `setup-node` would spend minutes on ETIMEDOUT before failing open. `setup-node` is not used at all (Node is in the image). The cache concern reappears if a change introduces a network-dependent action. - **Cache server reachability.** The `web` lane does NOT use `cache: 'npm'` on `actions/setup-node` — the Gitea Actions cache server isn't reachable from this runner's container network, so `setup-node` would spend minutes on ETIMEDOUT before failing open. `setup-node` is not used at all (Node is in the image). The cache concern reappears if a change introduces a network-dependent action.
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/Fabled-Sword/minstrel module github.com/Fabled-Sword/minstrel
go 1.26.0 go 1.27.0
require ( require (
github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8 github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8