-
Notifications
You must be signed in to change notification settings - Fork 90
TST: fix a small abi3t tag test issue, and add a new test for multiarch filename #882
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -411,5 +411,5 @@ def test_limited_api_free_threaded(wheel_limited_api_free_threaded): | |
| artifact = wheel.wheelfile.WheelFile(wheel_limited_api_free_threaded) | ||
| name = artifact.parsed_filename | ||
| assert name.group('pyver') == INTERPRETER | ||
| assert name.group('abi') == 'abi3.abi3t' if FREE_THREADED_BUILD else 'abi3' | ||
| assert name.group('abi') == ('abi3.abi3t' if FREE_THREADED_BUILD else 'abi3') | ||
|
Member
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. Ups! Thanks for catching this. |
||
| assert name.group('plat') == PLATFORM | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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 had this kind of issue on my mind when thinking about the support for
build-detail.jsonin #829. We have this check right nowmeson-python/mesonpy/__init__.py
Lines 436 to 437 in 7c78da3
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.
The regular expression used to extract the ABI from the filename matches both
f'extension.{STABLE_ABI_KIND}-aarch64-linux-gnu.so'andf'extension.{STABLE_ABI_KIND}.so'and any other valid extension module filename, and this is verified at runtime. One test more is better than one test less, thus wer should include this one, but I would like to add some proper cross-compilation tests.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.
💯 me too. However, that's for the
build-details.jsonPR or a follow-up to that I think. This test is cheap (just regex/strings, no building), and would have caught an issue.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 we can fix that up by extending support to more combinations once gh-829 is in? In practice there are lots of combinations of build/host-platform that are difficult. The most common one uses the same Python version and just changes the host platform. That's the test case I'd add first. Then extend from there.
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.
Out of curiosity, which issue would this test have caught that other tests did have not?
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.
Sure. It is just matter to replace checks against the values obtained from the current interpreter with checks against what is in
build-details.json. Should we try to get gh-829 in for this release?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.
My review comment on gh-876: #876 (comment)
Which I think was a recurrence of the thing fixed in gh-322.
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.
Yes, that'd be great.
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 can try to find time to finish the PR. However, I would be hesitant to merge it without an integration test. Ideally the test would compiler an extension module, thus it requires a C cross compiler and a
build-details.jsonfor the target foreign architecture. What's the easiest way to get these?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.
We can also get the release out, merge it right after, and do another release. To take it off of the critical path (we shouldn't drop it for months though).
Conda/pixi is the easiest way to get a cross compilation toolchain. I already have an integration test for
scipy; would need to scope that down to running on a test package (or set of packages) and then adding it in a new CI job.Let's move the CI coverage part to gh-829 though? I think we can discuss the release plan here; this PR is ready to go, and we can probably push to get 1-2 more PRs in, but then ship 0.21.0