Skip to content

ci: fix more ubuntu-24.04 failures#4610

Merged
davidhewitt merged 3 commits into
PyO3:mainfrom
davidhewitt:ci-ubuntu-22.04
Oct 10, 2024
Merged

ci: fix more ubuntu-24.04 failures#4610
davidhewitt merged 3 commits into
PyO3:mainfrom
davidhewitt:ci-ubuntu-22.04

Conversation

@davidhewitt

Copy link
Copy Markdown
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 davidhewitt enabled auto-merge October 10, 2024 05:38
@davidhewitt

Copy link
Copy Markdown
Member Author

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

}

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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