[Bug] A deep commit_limit bump re-reads the whole fix walk once more than 2,000 commits are missing from the cache
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
Research direction
Start in packages/core/src/repowise/core/ingestion/git_indexer/prior_defects.py at _cached_read, where the cache returns None once the missing count exceeds _MAX_PATCHED_COMMITS in ingestion/git_commit_index.py, then follow the fallback in _walk_fix_commits. Read how #6250 handled the commit window cache as a ranged run, since the fix should follow that design. Done means that above the old cap only missing commits are read, output is unchanged, and the tests/unit/ingestion/ fix-walk cache tests cover it. An open PR (#6271) already targets this, so coordinate there first.
Written by the indexing model from the issue text.
Description
Summary
The fix-walk cache is dropped whole once more than 2,000 commits are missing from it, so a deeper commit_limit re-reads the entire walk instead of only the missing commits.
Mechanism
_cached_read(packages/core/src/repowise/core/ingestion/git_indexer/prior_defects.py:404) returnsNonewhenlen(missing) > _MAX_PATCHED_COMMITS(2,000,ingestion/git_commit_index.py:157)._walk_fix_commitsthen calls_read_commits(repo, rev_range)for the full range.- #6250 removed the same cliff for the commit window cache by reading the missing part as a ranged run.
Repro
Scratch repo with 2,600 commits, cache seeded with all but N of them:
missing=1900 commits_read=1900 total=2600
missing=2100 commits_read=2600 total=2600
Output on main (6ea4f0a3e). Going from 1,900 to 2,100 missing commits adds 700 reads.
Impact
The first deep commit_limit bump on a large repo pays for the whole fix walk again; the cost follows history size, not what is new.
Done looks like
- Read the missing commits as ranges between cached shas, in chunks, with no hard cap.
- Output for the same input is unchanged.
- Help wanted: needs the ranged-read design from #6250.
Tests
tests/unit/ingestion/ fix-walk cache: above the old cap, only the missing commits are read.
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 756
- Avg merge
- 21h 5m
- Merged PRs (30d)
- 797
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from repowise-dev/repowise
-
[Bug] Elixir `.formatter.exs`, `.credo.exs`, `config/*.exs` and `priv/**/*.exs` are reported as unreachable filesPossibly taken @ZYZ666-RGB claimed this 1 day ago. Openbug good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#6296 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] Coverage stack detection omits Swift, Dart, and Scala, falling through to UNKNOWN in evidence setupPossibly taken @RishabhIIITD claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
repowise-dev/repowise#5838 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] PR-mined decisions store the decision sentence again as their rationalePossibly taken @suyashgitt claimed this 11 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#5702 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] CICS CSD `DEFINE _PGMLIST` startup programs (`_PGMPH`) are not rootsPossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#4477 ·
Maintainers usually reply within 1 day
-
[Bug] COBOL listing directives EJECT, SKIP1/SKIP2/SKIP3 and TITLE fail to parse and drop the rest of the filePossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
repowise-dev/repowise#4474 ·
Maintainers usually reply within 1 day
All issues in repowise-dev/repowise
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day