You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(test): add binary smoke test to verify built artifact runs correctly #554
Why steps in the existing job (not a separate job)?
The smoke test itself takes <1 second — spinning up a new container just for this is wasteful.
No artifact passing needed — build and verify in the same job is simplest.
Semantically it's a natural extension of "Build": compile it, then prove it runs.
Scope
File: .github/workflows/ci.yml
Job: test (lines 69–70)
The cross-compile job should remain unchanged (cross-compiled binaries can't run on the host architecture).
Acceptance Criteria
test job builds a real binary (not to /dev/null)
Smoke test verifies --version outputs a string containing open-code-review
Smoke test verifies --help outputs a string containing Commands:
CI passes on a PR targeting main
Context
Discovered during a CI gap analysis. The cross-compile job also builds to /dev/null, but that's expected — you can't execute a darwin/arm64 binary on a linux/amd64 runner. The native-platform test job is the right place to verify the binary actually works.
Activity
amh1k commentedon Jul 28, 2026
I would like to take this up @lizhengfeng101