[build] fetch the changelog history since the previous release tag instead of computing a depth - #18044
Conversation
PR Summary by QodoFetch release changelog history from the previous tag
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
b75556f to
7e818bb
Compare
|
Code review by qodo was updated up to the latest commit 7e818bb |
7e818bb to
f11a01d
Compare
|
Code review by qodo was updated up to the latest commit f11a01d |
…stead of computing a depth
…s find the previous release tag
…hem cannot truncate the history
f11a01d to
f41d1ed
Compare
|
Code review by qodo was updated up to the latest commit f41d1ed |
🔗 Related Issues
Builds on #16966 (replaces the compare-API commit count it introduced)
💥 What does this PR do?
🔧 Implementation Notes
fetch-tags: truemade actions/checkout fetch all 274 tags at the computed depth (--depth=83 +refs/tags/*:refs/tags/*for 4.49.0), three times per full release (changelogs, Rust changelogs, authors) and once per language release.scripts/github-actions/deepen-fetch-to-tag.sh <release tag>before its./gotask. The script derives the previous release tag, fetches the checkout's history back through it by ancestry (--shallow-excludeplus--deepen=1), and fetches the tags that release line's changelogs look up. Thecalculate-changelog-depthjob and its compare API call go away, andbazel.ymlloses its now-unusedfetch-depthinput and thefetch-tagsline.selenium-4.34.1-python); the old code omitted it and silently fell back to full history.pythonandrubytoupdate_changelog, so a patch release after .1 looks up the tag that exists (-python, not-py).ls-remoteinstead of fetching full history.selenium-4.49.0.After times come from regular trunk CI checkouts of the same shallow shape (5 to 9 s); over loopback a single fetch is 26 s before vs 0.4 s after.
🤖 AI assistance
🔄 Types of changes