Skip to content

[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
mainfrom
agent-fix/update-disk-sizes-restore-scripts
Open

[SharovBot] ci: restore scripts from base branch to fix render-disk-sizes.py not found#22719
erigon-copilot[bot] wants to merge 1 commit into
mainfrom
agent-fix/update-disk-sizes-restore-scripts

Conversation

@erigon-copilot

Copy link
Copy Markdown
Contributor

[SharovBot]

Problem

The update-disk-sizes workflow fails with:

python3: can't open file '/home/runner/work/erigon/erigon/docs/site/scripts/render-disk-sizes.py': [Errno 2] No such file or directory

Root cause: the auto-update branch (docs/auto/disk-sizes-release-3.5) was last pushed on 2026-07-17, but render-disk-sizes.py was added to release/3.5 on 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.

…r-disk-sizes.py

Co-authored-by: Giulio Rebuffo <giulio.rebuffo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants