Skip to content

Run stdlib tests#1024

Draft
indygreg wants to merge 4 commits intogps-pgo-tweaksfrom
gps-stdlib-tests
Draft

Run stdlib tests#1024
indygreg wants to merge 4 commits intogps-pgo-tweaksfrom
gps-stdlib-tests

Conversation

@indygreg
Copy link
Collaborator

Still a draft. Assessing how much effort it is to run the stdlib test suite in CI.

@indygreg indygreg force-pushed the gps-stdlib-tests branch 20 times, most recently from 305d967 to 9d84cd3 Compare March 23, 2026 03:19
Default runners have 2 CPUs. We can achieve a nice speed-up
(but not quite linear) by leveraging runners with more CPUs.
Way back when we only supported statically linked extension modules. And
we had to disable `_testcapi` because it wouldn't build statically.

Now that we support building extension modules as shared libraries,
it makes sense for extension modules in support of tests to not be
part of libpython and to be shared libraries.

This commit makes that change.

And since `_testcapi` is buildable as a shared library, we enable it.
In doing so, we eliminate the largest single source of test failures.
@indygreg indygreg force-pushed the gps-stdlib-tests branch 6 times, most recently from 165be3a to 85916a9 Compare March 23, 2026 05:20
This removes the dependency on openssl / pkg-config. This in turn
avoids ~30s of overhead on the crate build CI job to install these
dependencies.

While I was here I ran `cargo update` to pull in newer versions of
various dependencies. I also removed some unused dependencies from
`Cargo.toml`.
@indygreg indygreg force-pushed the gps-stdlib-tests branch 5 times, most recently from 19f3936 to 53fa0c4 Compare March 23, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant