From 4a07f54884c1d685aa6fe9a937dd501918bebb83 Mon Sep 17 00:00:00 2001 From: Adam French Date: Wed, 14 Oct 2026 23:12:42 +0100 Subject: [PATCH] Drop -race from CI: the Pi's kernel can't run it The runner's arm64 kernel has a 39-bit virtual address space, and the race detector (ThreadSanitizer) needs 48 bits there, so every test binary aborted. `make check` still runs -race locally. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 2f2da38..b65ee4b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -8,10 +8,10 @@ # the host). # # TWO JOBS -# test gofmt, go vet, staticcheck and go test (with -race, and the -# database tests against a throwaway Postgres container), as -# `make check`. Then the Vue app's typecheck and build, in a node -# container. +# test gofmt, go vet, staticcheck and go test (with the database +# tests against a throwaway Postgres container), as `make check` +# minus -race, which the Pi can't run. Then the Vue app's +# typecheck and build, in a node container. # publish main only, after test: builds deploy/Dockerfile, pushes it to # this Gitea's container registry as : and :latest, then # pulls it into the web_server stack (its `activity-tracker` @@ -69,7 +69,9 @@ jobs: exit 1 # Read-only source, and named volumes for the module and build - # caches so repeat runs don't download everything again. + # caches so repeat runs don't download everything again. No -race: + # the Pi's kernel has a 39-bit address space, which the race + # detector doesn't support on arm64. `make check` runs it locally. - name: Go - lint and test shell: bash run: | @@ -81,7 +83,7 @@ jobs: --network "ci-$SHA" \ -e TEST_DATABASE_URL='postgres://postgres:ci@pg:5432/postgres?sslmode=disable' \ golang:1.27 \ - sh -c 'test -z "$(gofmt -l .)" && go vet ./... && go tool staticcheck ./... && go test -race -count=1 ./...' + sh -c 'test -z "$(gofmt -l .)" && go vet ./... && go tool staticcheck ./... && go test -count=1 ./...' # Copies web/ out of the read-only source so node_modules and the # build output stay in the container.