Repository navigation
fix(cli): squirrel analyze applies keep_audits retention #955 - #961
Merged
Merged
Conversation
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff:
The refactor of |
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.
What
squirrel analyze, the step that finishes an audit in the split pipeline (crawl,analyze,report), now runs the same[storage] keep_auditsretention assquirrel audit: windowed audits and the abandoned-crawl pass, one stderr notice, no stdout change.Gates, same as the audit path plus one: a blocked or failed crawl retires nothing (its status is derived by the new shared
deriveCrawlRunStatus, extracted fromreconstructReport, behaviour identical) and is recorded on the crawl so later passes can tell it from a real audit; abuildingsentinel of a concurrent audit is never overwritten (setReportStatusgainskeepBuilding); the window applies only to the project named in the directory's[project] name, or, with no name, to the latest crawl's project but never to an--idcrawl.Why
Split-pipeline projects never retired anything and grew to several GB.
crawlitself leaves the crawlcrawled, so there is nothing to retire there, andreportonly reads.Known, same as the audit path (#941): the abandoned-crawl pass can retire an older
crawledcrawl idle 30+ minutes once a newer audit is finished.Tests: new
analyze-retention-955.test.ts(3-audit repro with keep 1, keep 0, blocked, other project, no name with/without--id,buildingkept). Docs:configuration/storage,cli/analyze; CHANGELOG. Codex pass done, findings fixed. Golden not affected (no rule verdict change).skills: no change
Closes #955