Repository navigation
Add retry logic for artifact uploads - #5
Merged
Merged
Conversation
A run failed after Close-Up's retrieve succeeded: the upload's first call to the artifact service hit ECONNRESET. @actions/artifact rethrows network errors without retrying, so one dropped connection voided the release. Wrap the upload in a local composite action that tries three times, overwriting anything a failed attempt left behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011PaJWNbGAbMCmgPiym69F9
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.
Summary
Introduces a custom GitHub Actions composite action to handle artifact uploads with automatic retry logic, replacing direct calls to
actions/upload-artifact@v7across all retrieve jobs.Changes
New file:
.github/actions/upload-retrieved-data/action.ymlactions/upload-artifact@v7with three-attempt retry logicoverwrite: trueon retries to handle partial uploads from failed attemptsModified file:
.github/workflows/retrieve.ymlactions/upload-artifact@v7calls with the new composite actionpath: retrieved-data/from all upload steps (now hardcoded in the action)Rationale
The
@actions/artifactaction does not retry on network errors likeECONNRESET, causing jobs to fail after successful data retrieval. This leaves the release gate blocked by transient upload failures rather than actual data problems. The retry logic is implemented as a composite action wrapper rather than relying on the action's built-in retry support (which it lacks), allowing the workflow to recover from temporary connectivity issues to GitHub's artifact service.https://claude.ai/code/session_011PaJWNbGAbMCmgPiym69F9