Drop -race from CI: the Pi's kernel can't run it
Test and publish / test (push) Successful in 1m11s
Test and publish / publish (push) Successful in 3m41s

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 <[email protected]>
This commit is contained in:
2026-10-14 23:12:42 +01:00
co-authored by Claude Opus 5.5
parent 7f7650252d
commit 4a07f54884
+8 -6
View File
@@ -8,10 +8,10 @@
# the host). # the host).
# #
# TWO JOBS # TWO JOBS
# test gofmt, go vet, staticcheck and go test (with -race, and the # test gofmt, go vet, staticcheck and go test (with the database
# database tests against a throwaway Postgres container), as # tests against a throwaway Postgres container), as `make check`
# `make check`. Then the Vue app's typecheck and build, in a node # minus -race, which the Pi can't run. Then the Vue app's
# container. # typecheck and build, in a node container.
# publish main only, after test: builds deploy/Dockerfile, pushes it to # publish main only, after test: builds deploy/Dockerfile, pushes it to
# this Gitea's container registry as :<sha> and :latest, then # this Gitea's container registry as :<sha> and :latest, then
# pulls it into the web_server stack (its `activity-tracker` # pulls it into the web_server stack (its `activity-tracker`
@@ -69,7 +69,9 @@ jobs:
exit 1 exit 1
# Read-only source, and named volumes for the module and build # 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 - name: Go - lint and test
shell: bash shell: bash
run: | run: |
@@ -81,7 +83,7 @@ jobs:
--network "ci-$SHA" \ --network "ci-$SHA" \
-e TEST_DATABASE_URL='postgres://postgres:ci@pg:5432/postgres?sslmode=disable' \ -e TEST_DATABASE_URL='postgres://postgres:ci@pg:5432/postgres?sslmode=disable' \
golang:1.27 \ 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 # Copies web/ out of the read-only source so node_modules and the
# build output stay in the container. # build output stay in the container.