Skip to content

fix: resolve CI artifact upload conflicts on workflow re-runs#3723

Draft
andygrove wants to merge 1 commit intoapache:mainfrom
andygrove:fix/ci-artifact-overwrite
Draft

fix: resolve CI artifact upload conflicts on workflow re-runs#3723
andygrove wants to merge 1 commit intoapache:mainfrom
andygrove:fix/ci-artifact-overwrite

Conversation

@andygrove
Copy link
Member

Which issue does this PR close?

N/A - CI reliability fix.

Rationale for this change

CI workflows sometimes fail with:

Error: Failed to CreateArtifact: Received non-retryable error:
Failed request: (409) Conflict: an artifact with this name already exists on the workflow run

This happens when a failed job is re-run — the artifact from the first attempt already exists and upload-artifact refuses to overwrite it.

What changes are included in this PR?

In .github/actions/java-test/action.yaml:

  • Added overwrite: true to crash-logs and unit-tests upload steps (the java-test-reports step already had it)
  • Bumped actions/upload-artifact from v6 to v7 for consistency with the workflow files

How are these changes tested?

This will be validated by re-running failed CI jobs on PRs.

Add overwrite: true to crash-logs and unit-tests upload steps in
java-test action, and bump upload-artifact from v6 to v7 for
consistency with other workflows.
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.

1 participant