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

ci: update upload-artifact and download-artifact actions to v4 #8496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Juneezee
Copy link

v3 of actions/upload-artifact and actions/download-artifact will be fully deprecated by 5 December 2024. Jobs that are scheduled to run during the brownout periods will also fail. See:

  1. https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
  2. https://github.blog/changelog/2024-11-05-notice-of-breaking-changes-for-github-actions/

An attempt was made to update the artifact actions in PR #8159, but the version was eventually downgraded from v4 to v3 due to artifact name conficts in PR #8210. This is because v4 of actions/upload-artifact does not allow uploading to the same artifact name anymore and we need to give each artifact a unique name. See:

  1. https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md#multiple-uploads-to-the-same-named-artifact
  2. https://github.com/actions/upload-artifact?tab=readme-ov-file#not-uploading-to-the-same-artifact

/cc @simoncozens @m4rc1e

Copy link
Collaborator

@simoncozens simoncozens left a comment

Choose a reason for hiding this comment

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

LGTM.

@m4rc1e
Copy link
Collaborator

m4rc1e commented Nov 15, 2024

Thanks for the PR!

Slight issue we need to solve first is that v4 has the following breaking change:

Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you will encounter an error.

name: qa
name: qa-diffbrowsers-${{ matrix.os }}
Copy link
Author

Choose a reason for hiding this comment

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

name: qa
name: qa-diffenator
Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

@m4rc1e Only this workflow is affected by the breaking change. I have also updated both artifact names to ensure they are unique.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you very much!

In order to test this pr, we need to trigger the action to run on a family. Would you mind adding another commit that changes https://github.com/google/fonts/blob/main/ofl/abel/METADATA.pb#L4 from SANS_SERIF to SERIF. If we're happy with the results, we'll delete the test commit.

Copy link
Author

Choose a reason for hiding this comment

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

@m4rc1e Yup! Pushed a test commit 388f1bc

Copy link
Author

Choose a reason for hiding this comment

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

It looks like the secrets are not available in my forked repository.

Juneezee added a commit to Juneezee/fonts that referenced this pull request Nov 15, 2024
@m4rc1e
Copy link
Collaborator

m4rc1e commented Nov 15, 2024

We're also dealing with a failing CI due to a fontbakery error so this isn't your fault.

I'm happy to merge this and finish it off on Monday. From what I've read in the upload repo, I'll need to consolidate the zips in a separate job, https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md#multiple-uploads-to-the-same-named-artifact

I'm not going to merge it today since I adhere to "no deploy Fridays" for critical stuff ;-)

@Juneezee Juneezee force-pushed the ci/gh-actions-artifact branch from 388f1bc to 0dc1e1b Compare November 21, 2024 16:17
@Juneezee
Copy link
Author

Rebased.

@Juneezee Juneezee force-pushed the ci/gh-actions-artifact branch from 0dc1e1b to 890a9dc Compare December 13, 2024 12:41
@Juneezee
Copy link
Author

Rebased.

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.

3 participants