Repository navigation
CI: Update CI to validate Limited API in debug job builds - #32130
Conversation
Can we get explicit checks for this as part of a CI job? |
|
Three ways it fails the CI job:
|
cd99c16 to
d89527b
Compare
|
Question @prathamhole14: why do we need this script at all? I was just expecting a |
Fair, dropping the script. I only wanted to catch the flag silently becoming a no-op, and a grep for |
|
I'd prefer just the flag, yes. That should suffice, so let's try to keep it as clean as possible. |
|
Perhaps I'm missing something. Why don't we just use the On looking in more detail the PR seems like a ratchet to ensure that extension modules that have been ported don't slide back. It may be possible to just use abi3audit against each known extension. |
That's indeed a good idea, but only after all of numpy builds as an
They won't slide back, no special check is needed - if something is used that isn't in the Limited API, it will cause a build failure as soon as |
One can run the tool against individual extension modules. e.g. e.g. |
d89527b to
a98f8e7
Compare
Thanks. I knew that, my argument was more that it's essentially free once we have a wheel, and we don't want to complicate CI for this now. This whole exercise for seeing how far moving to the limited API is experimental, it might run into a hard blocker, or yield performance-related regressions that are of a size we care about. Until we figure that out, we want to merge only the minimal diffs (same reason as not merging the separate script that was in this PR). This kind of auditing is easy enough to do locally, and isn't on the critical path right now. |
rgommers
left a comment
There was a problem hiding this comment.
Let's give this a go, thanks @prathamhole14 and reviewers.
PR summary
JOB: Check that the extension modules ported to the Limited C API were built against it.
Updated: The debug interpreter doesn't produce
.abi3.sonamed exenstion files at all, because it means this job proves the ported modules compile underPy_LIMITED_APIso therefore they must have produced.abi3.sofiles.AI Disclosure
For bash syntax