Skip to content

CI: capture test output as artifact#433

Merged
bbatsov merged 1 commit into
masterfrom
ci-test-log-artifact
May 13, 2026
Merged

CI: capture test output as artifact#433
bbatsov merged 1 commit into
masterfrom
ci-test-log-artifact

Conversation

@bbatsov
Copy link
Copy Markdown
Member

@bbatsov bbatsov commented May 12, 2026

Currently CircleCI's job-log view is truncated, so when a flaky test errors we only see the printed exception traces from maybe-log-exception (which are caught — red herrings) and never the actual ERROR in (test-name) line that produced the 1 errors count.

Tee the test output to target/test-output.log and store_artifacts it. Uses PIPESTATUS so a tee'd failure still fails the step, and when: always so the artifact uploads even on failure. Next time the suggest-libspecs flake fires, we can download the log and grep for the real failing test.

CircleCI log output is truncated, hiding the actual `ERROR in (...)`
line when flaky tests fail. Save the full tee'd log under target/ and
upload it via store_artifacts so we can download the unmunged output
and pinpoint the failing test.
@bbatsov bbatsov merged commit 1558356 into master May 13, 2026
25 checks passed
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.

1 participant