fix(ci): restore 1.13 Playwright shard distribution - #31851
Merged
Conversation
shah-harshit
requested review from
akash-jain-10,
harshach and
tutte
as code owners
August 21, 2026 05:34
Code Review ✅ ApprovedRestores correct Playwright test shard distribution and workflow isolation on the 1.13 branch by separating stateful Intake Form projects from Chromium shards. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
chirag-madlani
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
Follow-up to #31587 and #31835.
The PostgreSQL PR Playwright workflow on
1.13intends matrix shards 2–6 to execute Chromium shards1/5through5/5. In run 32371168076, matrix shard 2 instead discovered 3,718 tests while shards 3–6 completed without executing their intended test sets.Root cause
PR #31587 added
IntakeFormCustomPropertyFieldsandIntakeFormto the same sharded command aschromium. At that point both projects depended on the Chromium project. Playwright applies--shardto primary tests and then includes the full dependency projects, so the first effective shard pulled in the complete Chromium dependency suite and the remaining shards were empty.PR #31835 corrected the Intake Form dependency graph and the nightly workflows, but the PostgreSQL PR workflow still co-listed the stateful Intake Form projects with Chromium. With the current dependency graph, that layout can also run Intake Form alongside Chromium tests sharing the same database. Intake Form temporarily changes global required-field configuration, which can make parallel domain and data-product creation fail with HTTP 400 responses.
What changed
1/5through5/5and remove the Intake Form projects from that command.IntakeFormas a second, isolated invocation on shard 1. Its project dependency runsIntakeFormCustomPropertyFieldsfirst.Why this approach
This preserves the existing runner count and five-way Chromium parallelism, isolates the globally stateful tests from every project that creates domains or data products, and retains diagnostics from both shard 1 invocations. The isolated step only receives OSS mode and the GitHub token; connector credentials remain scoped to the existing primary test step.
This regression is specific to the legacy static
1.13workflow. The2.0branch uses duration-aware shard plans with explicit project/file assignments, andmainuses the newer reusable dynamic workflow.Type of change:
Checklist:
Validation
git diff --check.Greptile Summary
This PR restores five-way Chromium sharding in the PostgreSQL Playwright workflow and moves the stateful Intake Form suite into an isolated shard-1 invocation.
Confidence Score: 4/5
The workflow should not merge until the isolated Intake Form step is made to run after an ordinary primary-test failure as intended.
The new condition does not override GitHub Actions' implicit success gating, causing Intake Form coverage and diagnostics to be skipped whenever shard 1's primary tests fail.
Files Needing Attention: .github/workflows/playwright-postgresql-e2e.yml
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Shard 1 setup] --> B[Primary Playwright tests] B -->|success| C[Upload primary artifacts] B -->|failure| D[Job failure state] C --> E[Run isolated Intake Form] D -. implicit success condition blocks step .-> F[Intake Form skipped] E --> G[Upload Intake Form artifacts] G --> H[Consolidated summary]Reviews (1): Last reviewed commit: "fix(ci): restore Playwright shard distri..." | Re-trigger Greptile