Repository navigation
chore(playwright): manual timing-baseline refresh (unblocks planner) - #32864
Conversation
The auto-refresh job has been running on every successful merge_group
Playwright since 2026-08-24 and getting rejected by GH013 branch-
protection every time. Two weeks of new specs (35 files including 8
AppMode, 5 Ontology*Rdf, 3 Metric*) pushed the chromium lane past the
28-shard × 19-minute plan ceiling, and today the planner hit its
documented abort:
Lane chromium needs more than 28 shards to stay within the
19-minute plan budget; the heaviest shard is predicted at 19.3m
Refreshing from the last successful merge_group full run (34109980157,
SHA 133a22a).
Refresh summary:
- entries: 3574 → 3576 (+45 added, -43 removed)
- durations changed by > 500 ms: 2905
- significant shifts (>30% and >5 s): 609 (17.0%)
- previously zero → now real: 1
- drift: 2.5% of test-id entries (well under the 40% safety cap)
Files newly covered (6):
+ Features/BlockEditorMathEquations.spec.ts
+ Features/ClassificationImportExport.spec.ts
+ Features/DataQuality/TestCaseSoftDeleteRestore.spec.ts
+ Features/PersonaAIContextPermissions.spec.ts
+ Features/PersonaSessionPersistence.spec.ts
+ Pages/EmailConfiguration.spec.ts
Files no longer covered (1):
- Pages/TestSuiteDetailsPage.spec.ts
Follow-up (separate from this PR): grant the RELEASE_BOT_TOKEN
identity bypass on main's branch-protection ruleset so the
`refresh-timing-baseline` job stops silently failing every green
merge_group run. Without that fix we hit this abort again in another
two weeks.
Generated with:
python3 .github/scripts/refresh_timing_baseline.py \
--history playwright-timing-history.json \
--current .github/playwright/timing-baseline.json \
--output .github/playwright/timing-baseline.json \
--source-run-id 34109980157 \
--min-materiality-percent 0
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
❌ 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 |
Code Review ✅ ApprovedManual refresh of Playwright timing baseline from the latest successful merge_group run, unblocking the shard-planner abort due to chromium exceeding the 19-minute budget. The baseline adds 45 entries and removes 43, covering 6 newly added spec files with 2.5% drift (well under the 40% safety cap). 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 |
✅ Playwright Results — workflow succeededValidated commit ✅ 557 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 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) 52m 49s ⏱️ Max setup 5m 10s · max shard execution 19m 7s · max shard-job elapsed before upload 23m 19s · reporting 3s 🌐 234.77 requests/attempt · 2.82 app boots/UI scenario · 22.32% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…-metadata#33690) The checked-in baseline was captured 2026-09-07 (run 34109980157). Twenty-three spec files have landed since, and every test in Features/AccessControlSettings.spec.ts (23 tests, added 2026-09-19) fell through to FALLBACK_TEST_MS. That is the exact signature stale_baseline_files_in_plan hard-fails on, so targeted planning aborted for any PR that plans that file. Regenerated with .github/scripts/refresh_timing_baseline.py from the full-mode history of run 35555097423 (sha 90f79c4, main HEAD): entries 3607 -> 3666 (+122 added, -63 removed) drift 5.1%, significant shifts 9.1%, 23 files newly covered, 2 dropped Measured planner effects against a full-suite test list: tests with no timing evidence 123/4544 -> 1/4544 files that hard-fail targeted plan 1 -> 0 full-mode plan 37 shards / chromium 25 -> 34 / chromium 23 heaviest chromium shard 18.67m (budget 19m) The auto-refresh job cannot do this itself: its push to main is rejected by the repository ruleset ("Changes must be made through the merge queue", GH013), so it emits a warning and exits 0 on every green run. Same manual refresh as open-metadata#32864.
Describe your changes
Manual refresh of
.github/playwright/timing-baseline.jsonfrom the latest successful merge_group full-mode run (34109980157, SHA133a22a63a). Unblocks today's shard-planner abort:Why the auto-refresh isn't doing this
The
refresh-timing-baselinejob inplaywright-postgresql-e2e.ymlruns after every green merge_group full-mode run, tries togit push origin HEAD:main, and gets rejected by branch protection every time:The job prints a
::warning::and stays green, but the baseline never lands. This has been happening on every successful merge_group Playwright run since 2026-08-24 — 14 days.In that time, 35 new spec files have been added:
Features/AppMode/*.spec.tsFeatures/Ontology*Rdf.spec.tsFeatures/Metric*.spec.ts(MetricActivityTasks,MetricGovernance,MetricHierarchy)ClassificationImportExport,TestCaseSoftDeleteRestore,PersonaAIContextPermissions,EmailConfiguration, and more.Each is billed at
FALLBACK_TEST_MS = 30_000under the current stale baseline, and cumulative overestimate + real content growth crossed the ceiling.Refresh summary
--source-run-id 34109980157. Refresh script's own safety valves both passed: 2.5% drift is well under the 40% max, all writes below the 500ms noise floor were ignored.Follow-up (separate PR — not touched here)
Grant the
RELEASE_BOT_TOKENidentity bypass onmain's branch-protection ruleset. Same identity thatauto-revert-release.ymluses to push release branches. The workflow already has all the retry/materiality/drift-cap machinery; the only thing missing is that bypass. Without it we hit this abort every ~2 weeks.The warning message in the job already points at the exact fix:
Type of change
Test plan
refresh_timing_baseline.pylocally againstplaywright-timing-history-full-34109980157-1— exit code 0, drift 2.5% (below the 40% cap).git diff --statreports1 insertion(+), 1 deletion(-)— the change is real (sourceRunId 32744092683 → 34109980157, 2905 duration adjustments); the +/- diff is a byproduct of the JSON serialisation, not a small change.playwright test --listagainst the full stack.🤖 Generated with Claude Code