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: pool can be dirty from other threads #3225

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

davidhewitt
Copy link
Member

I hit this failure in CI: https://github.com/PyO3/pyo3/actions/runs/5237094306/jobs/9455062113?pr=2709#step:19:732

I'm pretty sure what's going on there is that pool_not_dirty() is too strong an assertion - another thread which is testing putting a delayed clone or drop onto the pool can trigger a race. I was able to reproduce the same race before applying this patch.

@adamreichold adamreichold added the CI-skip-changelog Skip checking changelog entry label Jun 11, 2023
Copy link
Member

@adamreichold adamreichold left a comment

Choose a reason for hiding this comment

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

Agreed. I have also hit this a few times, but just never found the motivation to try to actually fix it. Thanks!

@davidhewitt davidhewitt added this pull request to the merge queue Jun 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jun 11, 2023
@davidhewitt davidhewitt added this pull request to the merge queue Jun 12, 2023
Merged via the queue into PyO3:main with commit ef7c02c Jun 12, 2023
ritchie46 pushed a commit to pola-rs/pyo3 that referenced this pull request Dec 5, 2024
ci: pool can be dirty from other threads
ritchie46 pushed a commit to pola-rs/pyo3 that referenced this pull request Dec 5, 2024
ci: pool can be dirty from other threads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants