Skip to content
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

ci: fix more ubuntu-24.04 failures #4610

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Conversation

davidhewitt
Copy link
Member

Looks like in a few jobs we hadn't used actions/setup-python and were installing straight into the system environment, which is forbidden with newer pip on 24.04.

@davidhewitt davidhewitt added CI-no-fail-fast If one job fails, allow the rest to keep testing CI-skip-changelog Skip checking changelog entry CI-build-full labels Oct 10, 2024
@davidhewitt
Copy link
Member Author

If this passes I will go straight to merge, as this is blocking everything else.

@@ -114,6 +114,7 @@ mod tests {
}

#[test]
#[cfg(not(Py_GIL_DISABLED))] // https://github.com/python/cpython/issues/116738#issuecomment-2404360445
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We keep having a flaky failure on this test, from a quick look it seems to me that ZoneInfo is not thread-safe. cc @ngoldbaum

I've included here because CI is a bit deadlocked between this failure and the other fixes in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads up! I'll try to take a look at this and report upstream to CPython if the bug is there. Disabling the test on the free-threaded build makes sense if it's flaky.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can reproduce this as well as some other failures I haven't seen until now.

When I switch back to rc2, I don't see them, so there must have been a CPython change between rc2 and final that caused this to happen.

ping @colesbury since this looks like it's happening because of late changes in CPython right before the release.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no, I can reproduce it on rc2. I think I missed this on my prior passes over the tests because I wasn't passing --features=full in my cargo test command. Sorry for the noise Sam!

@davidhewitt davidhewitt added this pull request to the merge queue Oct 10, 2024
Merged via the queue into PyO3:main with commit eacebb8 Oct 10, 2024
75 of 76 checks passed
@davidhewitt davidhewitt deleted the ci-ubuntu-22.04 branch October 10, 2024 09:21
davidhewitt added a commit that referenced this pull request Oct 11, 2024
* ci: fix more ubuntu-24.04 failures

* use 22.04 to test 3.7

* disable zoneinfo test on free-threading
davidhewitt added a commit that referenced this pull request Oct 12, 2024
* ci: fix more ubuntu-24.04 failures

* use 22.04 to test 3.7

* disable zoneinfo test on free-threading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-build-full CI-no-fail-fast If one job fails, allow the rest to keep testing CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants