The first public release of Fabled Minstrel #158

Merged
bvandeusen merged 256 commits from dev into main 2026-12-03 21:41:58 -05:00
2 changed files with 11 additions and 8 deletions
Showing only changes of commit f5ad422c17 - Show all commits
+9 -6
View File
@@ -168,12 +168,14 @@ jobs:
# ci/testcount prints what plain go test would, plus how many tests
# ran. The step exits with go test's own status, kept aside in a file
# because the shell has no pipefail.
# because the shell has no pipefail. The `|| rc=$?` matters: under
# `-e` a bare failing go test ends the group before its status is
# written, and a missing file fails the step as 1, never as a pass.
- name: go test (short, race)
run: |
go build -o /tmp/testcount ./ci/testcount
{ go test -short -race -json ./...; echo $? > /tmp/go-test-rc; } | /tmp/testcount
exit "$(cat /tmp/go-test-rc)"
{ rc=0; go test -short -race -json ./... || rc=$?; echo "$rc" > /tmp/go-test-rc; } | /tmp/testcount
exit "$(cat /tmp/go-test-rc 2>/dev/null || echo 1)"
# Full `go test -race` against an ephemeral Postgres.
#
@@ -310,10 +312,11 @@ jobs:
echo "database test packages: $(echo "$PKGS" | wc -l)"
go test -race -run '^$' $PKGS
# ci/testcount prints the usual go test output plus how many tests
# ran; the step exits with go test's own status (no pipefail).
# ran; the step exits with go test's own status (no pipefail, and
# `|| rc=$?` so -e cannot end the group before the status is kept).
go build -o /tmp/testcount ./ci/testcount
{ go test -p 1 -race -timeout 20m -json $PKGS; echo $? > /tmp/go-test-rc; } | /tmp/testcount
exit "$(cat /tmp/go-test-rc)"
{ rc=0; go test -p 1 -race -timeout 20m -json $PKGS || rc=$?; echo "$rc" > /tmp/go-test-rc; } | /tmp/testcount
exit "$(cat /tmp/go-test-rc 2>/dev/null || echo 1)"
web:
runs-on: go-ci
+2 -2
View File
@@ -6,8 +6,8 @@
// It never decides whether the run passed. The lane exits with go test's own
// status, which is why the pipe keeps it aside:
//
// { go test -json ./...; echo $? > /tmp/go-test-rc; } | testcount
// exit "$(cat /tmp/go-test-rc)"
// { rc=0; go test -json ./... || rc=$?; echo "$rc" > /tmp/go-test-rc; } | testcount
// exit "$(cat /tmp/go-test-rc 2>/dev/null || echo 1)"
package main
import (