Repository navigation
ci: verify compiled rules version - #913
Merged
nc9 merged 3 commits intoOct 17, 2026
Merged
Conversation
Contributor
|
Thanks. I checked the Compile CLI run on this PR: the new step printed the embedded fingerprint and passed. The root also matches what the macro uses ( One small robustness fix: if if ! [[ "$expected" =~ ^[0-9a-f]{64}$ ]]; then
echo "Could not compute the rules fingerprint for this checkout: '$expected'" >&2
exit 1
fi |
Signed-off-by: Ching-Wei Kang <[email protected]>
An empty value would make grep -F match any file, so the check would pass without proving anything. Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
codex/compiled-rules-hash-542
branch
from
October 17, 2026 11:35
aa9e7a9 to
2aaa3f3
Compare
Contributor
|
Merged, thanks @WilliamK112! CI now proves the compiled CLI carries the rules version for the exact source it was built from, so a macro inlining regression fails the build instead of shipping. I added one small guard on top (an empty fingerprint now fails the step rather than matching anything). |
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.
Summary
squirrelscanbinary contains that exact fingerprintThe existing
rules-fingerprint.test.tscoverage already proves that changing a rule source file changes the computed fingerprint.Testing
bun run build16d38a47aca127415e841b17cd9318c1a214aa48b557ef050bffcf82659c5c25)bun test apps/cli/tests/audit/rules-fingerprint.test.ts(7 passed)Closes #542