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: Add dynamic shard count calculation for Playwright tests in CI workflow #4844

Merged
merged 12 commits into from
Nov 26, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request introduces a dynamic calculation for the shard count in the Playwright test workflow within the CI pipeline. The shard count is determined based on the total number of tests, optimizing the distribution of tests across shards. The calculation ensures a minimum of 1 shard and a maximum of 10, with the logic implemented to count tests based on specified patterns or all tests if no pattern is provided. This enhancement aims to improve test execution efficiency in the CI process.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Nov 25, 2024
@ogabrielluiz ogabrielluiz force-pushed the efficiency-improvement-ci branch from 81528ec to c366dbd Compare November 25, 2024 22:51
@ogabrielluiz ogabrielluiz added lgtm This PR has been approved by a maintainer and removed lgtm This PR has been approved by a maintainer labels Nov 25, 2024
Copy link
Member

@Cristhianzl Cristhianzl left a comment

Choose a reason for hiding this comment

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

lgtm

@ogabrielluiz ogabrielluiz force-pushed the efficiency-improvement-ci branch from 5736f2d to 56654df Compare November 26, 2024 00:18
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) November 26, 2024 00:18
@ogabrielluiz ogabrielluiz merged commit c941936 into main Nov 26, 2024
9 checks passed
@ogabrielluiz ogabrielluiz deleted the efficiency-improvement-ci branch November 26, 2024 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants