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

Speed up playwright (pt2: full parallelization) #1720

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

djahandarie
Copy link
Collaborator

@djahandarie djahandarie commented Dec 29, 2024

Changes

  • Break out the popup tests into completely standalone tests as opposed to reusing the same test/browser. This allows parallelizing it.
  • Shard the playwright tests into shards on CI/CD.

Tuning

We have a quota of 20 total concurrent jobs, so we could potentially increase the number of shards introduces by this PR (5) but it may come at the cost of causing other jobs to get queued since we have no way of specifying priority between jobs, which may not be the right tradeoff. Also, separately, we could increase the number of workers in playwright from 1 to 2, but will need to observe the stability within GitHub actions runners. It would be appropriate to tune further.

Reason for changes in the screenshots

Previously, since we were using a single browser, one of the tests (test 6) was never able to clear its popup from the screen properly, and lingered in the results of all the following tests (7 to 16). Now since each test is isolated, the ghost of test 6 will no longer be present, which you can see in the diffs.

@djahandarie djahandarie requested a review from a team as a code owner December 29, 2024 04:44
@djahandarie djahandarie force-pushed the parallelize-playwright branch 6 times, most recently from a39cfc4 to 074f569 Compare December 29, 2024 06:32
@djahandarie djahandarie force-pushed the parallelize-playwright branch from 074f569 to 1c8a431 Compare December 29, 2024 06:37
@djahandarie djahandarie changed the title [WIP] Speed up playwright (pt2: full parallelization) Speed up playwright (pt2: full parallelization) Dec 29, 2024
@djahandarie djahandarie added kind/meta The issue or PR is meta area/ci The issue or PR is related to continuous integration and/or continuous delivery labels Dec 29, 2024
@jamesmaa jamesmaa added this pull request to the merge queue Dec 31, 2024
Merged via the queue into master with commit 2157d69 Dec 31, 2024
26 checks passed
@jamesmaa jamesmaa deleted the parallelize-playwright branch December 31, 2024 22:04
This was referenced Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci The issue or PR is related to continuous integration and/or continuous delivery kind/meta The issue or PR is meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants