Repository navigation
Seed Playwright timing history for TestDefinitionSortAndSearch - #33863
Conversation
TestDefinitionSortAndSearch.spec.ts arrived with #33620 and never went through a full-mode merge-queue run, so refresh-timing-baseline never picked it up. Every one of its seven tests falls through to FALLBACK_TEST_MS, which plan-playwright rejects outright, and any PR touching Data Quality plans that file. Durations are the real ones observed on the chromium-07 shard of the passing run for #33620, all with outcome expected.
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
❌ 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 ✅ Approved🟡 Medium risk · Adds seven timing records that change Playwright test-planning budgets. Seeds Playwright timing history for OptionsDisplay: compact → Counting what did not apply, without listing it. 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) 50m 21s ⏱️ Max setup 4m 20s · max shard execution 19m 5s · max shard-job elapsed before upload 22m 20s · reporting 4s 🌐 232.17 requests/attempt · 2.24 app boots/UI scenario · 24.28% 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 |
…Hierarchy The Metrics feature was reapplied on main via #32335 without a full-mode merge-queue run seeding the timing baseline. As a result plan-playwright's stale-baseline gate now rejects every PR that touches files impact-mapped to MetricGovernance.spec.ts or MetricHierarchy.spec.ts (chirag-madlani/playwright-utils-and-support-bulk hits this via MetricClass.ts and PoliciesClass.ts, and #33830-style flakiness fixes would too). Seeded 17 entries — 5 MetricGovernance + 12 MetricHierarchy — pulled from the passing merge-queue run 35977111550 (pr-33699 gate) with the durations Playwright observed on the Basic project shard. All marked outcome=expected following #33863's pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…en-metadata#33881) * test(playwright): bulk-refresh utils + support helpers from open-metadata#33088 Two-part batch (44 files): 1) 13 pure-add helper files (new capability): - support/fixtures/{taskActivity,taskPermissions}.ts — task fixture helpers - utils/{autopilot,contract,csv,http,ingestion,testSuitePipeline}Execution*.ts — new async-flow helpers plus their unit tests - utils/polling.test.ts, apiResponse.test.ts — RuleTester-style helper tests 2) 31 safe-modified helper files where the harshach branch has fixes but main has not touched the file since the branch's merge-base. Files copied wholesale from harshach; no conflict-resolution ambiguity: - support/access-control/{Policies,Roles}Class.ts - support/bot/BotClass.ts - support/domain/{Domain,DataProduct,SubDomain}.ts - support/entity/*.ts (~20 entity fixture classes) - constant/{common,customProperty,ssoConfiguration}.ts Files where main and harshach both diverged from merge-base are deliberately NOT in this PR — they need per-file conflict resolution and will land in a follow-up. Includes: utils/{common,lineage,glossary,importUtils,entity,tag,…}.ts and the frequently-edited support classes (UserClass, TeamClass, etc.). Cherry-picked from open-metadata#33088. All original content authored by @harshach. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * WIP: apiResponse merge + drop broken fixtures * fix(playwright): restore withNotFoundRetry patch guard + deploy readiness delay Bulk copy from harshach's branch dropped `withNotFoundRetry` around the `.patch()` call in 21 support classes. Main has been wrapping this call since the merge-base — the retry exists because create-then-patch flows observe 404 responses against IDs the server just returned from create. Without it fixture setup fails intermittently. Restored across all 21 classes with the same signature main uses: const response = await withNotFoundRetry(() => apiContext.patch(url, { data, headers }) ); Also: - BundleTestSuiteClass.runIngestionPipeline: restore the 5s deploy readiness delay + bounded trigger retry loop that main had inline; triggerIngestionPipeline is intentionally single-shot (its unit test asserts requests==1 on 4xx) so the retry belongs at the caller. - Consolidate the duplicate `deleteFixtureEntity` import that the wholesale copy had appended at the bottom of each file into the top import. Bot findings on files not in this PR (taskActivity, taskPermissions, customProperty constants) are stale — those files still live on harshach's branch and were never brought over here. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): restore withNotFoundRetry in Domain.ts and SubDomain.ts Two support/domain classes were missed in 58e5e49 — my per-file list only covered support/entity/ and support/bot/. Same regression pattern: wholesale copy from harshach's branch unwrapped the apiContext.patch call and dropped the withNotFoundRetry import, dup-appended deleteFixtureEntity at the bottom of the file. Restored to match main and every other patched support class. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(playwright): seed timing baseline for MetricGovernance + MetricHierarchy The Metrics feature was reapplied on main via open-metadata#32335 without a full-mode merge-queue run seeding the timing baseline. As a result plan-playwright's stale-baseline gate now rejects every PR that touches files impact-mapped to MetricGovernance.spec.ts or MetricHierarchy.spec.ts (chirag-madlani/playwright-utils-and-support-bulk hits this via MetricClass.ts and PoliciesClass.ts, and open-metadata#33830-style flakiness fixes would too). Seeded 17 entries — 5 MetricGovernance + 12 MetricHierarchy — pulled from the passing merge-queue run 35977111550 (pr-33699 gate) with the durations Playwright observed on the Basic project shard. All marked outcome=expected following open-metadata#33863's pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): move deleteFixtureEntity import to top in Domain + Entity Two more support classes had the wholesale-copy's bottom-of-file apiResponse import that my earlier sweep missed — DataProduct.ts and EntityClass.ts. Neither had a pre-existing top-level apiResponse import, so my count-based check (looking for files with >1 import from the same module) didn't catch them. Moved the import to the top in ESLint import-order position, no behavior change. Verified TS parse-clean and prettier-formatted. Addresses reviewer feedback on open-metadata#33881 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * revert(playwright): keep ApiCollectionClass.verifyOwnerPropagation as .isVisible() Wholesale copy tightened `.isVisible()` (no-op read) to `expect(...).toBeVisible()` (15s wait + assert). That surfaced a real timing/product issue where the owner link doesn't render on the endpoint's collection page within 15s, breaking ApiCollection.spec.ts across shards. Reverting to main's behaviour for this PR — the assertion improvement can land in a targeted PR after somebody fixes the underlying propagation lag. Also drop the now-unused expect import. The other failing specs (AIMode/*, SSOConfiguration, DataProductAndSubdomains) are NOT in this PR — pre-existing flakes on main. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): tolerate 401 in deleteFixtureEntity cleanup CI surfaced HTTP 401 "Token not present" on afterAll teardown across 4 shards. The JWT expires mid-test on long specs; on main the bare apiContext.delete silently swallowed the response, so cleanup "passed" even though the fixture leaked. My stricter deleteFixtureEntity turned those silent leaks into hard test failures. Match main's tolerance for the auth-expiry case (401) while keeping 403 hard-fail — a valid token with insufficient perms is a real test setup bug, not a token lifetime issue. Also extends the unit test loop to cover 401. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): actually warn when deleteFixtureEntity tolerates 401 Prior commit tolerated 401 with a comment claiming "warning and moving on" but never logged. Add the console.warn the comment promised, so leaked fixtures show up in test output instead of hiding in green runs. Addresses open-metadata#33881 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(core): strip size from NativeSelect rest to unblock ui-checkstyle Cherry-pick of the .tsx fix from open-metadata#33998 (ShaileshParmar11). The main merge into this branch pulled in a TS build regression where the form-field 'size' style variant ('sm'|'md') was being spread onto the native <select>, whose HTML size attribute is number-only. That broke core-components' vite build → broke ui-checkstyle here. open-metadata#33998 is the same fix at source; landing that will supersede this. Applying it here so open-metadata#33881 isn't blocked in the interim. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): drop unused eslint-disable in apiResponse.ts playwright/ ESLint config doesn't enable no-console, so my eslint-disable-next-line was reported as unused (--report-unused-disable-directives) and failed ui-checkstyle. console.warn passes lint on its own. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Describe your changes:
Features/DataQuality/TestDefinitionSortAndSearch.spec.tsarrived with #33620 and never went through a full-mode merge-queue run, sorefresh-timing-baseline(playwright-postgresql-e2e.yml) never picked it up. All seven of its tests fall through toFALLBACK_TEST_MS, andplan-playwrightrejects that outright:When
plan-playwrightfails,playwright-ciand both fixture jobs are skipped andplaywright-summarygoes red — so Playwright does not run at all. Any PR whose impact map plans a Data Quality spec hits this; #33809 is currently blocked on it.Same fix #33839 applied for
RunTestCase.spec.ts, which had the same gap.Type of change:
High-level design:
N/A — CI timing data only, no product code.
Tests:
Use cases covered
plan-playwrightfinds real history for every test in the file instead of budgeting it viaFALLBACK_TEST_MS, so Playwright runs again on PRs that plan Data Quality specs.Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
Durations are the real ones observed on the
chromium-07shard of the passing run for #33620 (run35806987980, artifactplaywright-timings-chromium-07), not estimates. All seven carryoutcome: expected,attempts: 1,retries: 0:Verified after the edit: file is still valid single-line JSON,
testsis still sorted byid, count 4589 → 4596, and no existing entry changed.UI screen recording / screenshots:
Not applicable.
Checklist:
🤖 Generated with Claude Code
The PR appears safe to merge and restores the intended Playwright planning path without changing runtime behavior.
Summary
This PR seeds timing history for all seven tests in
TestDefinitionSortAndSearch.spec.ts, allowing the Playwright planner to assign measured durations instead of rejecting the file for having no history.Reviews (1) · Last reviewed commit: "chore(playwright): seed timing history f..."