Skip to content

Fix test target to propagate exit code on failure#171

Merged
linyows merged 2 commits intomainfrom
fix-test-exit-code
Mar 5, 2026
Merged

Fix test target to propagate exit code on failure#171
linyows merged 2 commits intomainfrom
fix-test-exit-code

Conversation

@linyows
Copy link
Owner

@linyows linyows commented Mar 5, 2026

Summary

  • The pipe in make test caused go test's exit code to be swallowed by the last sed command, so CI would pass even when tests failed
  • Remove -v flag and pipe (grep/sed) so that go test's exit code propagates correctly

Test plan

  • Verified all tests pass with make test

🤖 Generated with Claude Code

linyows and others added 2 commits March 5, 2026 11:52
The pipe in `make test` caused go test's exit code to be swallowed,
so CI would pass even when tests failed. Remove -v flag and pipe to
simplify output and correctly propagate the exit code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Code Metrics Report

main (fd5141b) #171 (a7234de) +/-
Coverage 55.9% 55.9% 0.0%
Code to Test Ratio 1:1.0 1:1.0 0.0
Test Execution Time 24s 1m23s +59s
Details
  |                     | main (fd5141b) | #171 (a7234de) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          55.9% |          55.9% | 0.0% |
  |   Files             |             65 |             65 |    0 |
  |   Lines             |           6553 |           6553 |    0 |
  |   Covered           |           3666 |           3666 |    0 |
  | Code to Test Ratio  |          1:1.0 |          1:1.0 |  0.0 |
  |   Code              |          12848 |          12848 |    0 |
  |   Test              |          13267 |          13267 |    0 |
- | Test Execution Time |            24s |          1m23s | +59s |

Reported by octocov

@linyows linyows self-assigned this Mar 5, 2026
@linyows linyows merged commit f438719 into main Mar 5, 2026
6 checks passed
@linyows linyows deleted the fix-test-exit-code branch March 5, 2026 02:58
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