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

Stop running client tests in parallel with xdist #1881

Merged
merged 1 commit into from Mar 5, 2024
Merged

Stop running client tests in parallel with xdist #1881

merged 1 commit into from Mar 5, 2024

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Feb 29, 2024

Status

Ready for review

Description

These tests are pretty quick that they don't really benefit from xdist. Plus not all of our tests are threadsafe (e.g. the ones that call locale.setlocale()), so if there's no real need for parallelization, let's skip it.

Refs #1880.

Test Plan

  • CI passes, n.b. this only affects the test-integration job anyways
  • No significant slowdown when running tests in CI and locally
Before After
Screenshot 2024-02-28 at 22-20-21 Install PyQt5 5 15 9 in bookworm · freedomofpress_securedrop-client@3aec23a Screenshot 2024-02-28 at 22-22-04 Stop running client tests in parallel with xdist · freedomofpress_securedrop-client@4cd3510

@legoktm legoktm requested a review from a team as a code owner February 29, 2024 06:23
@cfm cfm self-assigned this Mar 4, 2024
Copy link
Member

@cfm cfm left a comment

Choose a reason for hiding this comment

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

I'll note that the slowdown is more significant locally in than in CI: currently ~30 seconds for make test on main versus ~60 seconds on this branch. But overall I agree with your rationale here, @legoktm. I'll approve and merge tomorrow unless we hear from others today or tomorrow at stand-up.

These tests are pretty quick that they don't really benefit from xdist.
Plus not all of our tests are threadsafe (e.g. the ones that call
locale.setlocale()), so if there's no real need for parallelization,
let's skip it.

Refs #1880.
@legoktm
Copy link
Member Author

legoktm commented Mar 5, 2024

(Rebased)

Copy link
Member

@cfm cfm left a comment

Choose a reason for hiding this comment

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

Conflicts resolved (by @legoktm) and no concerns raised about this (by anyone). Thanks, @legoktm.

@cfm cfm merged commit 727ceb8 into main Mar 5, 2024
92 checks passed
@cfm cfm deleted the no-xdist branch March 5, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants