Skip to content

Seed Playwright timing history for TestDefinitionSortAndSearch - #33863

Merged
ShaileshParmar11 merged 1 commit into
mainfrom
chore/seed-testdefinition-timing-baseline
Sep 23, 2026
Merged

ShaileshParmar11 merged 1 commit into
mainfrom
chore/seed-testdefinition-timing-baseline

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Features/DataQuality/TestDefinitionSortAndSearch.spec.ts arrived with #33620 and never went through a full-mode merge-queue run, so refresh-timing-baseline (playwright-postgresql-e2e.yml) never picked it up. All seven of its tests fall through to FALLBACK_TEST_MS, and plan-playwright rejects that outright:

All 7 planned test(s) in Features/DataQuality/TestDefinitionSortAndSearch.spec.ts have no timing history in timing-baseline.json.

When plan-playwright fails, playwright-ci and both fixture jobs are skipped and playwright-summary goes 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:

  • Bug fix

High-level design:

N/A — CI timing data only, no product code.

Tests:

Use cases covered

plan-playwright finds real history for every test in the file instead of budgeting it via FALLBACK_TEST_MS, so Playwright runs again on PRs that plan Data Quality specs.

Unit tests

  • Not applicable — data file, no logic change.

Backend integration tests

  • Not applicable.

Ingestion integration tests

  • Not applicable.

Playwright (UI) tests

  • Not applicable — this restores the ability to run the existing suite; it adds no specs.

Manual testing performed

Durations are the real ones observed on the chromium-07 shard of the passing run for #33620 (run 35806987980, artifact playwright-timings-chromium-07), not estimates. All seven carry outcome: expected, attempts: 1, retries: 0:

Test durationMs
should search across the listing and back it with the url 15467
should sort by display name in both directions 15236
should restore a sorted listing from the url 13047
should sort by entity type and test platforms 11789
should reset pagination when the sort changes 11318
should keep the previous rows visible but inert while refetching 10440
should offer a sort affordance only on the sortable columns 10281

Verified after the edit: file is still valid single-line JSON, tests is still sorted by id, count 4589 → 4596, and no existing entry changed.

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: not applicable.
  • For UI changes: not applicable.
  • I have added tests: not applicable, CI timing data.

🤖 Generated with Claude Code

RetriggerConfidence Score: 5/5

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.

  • Adds one expected Chromium timing record for each test in the specification.
  • Preserves the baseline format and existing top-level metadata.
  • Restores Data Quality Playwright planning without changing product or test logic.

Reviews (1) · Last reviewed commit: "chore(playwright): seed timing history f..."

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.
Copilot AI lite review requested due to automatic review settings September 23, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 23, 2026
@gitar-bot

gitar-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Adds seven timing records that change Playwright test-planning budgets.

Seeds Playwright timing history for TestDefinitionSortAndSearch.spec.ts with real durations from the passing run of #33620, restoring the ability to run Data Quality specs in Playwright CI. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 48da3eb01be127a7f4d8c26edb682ecb5a731cf7 in Playwright run 35831170899, attempt 1.

✅ 557 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Common shard skew was 24.28% (convergence target: at most 15%).
  • Browser traffic was 232.17 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.24 per UI scenario (1292 boots / 578 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 124 0 0 0 0 0
✅ Shard chromium-02 132 0 0 0 0 0
✅ Shard chromium-03 143 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

Merged via the queue into main with commit 1090e18 Sep 23, 2026
105 of 107 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the chore/seed-testdefinition-timing-baseline branch September 23, 2026 10:16
chirag-madlani added a commit that referenced this pull request Sep 24, 2026
…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>
ulixius9 pushed a commit to youngsofun/OpenMetadata that referenced this pull request Sep 25, 2026
…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>

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants