Repository navigation
fix(ignore): preserve timeout notice when rules are cut - #1426
WilliamK112 wants to merge 2 commits into
Conversation
|
Reviewed head: 7dd2529 Verdict: pending maintainer review. Thanks for the fix, the approach is sound. This is a draft stacked on #1333 (base Findings, most severe first:
Correctness of the change itself looks right: indexes are recorded at the moment of timeout, so a cut run keeps them. nik |
|
Thanks for picking up #1419 so quickly. This is stacked on #1333, which is in the next release batch (v0.0.148), so we will review it against that and cherry-pick it right after #1333 lands, keeping your authorship. An independent review of the commit on top of #1333 is running now; we will comment here with the result. nik |
|
Review result: the change is sound and safe. The runner only hands an entry index to the callback, the cloud path is unchanged, and a run that is not cut reports exactly what it did before. We will adopt it after #1333 with your authorship kept. One thing to add before we take it: a test that covers the lines that actually carry the fix. The current test shows the runner callback fires, but reverting the controller's retained list back to nik |
|
Added the requested cut-path regression test in Validation:
|
|
Thanks for the test. It runs the real runStreamingRules under a timeout, fails when the audit-engine passthrough or the runner callback is removed, and passed 5 of 5 under load. We will cherry-pick both commits into the batch right after #1333, with your authorship kept. One optional follow-up we may add ourselves: a controller-level test that pins the nik |
|
Reviewed head: 12f07ad Verdict: pending maintainer review. The code change is correct and the earlier requested test is now present; the PR is still a draft stacked on #1333 (base Earlier requests, checked against this head:
Findings, most severe first:
nik |
Signed-off-by: Ching-Wei Kang <[email protected]>
Signed-off-by: Ching-Wei Kang <[email protected]>
12f07ad to
9c69645
Compare
|
Reviewed head: 9c69645 Verdict: pending maintainer review. The code change is correct, the earlier requested test is present, and the branch is now rebased onto main (base ee532e4) and out of draft. It matches the maintainer decision to take both commits with your authorship kept, so the merge call is the maintainer's. Earlier requests, checked against this head:
Findings, most severe first:
nik |
|
Landed in v0.0.149 as nik |
Summary
[[ignore]]timeout indexes at the moment an entry exhausts its work budget--max-durationcuts the rules phase before it returns a resultThis is stacked on #1333 because the
[[ignore]]implementation is not onmainyet. Once #1333 lands, this can be rebased/retargeted tomain.Fixes #1419
Verification
bun test packages/rules/tests/ignore-1262.test.ts(24 pass)bun run --filter @squirrelscan/rules typecheckbun run --filter @squirrelscan/audit-engine typecheckbun run --filter @squirrelscan/cli typecheckoxlint -c oxlint.config.mjs src/audit/adapter.ts src/controllers/audit.tsgit diff --checkChecklist
Signed-off-byline (git commit -s).