Skip to content

fix(ci): propagate test failures through tee (#616) - #987

Open
gHashTag wants to merge 1 commit into
mainfrom
feat/issue-616-ci-status
Open

gHashTag wants to merge 1 commit into
mainfrom
feat/issue-616-ci-status

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

The CI test step pipes zig build test through tee, but the implicit Bash shell does not enable pipefail. A failed compiler or test command can therefore produce a successful step when tee succeeds. Run 34614355939 illustrates why a green status cannot establish that the test suite passed.

Select shell: bash for this step so GitHub Actions runs it with -eo pipefail. A failed test command now fails CI while its output is still saved to test-output.txt. The existing leak scan remains in place.

Validation: parsed the workflow YAML and executed its exact test-step script using a temporary fake zig command. Passing tests returned 0; a simulated compiler failure returned 37; a leak report returned 1; all three preserved the output file. The previous implicit-shell behavior returned 0 for the same simulated compiler failure. git diff --check passed; review found no additional error-masking pipelines in this workflow. The full Zig suite was not rerun for this workflow-only change, and this PR does not resolve the existing compiler/test failures or missing author-guard step.

Related to #616 and #810.

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