[SharovBot] ci: restore scripts from base branch to fix render-disk-sizes.py not found - #22719
Open
erigon-copilot[bot] wants to merge 1 commit into
Open
[SharovBot] ci: restore scripts from base branch to fix render-disk-sizes.py not found#22719erigon-copilot[bot] wants to merge 1 commit into
erigon-copilot[bot] wants to merge 1 commit into
Conversation
…r-disk-sizes.py Co-authored-by: Giulio Rebuffo <giulio.rebuffo@gmail.com>
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.
[SharovBot]
Problem
The
update-disk-sizesworkflow fails with:Root cause: the auto-update branch (
docs/auto/disk-sizes-release-3.5) was last pushed on 2026-07-17, butrender-disk-sizes.pywas added torelease/3.5on 2026-07-20 (PR #22596). When the workflow checks out the stale auto branch, the new script is missing.Fix
After switching to the auto branch, restore
docs/site/scripts/from the base branch (origin/release/3.5). This ensures scripts added after the auto branch was created are always present.git checkout "origin/$BASE_BRANCH" -- docs/site/scripts/This only affects the scripts used during the CI run — the actual data files committed by the workflow (
disk-sizes.json,hardware-requirements.mdx) are not changed by this restore.Evidence
Testing
The change is a one-liner: if the auto branch exists, restore scripts before running them. When the auto branch doesn't exist yet (first run on a new base), this code path is skipped entirely.