diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d07c7db8..dddeccfa 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -122,7 +122,7 @@ jobs: go: runs-on: go-ci container: - image: git.fabledsword.com/bvandeusen/ci-go:1.26 + image: git.fabledsword.com/bvandeusen/ci-go:1.27 steps: - name: Checkout @@ -176,7 +176,7 @@ jobs: integration: runs-on: go-ci container: - image: git.fabledsword.com/bvandeusen/ci-go:1.26 + image: git.fabledsword.com/bvandeusen/ci-go:1.27 services: postgres: image: postgres:19-alpine @@ -306,7 +306,7 @@ jobs: web: runs-on: go-ci container: - image: git.fabledsword.com/bvandeusen/ci-go:1.26 + image: git.fabledsword.com/bvandeusen/ci-go:1.27 defaults: run: @@ -413,7 +413,7 @@ jobs: govulncheck: runs-on: go-ci container: - image: golang:1.26-trixie + image: golang:1.27-trixie steps: # Plain git, not actions/checkout: that action runs on node, which the @@ -622,7 +622,7 @@ jobs: && needs.android-release.result == 'success' }} runs-on: go-ci container: - image: git.fabledsword.com/bvandeusen/ci-go:1.26 + image: git.fabledsword.com/bvandeusen/ci-go:1.27 env: IMAGE: git.fabledsword.com/bvandeusen/minstrel @@ -790,7 +790,7 @@ jobs: - name: Build and push 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 # whatever it cached, and the shipped binary can sit on a Go patch # release govulncheck already flagged while the lane, which pulls diff --git a/Dockerfile b/Dockerfile index da49ec1c..6d796856 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN npm ci COPY web/ ./ RUN npm run build -FROM golang:1.26-trixie AS builder +FROM golang:1.27-trixie AS builder WORKDIR /src COPY go.mod go.sum ./ RUN go mod download diff --git a/ci-requirements.md b/ci-requirements.md index 17716687..bc01ddff 100644 --- a/ci-requirements.md +++ b/ci-requirements.md @@ -8,12 +8,12 @@ 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 ``` -- `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. -- `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. +- `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.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`). **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 -### From `ci-go:1.26` -- **Go** (1.26 toolchain) — `go vet`, `go test -race`, `go build`, `go mod`. +### From `ci-go:1.27` +- **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. - **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`). @@ -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. - **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. - **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. diff --git a/go.mod b/go.mod index 3e503274..f7a5a11f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/Fabled-Sword/minstrel -go 1.26.0 +go 1.27.0 require ( github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8