Repository navigation
ci: build and run the native ELF in CI before release - #40
Merged
Merged
Conversation
The 0.7.0 daemon crash shipped because CI never built the ELF: pnpm test runs node bin/coordinate.mjs (the loose dynamic path), release.yml only ran --help on the two Linux binaries, and the darwin binaries were only file-checked. An absent optional positional arrived as null in the compiled binary and scriptc's type claim rejected it at daemon start. - scripts/native-smoke.sh: the verb battery — every --help, root --help, no-args exit 1, unknown-verb did-you-mean, enqueue/status round trip, dash-leading command capture, jobs --json, events, lease acquire/ release/list/waits, cap show/set, dead retry --all, agent register/ heartbeat/unregister, inbox, daemon start-and-stay-up (the 0.7.0 killer), daemon restart handoff, daemon --help isolation. Validated both ways: passes on the fixed 0.7.0 binary, exits non-zero on the broken one at the daemon step. - ci.yml: native-smoke job builds the linux-x64 ELF on every PR and runs the battery. - release.yml: darwin-smoke job (macos-latest) builds the darwin-arm64 ELF, builds the SQLite shim archive, runs the battery; the release job now needs it. The Linux smoke step runs the full battery on both linux-gnu and linux-musl binaries instead of just --help. - scripts/scriptc-gate.mjs + scriptc-coverage-baseline.json: coverage ratchet — fails on static-statement drop, dynamic-statement growth, or new diagnostics in our code. ci.yml: scriptc-coverage job. Branch protection on main now requires all five CI contexts (ts tests, oxlint, tsc, native ELF smoke, scriptc coverage ratchet).
Deploying coordinated with
|
| Latest commit: |
fedb1d9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cf18f744.coordinated.pages.dev |
| Branch Preview URL: | https://ci-native-smoke-and-coverage.coordinated.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The 0.7.0 daemon crash shipped because CI never built the ELF:
pnpm testrunsnode bin/coordinate.mjs(the loose dynamic path), release.yml only ran--helpon the two Linux binaries, and the darwin binaries were onlyfile-checked. An absent optional positional arrived asnullin the compiled binary and scriptc's type claim rejected it at daemon start (expected string at $[0], got null).What changes
scripts/native-smoke.sh— the verb battery: every--help, root--help, no-args exit 1, unknown-verb did-you-mean, enqueue→status round trip, enqueue without--capturing a dash-leading command, status with no id, jobs--json, events with/without--job 0, lease acquire/release/list/waits, cap show/set, dead retry--all, agent register/heartbeat/unregister, inbox with/without owner, daemon start-and-stay-up (the 0.7.0 killer), daemon restart handoff, daemon--helpisolation. Validated both ways: passes on the fixed 0.7.0 binary, exits non-zero on the broken one at the daemon step.native-smokejob — builds the linux-x64 ELF on every PR and runs the battery.darwin-smokejob — macos-latest builds the darwin-arm64 ELF (with an explicit SQLite shim archive step), runs the battery; the release job now needs it. The Linux smoke step runs the full battery on both linux-gnu and linux-musl binaries instead of just--help.scripts/scriptc-gate.mjs+scriptc-coverage-baseline.json— coverage ratchet: fails on static-statement drop, dynamic-statement growth, or new diagnostics in our code. ci.yml:scriptc-coveragejob.Branch protection on main now requires all five CI contexts (ts tests, oxlint, tsc, native ELF smoke, scriptc coverage ratchet).
The library-level typed-defaults fix is sigilco/cutils#63 (merged, not yet released).