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: Remove the pytest-xdist plugin from the "Tests" and "Dev Tests" workflows #3627

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

seisman
Copy link
Member

@seisman seisman commented Nov 18, 2024

The macOS CI jobs recently started failing, as originally reported in #3601 (comment). After investigating, I identified commit f91475d as the first commit causing the issue. However, reverting this commit alone does not fully resolve the failures, as subsequent commits related to testing the _to_numpy function also contribute to the problem.

The exact reason why commit f91475d triggers these failures (on macOS only) remains unclear. However, removing the pytest-xdist plugin, which runs tests across multiple processes, resolves the failures, allowing the CI jobs to pass successfully again.

The downside of this fix is that removing pytest-xdist increases the CI runtime, as tests now run sequentially instead of in parallel. While this trade-off impacts efficiency, it ensures stability for the macOS CI jobs.

@seisman seisman changed the title Temporarily skip all _to_numpy tests on macOS WIP: Temporarily skip all _to_numpy tests on macOS Nov 18, 2024
@seisman seisman closed this Nov 18, 2024
@seisman seisman force-pushed the to_numpy/skip-macos branch from 29cffe5 to 1ff03a3 Compare November 18, 2024 05:28
@seisman seisman reopened this Nov 18, 2024

This comment was marked as outdated.

@seisman seisman force-pushed the to_numpy/skip-macos branch 7 times, most recently from 9a10d9e to 2666531 Compare November 18, 2024 09:24
@seisman seisman changed the title WIP: Temporarily skip all _to_numpy tests on macOS WIP: Debugging the flaky tests on macOS CI Nov 18, 2024
@seisman seisman closed this Nov 18, 2024
@seisman seisman force-pushed the to_numpy/skip-macos branch from 555d1c1 to d0bad08 Compare November 18, 2024 13:39
@seisman seisman reopened this Nov 18, 2024
@seisman seisman force-pushed the to_numpy/skip-macos branch 2 times, most recently from a3838f6 to b83c2c1 Compare November 18, 2024 15:38
@seisman seisman force-pushed the to_numpy/skip-macos branch from cfc9ec7 to 7d3ed8b Compare November 25, 2024 05:20
@seisman seisman changed the title WIP: Debugging the flaky tests on macOS CI CI: Remove the pytest-xdist plugin from the "Tests" and "Dev Tests" workflows Nov 25, 2024
@seisman seisman added maintenance Boring but important stuff for the core devs needs review This PR has higher priority and needs review. labels Nov 25, 2024
@seisman seisman added this to the 0.14.0 milestone Nov 25, 2024
@seisman seisman requested a review from weiji14 November 25, 2024 06:30
@seisman seisman merged commit 8b6f61d into main Nov 25, 2024
19 checks passed
@seisman seisman deleted the to_numpy/skip-macos branch November 25, 2024 08:48
@seisman seisman removed the needs review This PR has higher priority and needs review. label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants