Skip to content

chore(playwright): auto-refresh timing-baseline.json - #31914

Merged
chirag-madlani merged 2 commits into
mainfrom
ci/auto-refresh-timing-baseline
Aug 25, 2026
Merged

chirag-madlani merged 2 commits into
mainfrom
ci/auto-refresh-timing-baseline

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Auto-refreshed from merge_group run 32744092683.

Timing baseline auto-refresh summary

- entries: 3607 → 3607 (+0 added, -0 removed)
- durations changed by > 500 ms: 2943
- previously zero → now real: 0
- drift: 0.0% of test-id entries

A human still clicks merge. If this drift looks unreasonable, close the PR — the next successful merge_group run will open a fresh one.

chirag-madlani
chirag-madlani previously approved these changes Aug 23, 2026
@github-actions
github-actions Bot force-pushed the ci/auto-refresh-timing-baseline branch 23 times, most recently from fea2ec0 to 51abc07 Compare August 24, 2026 16:19
@github-actions
github-actions Bot force-pushed the ci/auto-refresh-timing-baseline branch from 51abc07 to c41bafd Compare August 24, 2026 16:20
@chirag-madlani chirag-madlani added the safe to test Add this label to run secure Github workflows on PRs label Aug 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Playwright Results — workflow succeeded

Validated commit d82dc8429250d59e2b9d5d9229b67e2533543a82 in Playwright run 32883067350, attempt 1.

✅ 553 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) 55m 47s

⏱️ Max setup 6m 30s · max shard execution 17m 10s · max shard-job elapsed before upload 22m 25s · reporting 5s

🌐 213.52 requests/attempt · 2.83 app boots/UI scenario · 4.37% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 213.52 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.83 per UI scenario (1622 boots / 574 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 139 0 0 0 0 0
✅ Shard chromium-02 135 0 0 0 0 0
✅ Shard chromium-03 125 0 0 0 0 0
✅ Shard data-asset-rules-01 61 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 7a64474 Aug 25, 2026
140 of 142 checks passed
@chirag-madlani
chirag-madlani deleted the ci/auto-refresh-timing-baseline branch August 25, 2026 20:43
ShaileshParmar11 added a commit to TeddyCr/OpenMetadata that referenced this pull request Aug 26, 2026
…uality lane and seed its timings

The spec sat directly under `playwright/e2e/Features/`, where no
impact-map mapping covers it — it ran on this PR only because it was a
directly changed file, and would have gone dark for every later change
to the components it guards. Under `Features/DataQuality/` it is matched
by the existing DataQuality mapping, whose `sources` already list
`src/components/DataQuality/**` — the two components changed here — so
edits to either re-select it without another map entry. The file has no
relative imports, so the move is path-neutral.

`plan-playwright` also hard-failed on this PR (run 32933633223): all
seven of the file's tests fell through to FALLBACK_TEST_MS with no entry
in `timing-baseline.json`, tripping the stale-baseline gate added in
open-metadata#30812. With the plan step dead the whole shard matrix was skipped, so
`playwright-ci` never ran a single test. Seeding the durations clears
the gate and gets the tests executing in the PR check instead of
surfacing for the first time on the merge queue.

The seeded durations are ~2x the slowest of three local runs against
this branch's own UI, where all seven passed (81s measured -> 177s
seeded). The buffer covers a hosted runner's slower CPU, three workers
contending, and a cold bundle; the total still sits under the 210s the
planner would have reserved via FALLBACK_TEST_MS, and per-test values
land in the same 21-31s band as that fallback, so the plan is no more
optimistic than the planner's own default guess for an unmeasured test.
`leaves a short severity label ... collapsed` is budgeted at its
describe-block sibling's cold cost rather than the 2975 ms it measured
warm as the second test scheduled in that worker. The first full-mode
run replaces all seven via refresh_timing_baseline.py.

`origin/main` is merged in so the seeding applies on top of the baseline
auto-refresh from open-metadata#31914. The file is a single JSON line, so any drift
between the branch point and main resolves as a whole-line conflict.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ShaileshParmar11 added a commit to ShaileshParmar11/OpenMetadata that referenced this pull request Aug 26, 2026
…annot push the Assignee column off screen (open-metadata#31898)

* fix(ui): stop a long severity translation pushing the Assignee column off screen

Fixes open-metadata#30522.

The inline severity/status chip carried `max-w-max` + `whitespace-nowrap`, so in
an auto-layout table its intrinsic width was the column's floor — the column grew
to whatever the translation needed, with no bound.

In ru-RU the severity placeholder composes `label.no-entity` with `label.severity`
into "Критичность инцидента отсутствует": 208px of text against 67px for English
"No Severity". Measured on /incident-manager at 1440x900 with unassigned rows, the
chip rendered 254px wide, the Severity column 306px (194px in en-US) and the table
1256px inside a 1178px scroll container — so the Assignee column sat at x=1508 and
was cut off at the right edge. At 1280 the column and its header were gone entirely.

The chip is now capped at 11rem and the label truncates inside it, with `title`
surfacing the full string on hover. Truncation is visual only: the text stays in
the DOM, so the button's accessible name is unchanged.

11rem is measured, not guessed. It leaves 140px of text room, which clears the
longest translated *status* label in any of the 20 shipped locales (131px, ru-RU
"Назначен исполнитель"), so the two status-chip call sites — the Incident Manager
Status column and the Data Quality tab — do not start truncating. English is
unchanged at the pixel: the chip measures 103px before and after, so the visual
regression snapshots are unaffected.

ru-RU at 1440 now lays out at 1178px, identical to English, with zero horizontal
overflow and the Assignee column fully on screen.

Note this is not the mechanism the 1.13.1 report described. That screenshot came
from an antd Table whose Severity column was pinned at `width: 100`, which made
the string overlap its neighbour; that table was replaced by the ui-core-components
Table in 8570d36 / 2c90c83, which has no per-column width. What survived the
migration is column inflation, not overlap.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* test(ui): cover the incident table's ru-RU layout with measured geometry

Fixes open-metadata#30522.

The regression this guards is a layout one, so the assertions are geometric:
boundingBox widths and scrollWidth/clientWidth, never a class name. Asserting
`toHaveClass('tw:truncate')` would pass just as happily with the column still
overflowing.

Three cases, all verified RED against the unfixed chip:

- the Assignee cell's right edge stays inside the 1440px viewport
  (was 1508px);
- the ru-RU severity pill is capped (was 254px), paired with an en-US control
  asserting a short label is still *not* clipped, so a cap that started
  ellipsising labels that already fit would fail too;
- the truncated label is genuinely clipped (scrollWidth > clientWidth), exposes
  the full string via `title`, and keeps it in the button's accessible name.

Rows are route-mocked so the geometry depends on string length rather than on
whatever the environment happens to have ingested, and the helper waits on
`document.fonts.ready` — fallback font metrics shift column widths by a few px
and made the measurements flaky without it.

This establishes the ru-RU pattern; LanguageOverride.spec.ts (de-DE) was the only
other non-English spec in the repo. Note the visual regression suite cannot cover
this: staticPages.spec.ts masks the incident table outright.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): make the chip label cap opt-in so status chips stay unbounded

Follow-up to review on open-metadata#30522. The cap was applied to the shared CHIP_PILL_CLASS,
which put the *status* chip 3.3px from truncating.

The 176px budget was derived from an off-DOM probe span that under-reports
Cyrillic by ~6px, because Inter's `unicode-range` subset is not active for a probe
that never paints those glyphs. Measured in-DOM on the rendered chip, ru-RU
"Назначен исполнитель" (Assigned) is a 136.7px label in a 172.7px pill, not the
130.2px the probe reported. Any retranslation, a fifth resolution status, or a
typography-token change would have silently rendered "Назначен исполнит…" in the
Incident Manager's primary column — a worse regression than the bug being fixed.

A single shared constant cannot serve both columns. Measured by overriding
max-width on the live pill, ru-RU at 1440x900:

  cap    pill   sevCol  table   overflow  assignee right edge
  none   254px  306px   1263px  85px      1508px  (off screen)
  176px  176px  228px   1185px   7px      1430px  (on screen)
  192px  192px  244px   1201px  23px      1446px  (off screen again)

192px is the smallest cap with real headroom over the 172.7px status pill, and it
re-inflates the severity column by 16px and reinstates the bug. So the constraint
is per-call-site: `truncateLabel` is opt-in and only severity uses it. Status keeps
`max-w-max` and can no longer truncate by construction, which is a stronger
guarantee than a threshold test.

176px still sits above every non-Russian severity pill (widest 168.6px, pt-BR) and
below the Russian one, so exactly one locale truncates — the pathological one.

The pill also gains its own `-pill` testid: react-aria's Button wraps children in
an unstyled span.transition-inherit-all, so a positional `chip > span` locator
measures that wrapper instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* test(ui): target the real pill, fail fast, and guard status chips

Follow-up to review on open-metadata#30522.

- The pill assertion measured react-aria's `span.transition-inherit-all` wrapper,
  not the capped pill. It shrink-wraps to the same width today, so the test passed
  while measuring the wrong box and would have kept passing if the library ever
  added padding there. Addressed by its own testid now.

- Test 2 asserts the severity `<td>` width before the pill width. The cell exists
  in both versions, so the RED is a real measurement (306px against a 240px
  budget) rather than a missing-testid error; the pill assertion then pins which
  box does the bounding.

- Tests 3 and 4 assert `toBeVisible()` before measuring. `.evaluate()` on a
  missing locator never rejects, so without the fix they hung for 135s (tripled by
  test.slow) and reported "Target page has been closed". They now fail in 16.7s
  on the real assertion.

- New guard: status chips must never truncate, exercised against all four
  resolution statuses in ru-RU where their labels are longest. This does not
  reproduce the bug — status is unbounded before and after — it guards the
  decision that the cap stays off the shared chip.

The status fixture is deliberately separate from the reported-scenario fixture: in
ru-RU an "Assigned" incident renders a 172.7px status pill and widens the Status
column by ~98px, which would confound the severity geometry assertions. That is
its own width contributor and is disclosed rather than fixed — the headline test
is scoped to the reported all-New scenario and says so.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): correct the chip-bound rationale and gate the tooltip on the bound

Follow-up to round-2 review on open-metadata#30522. Two corrections, one of them to a claim
this branch asserted as established fact.

**The "forced choice" justification was wrong.** The previous comment said a
shared cap safe for the status column "needs >= ~192px". It does not: the widest
status pill is 172.7px (ru-RU "Назначен исполнитель") and 176 > 172.7, so a
shared 176px cap is already safe today. Measured cap sweep on the live pill,
ru-RU at 1440x900 with the nav expanded:

  cap    severity td  assignee right edge
  176px  228          1430  on screen
  180px  232          1434  on screen
  184px  236          1438  on screen
  188px  240          1442  off screen
  192px  244          1446  off screen

Any cap in [173, 184] satisfies both columns, so opt-in is a preference, not a
necessity. The real argument — now the one in the code — is that the band is 11px
wide and Tailwind's scale offers exactly one step inside it, and that a shared cap
would leave status 3.3px of headroom where opt-in leaves it unbounded. Robustness,
honestly labelled.

**`title` and `truncate` were applied unconditionally**, so every status chip and
every already-fitting chip advertised a native tooltip repeating its own visible
text. Both are now gated on the bound.

`truncateLabel` becomes `maxLabelWidth?: string`, which drops the 4th boolean and
puts the value where it belongs: the budget is a property of the column, so the
severity column now owns its own constant and its derivation.

Status chips keep max-content sizing and gain no tooltip; their DOM gains one
inert span wrapper, which is what makes the status guard test measurable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* test(ui): pin the left nav, and bound the chip rather than its column

Follow-up to round-2 review on open-metadata#30522. The spec was passing for the wrong reason
and failing on this branch.

**It failed as committed.** `severity <td> <= 240px` is not a chip bound — it
asserts how CSS auto-layout hands out *surplus* container width. The same
correctly-capped 176px pill yields a 228px column with the nav expanded and 266px
with it collapsed, so the assertion failed whenever the nav was collapsed. It is
replaced by a bound on the chip button, which measures 258px unbounded and 180px
capped in both states, and the case now runs against both.

**The headline test was a false GREEN.** `isSidebarCollapsed` is persisted in
localStorage per user, so it rides inside the saved storageState and varies by
machine. It moves the table's container between 1178px (expanded) and 1334px
(collapsed), and at 1334px the *unfixed* layout already fits — assignee edge
1423px, zero overflow. A run with a collapsed nav therefore passed against
b4a27e7 without the fix present.

The nav is now pinned explicitly, defaulting to expanded (the product default,
`defaultPreferences.isSidebarCollapsed: false`), and the container width is
asserted as a precondition so a layout change that moves it fails loudly instead
of quietly changing what the geometry means.

Pinning waits on the sidebar's settled offsetWidth rather than its `sidebar-open`
class: the class flips synchronously with the preference while the Sider
animates, so a class-based wait returns mid-transition and the container reads
1329px instead of 1178px.

Verified RED under the pinned condition: 1508 > 1440 for the assignee edge, and
258 > 182 for the chip in both nav states.

Also asserts status labels carry no `title`, matching the tooltip gating.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor(ui): drop the dead pill testid and name the chip bound for what it bounds

Follow-up to round-3 review on open-metadata#30522. Both are cleanups; neither changes layout.

**Dead test hook.** `data-testid="${dataTestId}-pill"` was added in round 2 to
target the pill directly, then made redundant in round 3 when the assertion moved
to the chip button (the button is the element that exists in both the fixed and
unfixed trees, which is what gives that test a real geometric RED). Nothing
referenced it — not the Jest suite, not the new spec, not any existing test — so
it was shipping an unused hook into production DOM. Removed.

**`maxLabelWidth` -> `maxChipWidth`.** The class lands on the pill, not the label:
the pill also carries 16px of horizontal padding, 2px of border, a 2px gap and a
16px chevron. `tw:max-w-44` (176px) therefore leaves the label 140px, and the
button around it measures 180px. The old name invited a future caller to size the
prop from a measured text width and come out ~36px short — the same
measure-the-wrong-thing mistake that cost this branch two review rounds. The
JSDoc now states the chrome breakdown explicitly.

Removing the attribute changes rendered DOM, so the Playwright spec was re-run:
5 passed. Jest 102 suites / 1305 tests pass; tsc unchanged at its 549-error
baseline.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* test(ui): build the incident-locale fixtures with test.use and beforeEach

Review feedback: the bespoke `base.extend` fixture stood up its own
BrowserContext per call, which is both more setup than this spec needs and
more surface to go flaky on. The admin session is one `test.use` line, and
routing + navigation belong in `beforeEach`.

Locale can then be declared per describe rather than threaded through a
fixture argument, so the ru-RU and en-US assertions split into their own
blocks — which also removes the one test that drove two pages at once. The
status guard gets its own block for the same reason: its fixture rows differ,
so it no longer has to re-navigate over the default ones.

`test.slow` is dropped everywhere. Each case now loads a single page and
measures it; the whole file runs in ~18s against the default 60s timeout.

Behaviour is unchanged: 14/14 at --repeat-each=2, and with the bound removed
the same four cases still fail RED (chip 258px vs <= 182px, label overflow 0
vs > 0, assignee edge off screen).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TXvtzE39do8yqojYWGKTaX

* refactor(ui): compose the chip pill classes with classNames

Review feedback on the template literal. The palette classes move to their own
constant so the call reads as three named parts rather than an interpolation
split across lines.

The label's conditional class stays a ternary on purpose: it resolves to
`undefined` so an unbounded chip carries no `class` attribute at all, where
classNames would leave an empty one.

Also collapses the `label.no-entity`/`label.severity` composition in
InlineSeverity into one local — it was rendered three times, which is the
sonarjs/no-duplicate-string warning CI reported on this PR.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TXvtzE39do8yqojYWGKTaX

* test(playwright): route IncidentManagerLocaleLayout through the DataQuality lane and seed its timings

The spec sat directly under `playwright/e2e/Features/`, where no
impact-map mapping covers it — it ran on this PR only because it was a
directly changed file, and would have gone dark for every later change
to the components it guards. Under `Features/DataQuality/` it is matched
by the existing DataQuality mapping, whose `sources` already list
`src/components/DataQuality/**` — the two components changed here — so
edits to either re-select it without another map entry. The file has no
relative imports, so the move is path-neutral.

`plan-playwright` also hard-failed on this PR (run 32933633223): all
seven of the file's tests fell through to FALLBACK_TEST_MS with no entry
in `timing-baseline.json`, tripping the stale-baseline gate added in
open-metadata#30812. With the plan step dead the whole shard matrix was skipped, so
`playwright-ci` never ran a single test. Seeding the durations clears
the gate and gets the tests executing in the PR check instead of
surfacing for the first time on the merge queue.

The seeded durations are ~2x the slowest of three local runs against
this branch's own UI, where all seven passed (81s measured -> 177s
seeded). The buffer covers a hosted runner's slower CPU, three workers
contending, and a cold bundle; the total still sits under the 210s the
planner would have reserved via FALLBACK_TEST_MS, and per-test values
land in the same 21-31s band as that fallback, so the plan is no more
optimistic than the planner's own default guess for an unmeasured test.
`leaves a short severity label ... collapsed` is budgeted at its
describe-block sibling's cold cost rather than the 2975 ms it measured
warm as the second test scheduled in that worker. The first full-mode
run replaces all seven via refresh_timing_baseline.py.

`origin/main` is merged in so the seeding applies on top of the baseline
auto-refresh from open-metadata#31914. The file is a single JSON line, so any drift
between the branch point and main resolves as a whole-line conflict.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(ci): fold the checked-in timing baseline in at lowest precedence

The plan step passes one `--history` per downloaded full-run artifact and
falls back to `.github/playwright/timing-baseline.json` only when *no*
artifact could be downloaded:

    if [[ ${#history_args[@]} -eq 0 ]]; then
      history_args=(--history .github/playwright/timing-baseline.json)
    fi

`gh run download` prints nothing on success, so a run that logs 49
failures across its 50 candidates still downloaded one artifact — and
that one non-empty `history_args` drops the checked-in baseline
entirely. A newly added spec file is in the baseline (its author seeds
the durations there, exactly as the stale-baseline gate's own error text
instructs) but in no artifact yet, so its seeded timings were discarded
and the gate fired on a file that does have history. Runs 32933633223
and 32937328644 both failed this way on PR open-metadata#31898; the artifact they
used, from run 32653484382, carries 4504 tests and none of the new file's.

The effect is that a brand-new spec file is unseedable whenever any full
history artifact is available, which is most of the time.

Fold the baseline in after the passed histories and merge it with
setdefault, so an artifact weight always wins where one exists and the
baseline only backfills tests no artifact has ever observed. Replaying
run 32937328644's own selection with only its artifact as history: the
planner exits 1 before this change and 0 after, and planning that same
selection minus the new spec produces byte-identical shard plans either
way, so nothing the artifacts already cover moves.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* test(playwright): address the incident rows by name instead of by position

Every severity assertion in this spec reached its element positionally,
which is a strict-mode escape hatch rather than a locator: it resolves to
whichever chip the DOM happens to order first and keeps passing if the
row under test stops rendering one at all. The fixtures already give each
row a unique test-case name, so scope to `pw_locale_incident_0` — the row
deliberately built without a `severity`, which is what makes it render
the "No Severity" placeholder these assertions measure. Each locator now
resolves to exactly one element, and strict mode enforces that rather
than the test silently measuring a neighbour.

The status-chip guard kept a positional visibility check purely as a wait
before `toHaveCount`, which already retries on its own. Drop it and
assert the layout instead: a label that never laid out measures 0/0,
which the clipping check below would read as "not clipped", so the widths
are now established before anything is concluded from them.

Titles and file path are untouched, so the seeded timing-baseline entries
still key correctly — re-running discovery returns the same seven stable
IDs. All seven pass locally against the branch's own UI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant