Skip to content

Conversation

@esbena
Copy link
Contributor

@esbena esbena commented Nov 12, 2024

https://github.com/actions/upload-artifact and https://github.com/actions/download-artifact are deprecating v3 soon, and this PR bumps naively to v4.

From skimming, .github/workflows/qhelp-pr-preview.yml From running, several workflows seem to be hit by the unique name restriction mentioned in https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md. This needs investigation.

  • fix mad_modelDiff.yml
  • fix ruby-dataset-measure.yml
  • fix qhelp-pr-preview.yml

@esbena esbena requested review from a team as code owners November 12, 2024 09:31
@esbena esbena marked this pull request as draft November 12, 2024 09:45
`ruby-dataset-measure.yml` is not updated yet as it requires aid from the language team.
We can presumably disable the workflow during the brownout periods, but a fix will have to be present before the full deprecation happens
@esbena esbena force-pushed the esbena/actions/artifact-v4 branch from 19845a5 to 2f0fa5c Compare November 12, 2024 12:29
@esbena
Copy link
Contributor Author

esbena commented Nov 12, 2024

Upon qhelp changes: https://github.com/github/codeql/actions/runs/11797379443 fails because it runs from main expecting artifacts from https://github.com/github/codeql/actions/runs/11797394692 to have different names. Once this is merged, the two workflows are in sync.

@esbena esbena marked this pull request as ready for review November 12, 2024 13:26
@criemen criemen self-requested a review November 12, 2024 14:12
Copy link
Collaborator

@criemen criemen left a comment

Choose a reason for hiding this comment

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

LGTM - one nit you can choose to address or not.

run: gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment"
- name: Download artifacts
run: |
gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment-pr-number"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Per https://cli.github.com/manual/gh_run_download, you can specify multiple names in one go.
But, tbh, I'd really prefer to use something ala

- uses: actions/download-artifact@v4
  with:
    name: comment
    github-token: ${{ github.token }}
    run-id: ${{ github.event.workflow_run.id }}
   pattern: "comment-*"

(this is untested and freestyled) over bash scripts that invoke the cli.
Potentially you also want to use merge-multiple: true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

neat. Thanks.
I'll try not to rock the boat at all here though.

@esbena esbena merged commit 570260b into main Nov 12, 2024
39 checks passed
@esbena esbena deleted the esbena/actions/artifact-v4 branch November 12, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants