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: upgrade upload-artifact action to v4 in scorecard workflow #367

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

frobware
Copy link
Contributor

Fixes: #348.

Upgrade from actions/upload-artifact@v3-node20 (previously referenced as "v3.pre.node20" in the existing comment) to v4.

Determine the previous and v4 commit SHAs:

  $ git tag --contains 97a0fba1372883ab732affbe8f94b823f91727db
  v3-node20
  v3.2.0-node20
  v3.2.1-node20

  $ git ls-remote https://github.com/actions/upload-artifact.git refs/tags/v4
  65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08	refs/tags/v4
  $ git tag --contains 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
  v4
  v4.6.0

Bump straight to v4 after reviewing the migration documentation because:

  • The workflow uploads a single artefact once, so v4’s restriction on multiple uploads to the same name and its new merging behaviour do not affect our usage.

  • The retention-days input remains unchanged in v4. While neither v3 nor v4 explicitly define a default in their action.yml, GitHub’s documentation states that artifacts default to 90 days unless overridden in repository settings. Since v4 does not specify a new default, it continues using GitHub’s 90-day retention policy, as before.

  • Hidden files are not relevant to this artefact, so their exclusion (introduced in v4.4) has no impact. Since v4.6.0 maintains this behaviour, upgrading does not introduce any changes affecting this workflow.

Fixes: bpfman#348.

Upgrade from actions/upload-artifact@v3-node20 (previously referenced
as "v3.pre.node20" in the existing comment) to v4.

Determine the previous and v4 commit SHAs:

  $ git tag --contains 97a0fba1372883ab732affbe8f94b823f91727db
  v3-node20
  v3.2.0-node20
  v3.2.1-node20

  $ git ls-remote https://github.com/actions/upload-artifact.git refs/tags/v4
  65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08	refs/tags/v4
  $ git tag --contains 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
  v4
  v4.6.0

Bump straight to v4 after reviewing the migration documentation[1]
because:

- The workflow uploads a single artefact once, so v4’s restriction on
  multiple uploads to the same name and its new merging behaviour do
  not affect our usage.

- The retention-days input remains unchanged in v4. While neither v3
  nor v4 explicitly define a default in their action.yml, GitHub’s
  documentation[2] states that artifacts default to 90 days unless
  overridden in repository settings. Since v4 does not specify a new
  default, it continues using GitHub’s 90-day retention policy, as
  before.

- Hidden files are not relevant to this artefact, so their
  exclusion (introduced in v4.4) has no impact. Since v4.6.0 maintains
  this behaviour, upgrading does not introduce any changes affecting
  this workflow.

[1] https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
[2] https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/storing-and-sharing-data-from-a-workflow

Signed-off-by: Andrew McDermott <amcdermo@redhat.com>
Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.12%. Comparing base (afdc19a) to head (fc76814).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #367   +/-   ##
=======================================
  Coverage   28.12%   28.12%           
=======================================
  Files         128      128           
  Lines       11207    11207           
=======================================
  Hits         3152     3152           
  Misses       7773     7773           
  Partials      282      282           
Flag Coverage Δ
unittests 28.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@anfredette anfredette left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this, Andy.
/LGTM

@mergify mergify bot merged commit 67a0cc5 into bpfman:main Jan 31, 2025
15 checks passed
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.

Update workflows to use v4 of the artifact actions
2 participants