Repository navigation
[cli] Read the added-file history once for every finding - #285
Merged
Merged
Conversation
blame asked git for the commit that added each file with a --follow walk of the whole history, once per finding. On ORE Studio that is 8-15 s a call, and 277 inherited findings ran past the gate's 900 s timeout. Walk the history once with the findings' paths as pathspecs and answer each from the map. The pass on ores_dev_bright_faraday drops from more than 900 s (and still running after 300 s) to 111.6 s, the same as the ratchet without blame. Co-Authored-By: Claude Code <noreply@anthropic.com>
This branch was previously deployed
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.
A project's gate that blames the findings already on main walks the whole
history for the commit that added each file, once per finding.
--followforces rename detection, which costs 8-15 s per call on ORE Studio; 277
inherited findings exceeded the fleet's 900 s gate timeout, and the gate
was changed to
--no-blameto get through.The added-file answer now comes from one
git log --diff-filter=A --name-onlywalk, with every blamed path as a pathspec. A path added twiceanswers with its newest addition, and a path it cannot trace still says so.
Measured on
ores_dev_bright_faradayat merge base 9a214cd1, with compassbuilt from this branch:
check --ratchet --no-blamecheck --ratchet(0.0.15, before)check --ratchet(this branch)The remaining blame cost (about 82 s) is the per-commit ancestry and
pull-request lookups, which were the same in 0.0.13. The story and task are
in the Sprint 2 documents PR (#284).
🤖 Generated with Claude Code