Commit Graph
2 Commits
Author SHA1 Message Date
bvandeusenandClaude Opus 5.5 f5ad422c17 ci: keep go test's status when it fails under -e (#8372)
release / web (push) Successful in 1m33s
release / go (push) Failing after 2m0s
release / govulncheck (push) Successful in 19s
release / integration (push) Failing after 2m45s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 2m34s
release / Build signed APK (push) Canceled after 1m58s
Break run 11328 went red for the wrong reason. The step shell runs with
-e, so a failing go test ended the brace group before `echo $?` wrote
its status; the step then died on `exit ""` ("numeric argument
required"). `|| rc=$?` keeps the group alive to record the status, and a
missing status file now exits 1 rather than relying on that error.

Breaks from 8af3c41b are still in place, so this run must be red with
go test's own exit code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 22:07:27 -05:00
bvandeusenandClaude Opus 5.5 1a8ea1bee9 ci: print how many Go and Android tests ran (#8372)
release / go (push) Successful in 1m51s
release / integration (push) Successful in 2m29s
release / web (push) Successful in 1m2s
release / govulncheck (push) Successful in 20s
release / android (push) Successful in 4m35s
release / Build signed APK (push) Successful in 4m49s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
The web lane's Vitest summary already says how many tests ran; the go,
integration and android lanes said nothing, so a before-and-after had to
count tests from source.

- ci/testcount reads `go test -json` and prints what plain go test
  would (one line per package, the whole output of a failed test), then
  the pass/fail/skip counts for tests and subtests. Both Go lanes pipe
  through it and exit with go test's own status, kept in a file because
  the shell has no pipefail: the reader never decides the gate.
- The android lane sums Gradle's JUnit reports after the unit tests,
  failure or not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 21:49:35 -05:00