Cap automatic scan ranges at 10k commits with a rev-list precheck - #123
Merged
Conversation
RomainCscn
force-pushed
the
romain/lin-79789-scan-size-guard
branch
from
July 27, 2026 09:29
fe8c5b0 to
f83b8ac
Compare
RomainCscn
force-pushed
the
romain/lin-79789-stream-git-log
branch
2 times, most recently
from
July 27, 2026 09:35
9b59ab1 to
8906dbf
Compare
RomainCscn
force-pushed
the
romain/lin-79789-scan-size-guard
branch
from
July 27, 2026 09:35
f83b8ac to
142a069
Compare
RomainCscn
force-pushed
the
romain/lin-79789-scan-size-guard
branch
from
July 27, 2026 10:06
142a069 to
5f590f7
Compare
RomainCscn
enabled auto-merge (squash)
July 27, 2026 10:10
mwolting
approved these changes
Jul 27, 2026
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.
Follow-up to #122. An automatic scan range spanning more than 10k commits is never a real release delta — the anchor is stale or from another repository — and even a successful scan would link months of already-shipped issues to one release.
syncCommandnow counts the range withgit rev-list --count(~40 ms) before the heavy scan:SCAN_COMMIT_HARD_LIMIT(10k) warn and degrade to current-commit-only — same philosophy as Scan only the current commit when release anchors are unusable #119;--base-refranges above it warn but proceed, since the range was explicitly requested;The count is also printed under
--verbose, so an oversized range is visible in CI logs before the scan starts.Towards LIN-79789