Skip to content

🐛 fix(test): resolve Windows CI flake in provision integration tests#3732

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix-windows-provision-test-timeout
Feb 17, 2026
Merged

🐛 fix(test): resolve Windows CI flake in provision integration tests#3732
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix-windows-provision-test-timeout

Conversation

@gaborbernat
Copy link
Member

@gaborbernat gaborbernat commented Feb 17, 2026

The Windows CI job test 3.12 on windows-2025 fails intermittently on test_provision_install_pkg_pep517. Investigation showed the test consistently takes ~32s on Windows due to provisioned subprocess pip installs, which exceeds the global 30s pytest-timeout. The "deadlock" stack trace is actually pytest-timeout dumping threads before killing the test. 🔍

The fix raises the timeout to 120s for both provision integration tests that spawn real subprocesses. This also re-enables test_provision_requires_ok on Windows, which was skipped under the assumption it deadlocked — the actual cause was the same 30s timeout being too tight for these heavier integration tests.

Validated with 20/20 passes on windows-2025 CI runners.

The test_provision_install_pkg_pep517 consistently exceeds the global
30s pytest-timeout on Windows CI (takes ~32s), causing intermittent
failures. Increase its timeout to 120s.

Re-enable test_provision_requires_ok on Windows (was skipped due to
suspected deadlock, but the actual issue was just timeout).
@gaborbernat gaborbernat force-pushed the fix-windows-provision-test-timeout branch from 1d1d8ec to 2ecdefe Compare February 17, 2026 20:10
@gaborbernat gaborbernat changed the title Fix Windows CI: provision test timeout and setuptools conflict 🐛 fix(test): resolve Windows CI flake in provision integration tests Feb 17, 2026
@gaborbernat gaborbernat enabled auto-merge (squash) February 17, 2026 20:11
@gaborbernat gaborbernat disabled auto-merge February 17, 2026 20:11
@gaborbernat gaborbernat merged commit 559e89c into tox-dev:main Feb 17, 2026
27 checks passed
@gaborbernat gaborbernat deleted the fix-windows-provision-test-timeout branch February 18, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant