-
Notifications
You must be signed in to change notification settings - Fork 229
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
Update upload-artifact
to use v4
#1371
Update upload-artifact
to use v4
#1371
Conversation
Thanks for bumping this, unfortunately, we've downgraded to With V4 it does not combine the zip files, so we get 5 zip files that we need to unpack, and then combine again. With #1370 this would explode to 25 zips. While releasing iceberg-go I noticed that they use a very fancy script that gets the relevant information of the release PR through the GitHub API. This removes quite a few steps and might be a good idea to introduce here when we're going to |
e55202a
to
1d551c2
Compare
path: ./wheelhouse/* | ||
merge: |
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.
.github/workflows/python-release.yml
Outdated
@@ -34,7 +34,7 @@ jobs: | |||
runs-on: ${{ matrix.os }} | |||
strategy: | |||
matrix: | |||
os: [ ubuntu-22.04, windows-2022, macos-12, macos-13, macos-14 ] | |||
os: [ ubuntu-22.04, windows-2022, macos-13, macos-14 ] |
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.
removed macos-12
because its deprecated and causing the merge
step to not run
https://github.com/kevinjqliu/iceberg-python/actions/runs/12018552791
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.
Good catch, I noticed that macos-15
is also available. Maybe we can add that one as well. I checked it on my local branch, and it works over there: https://github.com/Fokko/iceberg-python/actions/runs/12033072248
@Fokko I double-checked the new artifacts, file names match but they have different hashes. |
@kevinjqliu Can you elaborate? I just pushed it to my own branch, and I see identical hashes:
|
6fb37f2
to
53f8b02
Compare
I was comparing between running the action on main versus this branch Do you know a better way to verify this? |
@kevinjqliu Ah I see, I don't think that we have fully reproducible builds. For example, if a timestamp in some wheel is different, then it would yield another hash. I think it is a nice feature to have, but not strickly required for the ASF releases AFAIK. |
* use v4 * merge artifacts * remove mac 12 * remove old artifacts * add macos-15
* use v4 * merge artifacts * remove mac 12 * remove old artifacts * add macos-15
* use v4 * merge artifacts * remove mac 12 * remove old artifacts * add macos-15
Both
actions/upload-artifact@v3
andactions/download-artifact@v3
are deprecated and requires update, based on https://lists.apache.org/thread/nx19j3h61tjmsk8c8vx24gbq6ygf7pyfupload-artifact@v3
only used in iceberg-pythonhttps://grep.app/search?q=actions/upload-artifact%40v3&filter[repo.pattern][0]=apache/iceberg
download-artifact@v3
is not used in any iceberg-related reposhttps://grep.app/search?q=actions/download-artifact&filter[repo.pattern][0]=apache/iceberg
Migrate from V3 to V4 following the migration guide to merge multiple artifacts into one with
@actions/upload-artifact/merge
.Removed
macos-12
from the os matrix since its deprecated and addedmacos-15
which is currently in public preview.Testing "Python Release" action
Downloaded artifacts and verified that they have the same file names, but different hash.