Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump artifacts dependencies #2461

Closed
wants to merge 6 commits into from
Closed

Conversation

angelapwen
Copy link
Contributor

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

`@actions/artifacts@v1` is still not yet supported on GHES and we need to maintain backwards compatibility here. If we detect that a user is running on GHES, we fall back on the original `v1` import.
We can do this now that we have upgraded to `@actions/artifact@v2`; note that on GHES we are still using `@actions/artifact@v1`, but our PR checks are not running on GHES.
@angelapwen
Copy link
Contributor Author

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

errors, which is interesting because the artifact paths are unique for each workflow run.

It seems like a lot of others have reported this: actions/upload-artifact#478 — it looks like even if the artifact names are unique, the entire directory is marked as immutable and will fail with this conflict error in the newest version 🤔

I'll read through the thread to see if there's any consensus on the cleanest way to get around this.

@angelapwen
Copy link
Contributor Author

Okay... it looks like uploading to a different artifact directory (name) each time will work, but this will break how some of our PR checks look for debug artifacts so I'll have to update those too.

Also, I'm trying to think of any other consumers we have that might expect the debug directories to look a certain way 🤔

retentionDays: 7,
},
);
if (ghVariant === GitHubVariant.GHES) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to check for the GHES version here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so — no versions of GHES support the new artifacts dependencies yet 🤦

@angelapwen
Copy link
Contributor Author

I split out a bunch of the refactoring into #2475 so that this PR can stick to bumping the dependencies.

@angelapwen
Copy link
Contributor Author

Closing in favor of #2482.

@angelapwen angelapwen closed this Sep 13, 2024
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.

2 participants