Repository navigation
Fixes 28394: Cut Playwright CI shard runtime - #30310
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
🔴 Playwright Results — 16 test failure(s)✅ 4261 passed · ❌ 16 failed · 🟡 11 flaky · ⏭️ 95 skipped
Genuine Failures (failed on all attempts)❌
|
…ywright-runtime # Conflicts: # .github/workflows/playwright-postgresql-e2e.yml
|
|
Code Review 👍 Approved with suggestions 5 resolved / 6 findingsRestructures Playwright CI test execution with impact-based selection, duration-balanced sharding, and memory-backed fixtures to significantly reduce shard runtimes. Address the uncleaned table2 leakage in EntityDataClass to prevent cross-test state pollution. 💡 Edge Case: table2 leaked into shared EntityDataClass schema, no cleanup📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/TableSorting.spec.ts:143-157 The refactor drops the try/finally that previously deleted the throwaway table1 and now creates table2 inside the shared EntityDataClass.table1 schema without ever deleting it. Because table1's schema is a global, run-scoped fixture reused by other specs, the orphaned table2 persists for the rest of the run and can perturb any later test that lists/counts/sorts tables in that schema. Restore cleanup by deleting table2 in a finally block (or via afterAction) after the sorting assertion. ✅ 5 resolved✅ Quality: Cached rejected admin-context promise is never reset on failure
✅ Bug: Timing baseline merges per-project durations under one spec id
✅ Edge Case: Golden-fixture admin token can expire before late shards run
✅ Edge Case: Flaky poll endpoint prematurely fails a healthy export
✅ Bug: Aborted poll request can produce an unhandled rejection
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |



Describe your changes:
Fixes #28394
I replaced static full-suite sharding with PR impact selection and p75 duration-balanced plans, and added a single golden PostgreSQL/OpenSearch fixture cloned into
/dev/shmso standard shards skip rebuilds, migrations, Airflow, sample ingestion, and reindexing. The workflow also uses worker-scoped API setup, CI-only coarse bundling, isolated ingestion/global lanes, bounded failure artifacts, and request/timing/coverage SLO gates. CI-only fast-stack controls preserve production backend, database, search, and normal Vite bundle defaults; the production-facing UI request-reduction and CSV export changes are documented separately below.Type of change:
High-level design:
Production-facing UI changes and review focus:
The database/search fast stack, HTTP/2 rejected experiment, access logging, ETag opt-out, app-boot beacon, and coarse Vite bundle are CI-only. Normal production database/search/server settings and normal Vite CSS splitting, Brotli compression, and chunking defaults are unchanged.
This PR also changes shipped UI behavior:
jobId; completion events received before the create request resolves are buffered; unrelated or stale WebSocket events are ignored; status polling recovers completion events missed by the socket; and completed jobs without inline CSV fetch their result separately. Once started, polling and result requests are aborted on success, replacement, and provider unmount.GET /csvAsyncJobs/{jobId}accepts persisted numeric job IDs. Unconditional polling therefore fails for lineage and can mark an export taking more than about 25 seconds as failed before its valid WebSocket completion arrives. Polling must be gated by an explicit pollable-job contract (or, minimally, numeric IDs) and covered by a UUID lineage regression test.FAILEDafter about 25 seconds for immediate errors or 55 seconds for five-second timeouts. The backend job may still be running, and its later completion is then ignored. This needs a recoverable “status unavailable” state that retains the active job and WebSocket correlation.onExportrequest that resolves after provider unmount can start a new poll after cleanup has already run. Review should consider a WebSocket-silence watchdog, jittered fallback polling, a mounted/generation guard, and explicit close/background handoff semantics.HTTP/2 A/B decision and shard capacity:
400 Ambiguous URI path encodingfor valid quoted FQNs containing%. Dropwizard applies the configured URI compliance to its H1 connection factory but not theHTTP2ServerConnectionFactory. This is a deterministic product-compatibility regression, not test flakiness.c5b0708138is byte-for-byte identical to golden tree968508bb38; no H2 production or CI enablement is retained.ceil(1,185.8 / (3 workers × 20 minutes × 0.85 efficiency)) = 24common shards. Reducing to 20 before lowering per-test work projects more than 23 minutes of browser execution before setup, skew, retries, and reporting, so the sub-30-minute signal would no longer be reliable.Tests:
Use cases covered
Unit tests
.github/scripts/tests/test_playwright_ci_planning.py.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
git diff --check.app-*.jsentry; the local cold-shell benchmark reduced static requests from 144 to 22.yarn tsc:playwrightstill reports 183 existing repository-wide diagnostics and zero diagnostics in files changed by this PR.UI screen recording / screenshots:
No visual design changes. The shipped UI performance and CSV async-behavior changes are documented above; automated coverage is listed below.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Greptile Summary
This PR restructures Playwright CI to reduce shard runtime. The main changes are:
Confidence Score: 5/5
This looks safe to merge.
Important Files Changed
Reviews (21): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile
Context used (3)