-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix(ci): preserve policy command contract coverage #10411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -753,6 +753,7 @@ describe("Vitest project membership boundary", () => { | |
| Array.from( | ||
| new Map<string, string | undefined>([ | ||
| ["src/example.spec.ts", "cli"], | ||
| ["src/lib/policy/commands.test.ts", "policy-command-contract"], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Exercise the production project-mapping helper.
As per path instructions: “Review tests for behavioral confidence rather than implementation lock-in” and “Flag copied production algorithms.” 🤖 Prompt for AI AgentsSource: Path instructions |
||
| ["nemoclaw/src/example.test.js", "plugin"], | ||
| ["test/repository/coverage-ratchet.test.ts", "integration"], | ||
| ["test/repository/vitest-coverage-thresholds.test.ts", "integration"], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 218
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 9309
🏁 Script executed:
Repository: NVIDIA/NemoClaw
Length of output: 4544
Normalize
CLI_SHARD_COUNTbefore arithmetic expansion.The validation accepts digit-only values such as
08. Bash interprets leading-zero values as octal inexpected_total=$((CLI_SHARD_COUNT + 1)), so08makes this check fail instead of producing9. Normalize with10#or reject leading zeroes.🤖 Prompt for AI Agents