Fix flaky pytest-run-parallel CI crash by ngoldbaum · Pull Request #251 · python-cffi/cffi · GitHub
Skip to content

Fix flaky pytest-run-parallel CI crash#251

Merged
mattip merged 1 commit into
python-cffi:mainfrom
ngoldbaum:fix-tsan-ci-crash
Jun 30, 2026
Merged

Fix flaky pytest-run-parallel CI crash#251
mattip merged 1 commit into
python-cffi:mainfrom
ngoldbaum:fix-tsan-ci-crash

Conversation

@ngoldbaum

@ngoldbaum ngoldbaum commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

While triggering a full CI run to test a v2.1 release, I happened to trigger a CI crash:

https://github.com/ngoldbaum/cffi-ft/actions/runs/28403191570/job/84159323543

I tracked it down to this test, which upon inspection is clearly not thread-safe. It mutates the process global libc stdout pointer. The correct fix is to mark it as thread-unsafe.

@mattip mattip merged commit 5f12702 into python-cffi:main Jun 30, 2026
38 checks passed
@mattip

mattip commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

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.

2 participants