-
Notifications
You must be signed in to change notification settings - Fork 211
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
actions/upload-artifact & actions/download-artifact v4 support #363
Comments
Extra context: this is sneaky, as it's very easy to bump to |
Just updated to v4 and indeed, test-reporter is causing issues...
Will downgrade again, but I'm looking forward to v2... And I agree, having a Warning actions/upload-artifact & actions/download-artifact version 4 is currently not supported, downgrade to v3 or something like that, would really help clear up any confusion |
See dorny/test-reporter#363. Signed-off-by: Bradley Grainger <[email protected]>
As is github tradition, workflows started yelling about running on a node version that was getting sunset, so here we go again. Relevant bumps: - https://github.com/actions/checkout/releases/tag/v4.0.0 - https://github.com/actions/setup-dotnet/releases/tag/v4.0.0 - https://github.com/actions/cache/releases/tag/v4.0.0 - https://github.com/actions/setup-java/releases/tag/v4.0.0 - https://github.com/peter-evans/create-pull-request/releases/tag/v6.0.0 - https://github.com/dorny/test-reporter/releases/tag/v1.8.0 Notably, `actions/upload-artifact` is _not_ bumped to v4, although it should be to resolve the node deprecation warnings, because it has more breaking changes and bumping would break `dorny/test-reporter` (see dorny/test-reporter#363).
As is github tradition, workflows started yelling about running on a node version that was getting sunset, so here we go again. Relevant bumps: - https://github.com/actions/checkout/releases/tag/v4.0.0 - https://github.com/actions/setup-dotnet/releases/tag/v4.0.0 - https://github.com/actions/cache/releases/tag/v4.0.0 - https://github.com/actions/setup-java/releases/tag/v4.0.0 - https://github.com/peter-evans/create-pull-request/releases/tag/v6.0.0 - https://github.com/dorny/test-reporter/releases/tag/v1.8.0 Notably, `actions/upload-artifact` is _not_ bumped to v4, although it should be to resolve the node deprecation warnings, because it has more breaking changes and bumping would break `dorny/test-reporter` (see dorny/test-reporter#363).
…mpatibility with dorny/test-reporter@v1 dorny/test-reporter#363
As a workaround, we manually download and extract our test results containing artifact in a previous step (that we uploaded before using our CI workflow and Lines 82 to 92 in eaa763f
|
Except for upload-artifact@v3 because of dorny/test-reporter#363
The #438 should fix the problem reported by @ScribbleTAS. The original issue will need another fix I think. |
@jozefizso and @Gedochao, what is the original issue? If there is another issue here, it is not clear to me what it is. I think the action should work with Artifacts v4 now. Background: As far as I know, this action doesn't use |
Hi @jozefizso and @JojOatXGME , I can confirm that it works now! |
@ScribbleTAS Since you have edited your comment and removed the block about your issue, I assume you have resolved it.
For everyone else, the error did occur after the artifacts have already been downloaded and when the report was about to be created. While I don't know much about the case of @ScribbleTAS, this error usually means that your job doesn't have the PS: Also note that |
This was exactly the issue here. I checked the readme, saw the section with the permissions and immediately put two and two together on why my workflow was failing, even for upload v3. |
Remove dorny/test-reporter since it does not support the artifact v4 actions dorny/test-reporter#363
For all who is affected by the CVE-2024-42471, fix permissions as explained here https://stackoverflow.com/a/78679516/5608789 |
FYI, In short: I still believe this issue and #343 is already resolved since version 1.9.1. |
Thanks, @JojOatXGME, for the info. After pinning the version to |
upload-artifact v3 is deprecated. Update test-reporter to v1.9.1; the v1 tag doesn't point at the latest version. Pinning to v1.9.1 was recommended here: dorny/test-reporter#363 (comment).
Describe
The popular https://github.com/actions/upload-artifact & https://github.com/actions/download-artifact recently got a major update to
v4
, which is incompatible withv3
actions.The
v4
release offers a considerable boost in the efficiency of artifacts' uploads & downloads, so it's generally a much desired bump.By the look of things, this breaks the flow for using the
test-reporter
with public repositories, astest-reporter
uses those withv3
.Example of a bump which seems to break the test reports flow (Scala CLI repo)
I did not do in-depth research on this topic, but it seems that bumping to
v4
in the Scala CLI repo breaks the test reports:We use the public repo setup like this:
https://github.com/VirtusLab/scala-cli/blob/3dcfb3357d9c35bd71be27548e7e4e82fc6ef528/.github/workflows/test-report.yml
So we generate test reports with Mill, use our custom script to change them into the JUnit XML format and then upload the artifacts for the test report workflow to pick it up, nothing special. Should be seen as the standard
java-junit
flow for a public repo.Proposed solution
Bump
test-reporter
actions tov4
& probably release av2
version of thetest-reporter
action, to prevent breaking old workflows and let them bump their stuff in peace.Alternatives considered
Stay at
v3
, I guess?The text was updated successfully, but these errors were encountered: