fix: lifecycle performance cliffs in change check/list/correct-owner (closes #439)#463
Draft
0xLeif wants to merge 1 commit into
Draft
fix: lifecycle performance cliffs in change check/list/correct-owner (closes #439)#4630xLeif wants to merge 1 commit into
0xLeif wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
❌ Corvin says...
_
<(;\ .oO(oh no...)
|/(\
\(\\
" "\\
"Caw... your imports are all over the place."
CI Summary
| Check | Status |
|---|---|
| Validate action.yml | ✅ Passed |
| Packaged Action Consumer | ❌ failure |
| Dependency Audit | ✅ Passed |
| Code Coverage | ❌ failure |
| Format Check | ✅ Passed |
| Docs Site | ✅ Passed |
| Spec Validation | ❌ failure |
| Tests (build, test, clippy) | ❌ failure |
| VS Code Extension | ✅ Passed |
Powered by corvid-pet
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.
This PR currently contains 1 of 2 changed files.
src/change.rs(860KB) could not be uploaded through the automation channel — the complete 31KB patch (w6-439.patch, applies cleanly on main @ ce66973, commit 73ad0d1) is attached to the task report. The branch will not compile until the change.rs portion lands.Problem
Lifecycle commands degraded superlinearly at modest scale:
change checkhit double-digit seconds at 20 changes,change list/statuscost ~190 ms per change, andchange correct-ownerbatches revalidated every correction after each appended entry (O(entries^2) Git-backed ownership lookups).Root causes
Fix
Measured (debug builds, 20/50 chained changes, half accepted)
Scaling is now near-linear. Regression tests (
read_scope_memoizes_repeated_summary_git_lookups,read_scope_reuses_git_evidence_for_repeated_candidates) assert identical summaries with strictly fewer git subprocess spawns (spawn-count hooks, no wall-clock timing). Fullcargo testgreen (except one pre-existing root-only failure) andcargo clippy -- -D warningsgreen.Closes #439