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 <[email protected]>
This commit is contained in:
@@ -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 :<sha> 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.
|
||||
|
||||
Reference in New Issue
Block a user