Skip to content

feat: adopt the new sharding API - #75

Merged
aslushnikov merged 4 commits into
mainfrom
migrate-to-new-api
Jul 26, 2026
Merged

aslushnikov merged 4 commits into
mainfrom
migrate-to-new-api

Conversation

@aslushnikov

@aslushnikov aslushnikov commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Playwright v1.62 releases a new custom reporter API that can be
used for shard allocation.

The discussion on the upstream API was carried in the following issues:

This patch:

  • Adopts the new upstream API for shard allocation, removing the
    flakiness-playwright-shard binary.
  • Drops the auto-fetching functionality that we had previously. The
    auto-fetching resulted in unpredictable shard allocation, which proved
    to be problematic in real world test suites (as was demonstrated by
    Wordpress/Gutenberg integration) .
    As a result, the auto-fetching promoted a bad developer experience.

This Pull Request will result in a major version release for
the @flakiness/playwright package due to the breaking functionality:

  • the flakiness-playwright-shard binary is removed
  • the auto-fetching functionality is removed
  • shard balancing is only possible for Playwright 1.62+

Upcoming Playwright v1.62 releases a new custom reporter API that can be
used for shard allocation.

The discussion on the upstream API was carried in the following issues:
- microsoft/playwright#40934
- microsoft/playwright#41708

This patch:
- Adopts the new upstream API for shard allocation, removing the
  `flakiness-playwright-shard` binary.
- Drops the auto-fetching functionality that we had previously. The
  auto-fetching resulted in unpredictable shard allocation, which proved
  to be problematic in real world test suites (as was demonstrated by
  [Wordpress/Gutenberg integration](WordPress/gutenberg#79479)) .
  As a result, the auto-fetching promoted a bad developer experience.

This Pull Request will result in a major version release for
the `@flakiness/playwright` package due to the breaking functionality:
- the `flakiness-playwright-shard` binary is removed
- the auto-fetching functionality is removed
- shard balancing is only possible for Playwright 1.62+

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2bbb7b7805

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/playwright-test.ts Resolved
@aslushnikov
aslushnikov merged commit c9f8c4d into main Jul 26, 2026
7 checks passed
@aslushnikov
aslushnikov deleted the migrate-to-new-api branch July 26, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant