-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-45039: [CI][Packaging][Python] Fix Docker push step for free-threaded wheel builds #45040
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -19,6 +19,16 @@ | |||||||||
|
||||||||||
{{ macros.github_header() }} | ||||||||||
|
||||||||||
# Testing free-threaded wheels uses a different Docker setup | ||||||||||
{% set test_imports_image = ( | ||||||||||
'python-free-threaded-wheel-manylinux-test-imports' if python_abi_tag == 'cp313t' | ||||||||||
else 'python-wheel-manylinux-test-imports') | ||||||||||
%} | ||||||||||
{% set test_unittests_image = ( | ||||||||||
'python-free-threaded-wheel-manylinux-test-unittests' if python_abi_tag == 'cp313t' | ||||||||||
else 'python-wheel-manylinux-test-unittests') | ||||||||||
%} | ||||||||||
|
||||||||||
permissions: | ||||||||||
packages: write | ||||||||||
|
||||||||||
|
@@ -72,23 +82,11 @@ jobs: | |||||||||
|
||||||||||
# TODO(kszucs): auditwheel show | ||||||||||
- name: Test wheel | ||||||||||
if: | | ||||||||||
'{{ python_abi_tag }}' != 'cp313t' | ||||||||||
shell: bash | ||||||||||
run: | | ||||||||||
source arrow/ci/scripts/util_enable_core_dumps.sh | ||||||||||
archery docker run python-wheel-manylinux-test-imports | ||||||||||
archery docker run python-wheel-manylinux-test-unittests | ||||||||||
|
||||||||||
# Free-threaded wheels need to be tested using a different Docker Compose service | ||||||||||
- name: Test free-threaded wheel | ||||||||||
if: | | ||||||||||
'{{ python_abi_tag }}' == 'cp313t' | ||||||||||
shell: bash | ||||||||||
run: | | ||||||||||
source arrow/ci/scripts/util_enable_core_dumps.sh | ||||||||||
archery docker run python-free-threaded-wheel-manylinux-test-imports | ||||||||||
archery docker run python-free-threaded-wheel-manylinux-test-unittests | ||||||||||
archery docker run {{ test_imports_image }} | ||||||||||
archery docker run {{ test_unittests_image }} | ||||||||||
|
||||||||||
- name: Test wheel on AlmaLinux 8 | ||||||||||
shell: bash | ||||||||||
|
@@ -141,9 +139,9 @@ jobs: | |||||||||
{{ macros.github_upload_wheel_scientific_python("arrow/python/repaired_wheels/*.whl")|indent }} | ||||||||||
|
||||||||||
{% if arrow.is_default_branch() %} | ||||||||||
pitrou marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
- name: Push Docker Image | ||||||||||
- name: Push Docker images | ||||||||||
shell: bash | ||||||||||
run: | | ||||||||||
archery docker push python-wheel-manylinux-{{ manylinux_version }} | ||||||||||
archery docker push python-wheel-manylinux-test-unittests | ||||||||||
archery docker push {{ test_unittests_image }} | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We may want to push There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean python-wheel-manylinux-test-imports:
image: ${ARCH}/python:${PYTHON_IMAGE_TAG} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, sorry. Yes. I meant Lines 1207 to 1210 in 37eb3b5
We don't need to cache it because it's a temporary image? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I don't know. But it's probably not very important, since the build step took 1 minute in https://github.com/ursacomputing/crossbow/actions/runs/12377700603/job/34547835928 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. Let's keep the current configuration. (We don't cache the |
||||||||||
{% endif %} |
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 think that using GitHub Actions features instead of using Jinja2 is easier to read/understand:
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.
Hmm, I don't know, both are uncommon to me :) Feel free to open a fixup PR if you want.
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.
#45077