Skip to content

ci, test: make CI more reliable and more readable on failure - #1275

Merged
mhutchinson merged 2 commits into
transparency-dev:mainfrom
mhutchinson:fix/ci-quiet-test
Nov 6, 2026
Merged

mhutchinson merged 2 commits into
transparency-dev:mainfrom
mhutchinson:fix/ci-quiet-test

Conversation

@mhutchinson

@mhutchinson mhutchinson commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Makes CI test runs less flaky and much easier to read when a test does fail:

  1. Readable failures (.github/workflows/go_test.yml): Drop -v from go test invocations so Go buffers output per package and only prints full test logs for packages that fail (rather than streaming 50k+ lines of logs from passing packages).
  2. Reliable t.TempDir() cleanup in POSIX tests (testonly, storage/posix, internal/mirror/gateway): Cancel the POSIX appender context when testonly.NewTestLog shuts down and before running final fsck.Check in TestGarbageCollect*, and remove the unnecessary 100ms checkpoint republish interval in TestGateway so background checkpoint/GC tickers don't create files in .state/ concurrently with t.TempDir() os.RemoveAll cleanup.

@mhutchinson
mhutchinson requested a review from a team as a code owner November 6, 2026 15:21
@mhutchinson
mhutchinson requested a review from phbnf November 6, 2026 15:21
Running go test with -v across ./... streams logs from all passing packages (over 50k lines), burying actual test failures. Without -v, go test buffers output per package and prints full logs only for packages that fail.
@mhutchinson

Copy link
Copy Markdown
Contributor Author

@phbnf tests are failing more than I'd like. I'm going to see if I can squeeze a minimal test-only change into this PR to unblock CI.

Cancel the appender context on test log shutdown and before final fsck in POSIX GC tests, and drop the unnecessary 100ms checkpoint republish interval in TestGateway so background checkpoint/GC tickers do not race with t.TempDir() os.RemoveAll cleanup.
@mhutchinson mhutchinson changed the title ci: drop -v from go test in workflows ci, test: make CI more reliable and more readable on failure Nov 6, 2026
@mhutchinson
mhutchinson merged commit c4a8f7b into transparency-dev:main Nov 6, 2026
19 of 20 checks passed
@mhutchinson
mhutchinson deleted the fix/ci-quiet-test branch November 6, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants