-
Notifications
You must be signed in to change notification settings - Fork 502
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 actions/upload-artifact to v4 #684
[CI] Update actions/upload-artifact to v4 #684
Conversation
5d06873
to
468dcd5
Compare
* actions/upload-artifact v3 will be deprecated as of 2024-12-05 and will result in workflow failures afterwards. * Use unique names to avoid overwrite.
468dcd5
to
0f516dd
Compare
@cedricvincentcuaz (tagging you given bd56809) this is ready for review. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #684 +/- ##
==========================================
- Coverage 97.03% 96.73% -0.30%
==========================================
Files 98 98
Lines 19639 19639
==========================================
- Hits 19056 18998 -58
- Misses 583 641 +58 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR
Small comment and we need to run the build wheels before merging
with: | ||
name: wheels | ||
name: wheels-${{ strategy.job-index }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe matrix.os instead of job-index is easier to parse?
Also could you please commit with message 'build wheels' to trigger the build and check that they run properly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes I remember why this pattern is needed now. If you just do matrix.os
this isn't sufficiently unique in .github/workflows/build_wheels.yml
as both
POT/.github/workflows/build_wheels.yml
Lines 11 to 18 in 38922c0
jobs: | |
build_wheels: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
if: "contains(github.event.head_commit.message, 'build wheels')" | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] |
and
POT/.github/workflows/build_wheels.yml
Lines 47 to 53 in 38922c0
build_all_wheels: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
if: "contains(github.event.head_commit.message, 'build all wheels')" | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] |
will have the same name and so will result in errors of
Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
So you need something more unique. In boost-histogram
we use wheels-${{ strategy.job-index }}
and it works well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. on the other hand both build wheels and build all wheels should not run simultaneously because of the condition. I don't know how you managed that ;)
Also the only one that run on master after a merge is in build_wheels_weekly and this one do not have this kinf of problems. Let us use job-index in build_wheels to avoid the problem and matrix.ox in the weeky file (that also run for all merge on master) so that we have easier to handle filenames when releasing maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha clearly my trigger does not work... (that another thing to debug ;) )
Otherwise LGTM. We can probably merge and see what happens (this does not impact the POT code anyways)
Just to make sure that I don't accidentally break your code because of something stupid I did let me build the wheels on a different branch on my fork and report back. edit: I will go offline before these finish, but I've started a run over on https://github.com/matthewfeickert/POT/actions/runs/11699691668. If these pass, I'll rebase and squash these commits into a single one and then ping for review again. |
9e96ec3
to
0f516dd
Compare
(Sorry for going AFK for a bit — other work distractions came up). @rflamary @cedricvincentcuaz if these changes introduce any pain points or confusion later let me know and I can try to help mitigate this. |
Thank you @matthewfeickert for your PR, everything went smoothly during the merge so no worries :) |
Types of changes
Motivation and context / Related issue
I received this email from GitHub which applies to POT:
How has this been tested (if it applies)
PR checklist