fix(ci): retry workflow fails on renamed helper scripts - #17
Closed
akifejaz wants to merge 1 commit into
Closed
Conversation
The retry workflow runs the YAML from the default branch but checks out the TRIGGERING run's SHA. Run 28641533375 failed because main's YAML called plan-shards.py / missing-pkgs.py while the checked-out release SHA (f166cc2) only has the renamed snake_case files. Resolve whichever name exists in the checked-out tree so retries work against both pre- and post-rename SHAs, from either branch. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
akifejaz
added a commit
that referenced
this pull request
Jul 3, 2026
Keep the release copy in sync with the main-branch fix (PR #17): the workflow_run-triggered retry executes main's YAML against the triggering run's checked-out SHA, so script paths must resolve both the old hyphenated and new snake_case names. Co-Authored-By: Claude Fable 5 <noreply@anthropic.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.
Problem
Run 28641533375 failed with:
batch-port-retry.ymlisworkflow_run-triggered, so GitHub executes the YAML from the default branch (main) — which still calls the old hyphenated script names — while the job checks out the triggering run's SHA (f166cc2onrelease), whose tree only has the renamed snake_case files (plan_shards.py,missing_pkgs.py).Fix
At each cross-branch call site (3×
missing_pkgs, 1×plan_shards), resolve whichever filename exists in the checked-out tree:This works for retries triggered by runs on either branch, before or after the rename — including old SHAs. The same guard is applied to the
releasebranch copy so the two files stay in sync at the next merge.🤖 Generated with Claude Code