Repository navigation
ci(playwright): queue-cache hygiene, AutoPilot MySQL fixture, and helper-test lanes before shard fan-out - #33095
Conversation
…queue refs Follow-up to #33085, which gated the setup-node yarn cache and the buildkit layer cache off merge_group. It missed the largest ephemeral writer because my sweep only covered .github/workflows/*.yml with a direct merge_group trigger — not composite actions, and not reusables invoked by merge_group callers. The writer is the Python venv save in .github/actions/setup-openmetadata-test-environment/action.yml, used by py-tests-shared.yml (via py-tests.yml and py-tests-postgres.yml on merge_group). Its `if:` guarded the fork pull_request_target cache-poisoning case and nothing else — even though the same action, ~50 lines earlier, gates setup-uv's enable-cache off merge_group with a comment explaining the ephemeral-ref problem. One writer fixed, one missed, same file. Cost: ~1 GB per Python version per merge_group run (the py-tests matrix runs two), saved under a gh-readonly-queue/* ref that dies when the entry merges or is dequeued, charged against the 10 GB LRU budget until evicted. Measured 2026-09-10: * 03:44-03:49: four Linux-py3.1x-om-venv entries, 3.98 GB, on two dead queue refs. Total cache 11.46 GB against 10 GB. * 03:24: populate-playwright-caches.yml (02:54 push run) saved playwright-golden-fixture, playwright-distribution and playwright-ingestion-image under main. By ~03:50 distribution (0.37 GB) and ingestion-image (1.26 GB) were gone — LRU-evicted — while the 54 MB fixture survived only because a merge_group run had just restored it (last_accessed 03:49, 03:52). * Net effect on merge_group runs: fixture cache now hits, but `build` still runs mvn cold (~6.5 min) and the ingestion lanes still rebuild the image, because the main-scoped copies cannot survive 2 GB/run of ephemeral writes. Change: add `github.event_name != 'merge_group'` to the save's `if:`. The restore step above is untouched, so queue runs keep hitting main's venv; only the write is gated. Same rule playwright-e2e-reusable.yml applies to all of its own saves. Not changed: the 32 MB spacy-model actions/cache@ in py-tests-shared.yml (same class, 0.6% of budget — not worth the surface). Not changed: CodeQL's overlay-base-database entries (8 x ~470 MB = 3.74 GB on main in 45 min) — that is GitHub default-setup CodeQL, no workflow file to edit; it is the elephant in the budget but not ours to gate here. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
✅ Playwright Results — workflow succeededValidated commit ✅ 4281 passed · ❌ 0 failed · 🟡 6 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 57m 53s ⏱️ Max setup 4m 36s · max shard execution 20m 5s · max shard-job elapsed before upload 23m 52s · reporting 17s 🌐 229.56 requests/attempt · 2.22 app boots/UI scenario · 36.76% common-shard skew Optimization targets still in progress:
🟡 6 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
|



Fixes #33087
Describe your changes
Originally a one-line cache fix. This PR now also carries the related CI-environment work from #33088 (
harshach/debug-merge-queue) that never reached main.1. Queue-cache hygiene (original change)
setup-openmetadata-test-environment/action.yml: skip saving the ingestion Python venv onmerge_group. Queue refs are gone after validation, and their ~1 GB venv copies evict the main-scoped caches. The restore step still runs.2. AutoPilot MySQL fixture
start_playwright_autopilot_mysql.shand the stop-script cleanup, but nothing started the container.start_playwright_fast_environment.shnow starts it alongside the ingestion image, seeds it from the newdocker/development/playwright-autopilot-mysql.sql, and exportsPLAYWRIGHT_AUTOPILOT_MYSQL_*.AutoPilot.spec.ts(test(playwright): port remaining clean specs/utils from #33088; fix TeamsPage stale-team merge #34094) uses those variables when they're set and falls back to the shared MySQL service otherwise.PW_STARTUP_FAILED=true, which already saves and prints the server log tail, so the start script no longer dumps it twice.3. Helper-test lanes wired into CI
plan-playwrightsteps: Verify Playwright HTTP helpers (helper-tests.config.ts) and Verify browser helper behavior (browser-helper-tests.config.ts, with compiled core components and real Chromium), plus component-library prep and a failure-only diagnostics upload.4. Fixes so those lanes pass. Both configs were on main but nothing ran them, and they had rotted: 10 HTTP-helper tests and 4 browser tests failed on a clean main.
fetchCompletedCsvAsyncJobResultpolls/csvAsyncJobs/{jobId}and fails fast on FAILED/CANCELLED/unknown status or a mismatched job.setRemoteRunnerAsDefault,getGlossaryApprovalWorkflowSnapshotanddeleteArticleByFqnthrow on HTTP errors instead of silently continuing.setRemoteRunnerAsDefaultis only called when!PLAYWRIGHT_IS_OSS.5. Impact map points at the moved Auth specs (breaks planning on main today)
Pages/Login.spec.tsandPages/LoginConfiguration.spec.tstoe2e/Auth/, but.github/playwright/impact-map.jsonstill listed the old paths.Login.spec.tsis in thesmokelist that targeted PR runs select, so their shard planning fails withPlaywright selectors reference specs that do not exist: playwright/e2e/Pages/Login.spec.ts. Both entries now point ate2e/Auth/, and a scan of the impact map finds no other references to missing specs.Depends on
importUtils.tsis what the 2gridEditorsbrowser tests need.Verification (local)
gridEditorsandserverLoad).yarn lint:playwright: 0 errors;yarn test:eslint-rulespasses;tsc -p playwright/tsconfig.jsonshows no new errors;bash -non the start script; workflow YAML parses.🤖 Generated with Claude Code