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 actions/upload-artifact from 3 to 4 #4184

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 15, 2023

Bumps actions/upload-artifact from 3 to 4.

Release notes

Sourced from actions/upload-artifact's releases.

v4.0.0

What's Changed

The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.

For more information, see the @​actions/artifact documentation.

New Contributors

Full Changelog: actions/upload-artifact@v3...v4.0.0

v3.1.3

What's Changed

Full Changelog: actions/upload-artifact@v3...v3.1.3

v3.1.2

  • Update all @actions/* NPM packages to their latest versions- #374
  • Update all dev dependencies to their most recent versions - #375

v3.1.1

  • Update actions/core package to latest version to remove set-output deprecation warning #351

v3.1.0

What's Changed

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added backport/v1.0 dependencies Pull requests that update a dependency file labels Dec 15, 2023
@janusgraph-bot janusgraph-bot added the cla: external Externally-managed CLA label Dec 15, 2023
@FlorianHockmann
Copy link
Member

Looks like there was a breaking change which now breaks our builds. Seems like we're creating multiple times an artifact with the same name which isn't allowed any more in v4: actions/upload-artifact#471.
This seems to be caused by jacoco as we have multiple times the same config to upload reports like this:

      - uses: actions/upload-artifact@v3
        with:
          name: jacoco-reports
          path: target/jacoco-combined.exec

I haven't looked further into this and I also don't know how jacoco works so I can't say whether we can simply change the name here or how else we can deal with this. (Just wanted to write my findings down so far in case any one else also wants to look into it.)

@li-boxuan
Copy link
Member

I am not sure if this is the right approach, but probably something like this might work:

- uses: actions/upload-artifact@v4
  with:
    name: jacoco-reports-${{ matrix.module }}-java-${{ matrix.java }}
    path: target/jacoco-combined.exec

@FlorianHockmann FlorianHockmann force-pushed the dependabot/github_actions/actions/upload-artifact-4 branch from 432c449 to 64a1adc Compare April 3, 2024 09:56
@FlorianHockmann
Copy link
Member

I am not sure if this is the right approach, but probably something like this might work:

I updated the commit to try out your suggestion. Let's see whether this fixes the failing builds.

@FlorianHockmann FlorianHockmann force-pushed the dependabot/github_actions/actions/upload-artifact-4 branch 2 times, most recently from f3c1b68 to 395b9ae Compare April 10, 2024 12:33
@FlorianHockmann FlorianHockmann force-pushed the dependabot/github_actions/actions/upload-artifact-4 branch 3 times, most recently from c570606 to 9bd153d Compare April 16, 2024 10:19
@FlorianHockmann
Copy link
Member

FlorianHockmann commented Apr 17, 2024

OK, this took me several attempts to fix it for all cases, but now all builds are green and this is therefore ready for review again. I had to rename some elements of a matrix to get unique names as they could only be identified by their args, but the args also contain invalid characters if we wanted to use them as an artifact name.
I'll merge this after 7 days if nobody reviews it until then.

Copy link
Member

@li-boxuan li-boxuan left a comment

Choose a reason for hiding this comment

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

Thank you for taking care of this. Just two minor nits:

.github/workflows/ci-backend-cql.yml Outdated Show resolved Hide resolved
.github/workflows/ci-backend-cql.yml Outdated Show resolved Hide resolved
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Use different names for the artifacts as required by upload-artifact@v4.

Signed-off-by: dependabot[bot] <support@github.com>
@FlorianHockmann FlorianHockmann force-pushed the dependabot/github_actions/actions/upload-artifact-4 branch from 9bd153d to 95fa166 Compare April 18, 2024 14:17
@FlorianHockmann FlorianHockmann added this to the Release v1.1.0 milestone Apr 19, 2024
@FlorianHockmann FlorianHockmann merged commit ecd3214 into master Apr 19, 2024
175 of 176 checks passed
@dependabot dependabot bot deleted the dependabot/github_actions/actions/upload-artifact-4 branch April 19, 2024 07:10
@janusgraph-automations
Copy link

💚 All backports created successfully

Status Branch Result
v1.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v1.0 cla: external Externally-managed CLA dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants