Skip to content

test(playwright): E2E coverage for Persona AI Context rule builder - #31581

Merged
anuj-kumary merged 13 commits into
mainfrom
feat/playwright-persona-ai-context-rules
Aug 17, 2026
Merged

anuj-kumary merged 13 commits into
mainfrom
feat/playwright-persona-ai-context-rules

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

What was fixed

  • Regression Persona AI Context: a completed filter condition is rejected as "unfinished" and the rule cannot be saved #31564 — a fully-completed single-value filter condition (e.g. Description Contains "…") was incorrectly rejected at save time with "Finish or remove the unfinished condition". Root cause: elasticSearchFormat passed raw config instead of extendedConfig to buildEsRule, so getWidgetForFieldOp returned undefined and the rule appeared empty to hasUnfinishedRule.
  • CI plan-playwright gate — the gate always failed when adding a new spec file. timing-baseline.json was only used as a last-resort fallback when no history artifacts existed; once any artifact was downloaded the baseline was skipped entirely, so seeded durations for a new spec were never consulted. Fixed by always appending timing-baseline.json alongside downloaded artifacts.

Tests added

8 E2E tests in Features/PersonaAIContextRules.spec.ts (Persona → AI Context → Rule Builder):

Test Why
Rule CRUD: empty state → create → edit → delete Core happy path had no coverage
Incomplete condition blocks save Validate the filter error message appears
Description Contains allows save — regression #31564 Prevent the bug from regressing
Entity-type switch clears incomplete filter and unblocks save Edge case: switching type should reset filter state
Duplicate rule name is rejected Name uniqueness validation
Max assets clamps values above 1000 on blur Input clamping behaviour
Always in context and Fully rendered toggles are interactable Toggle controls are visible and clickable
Knowledge entity type forces Fully rendered on and disables it Business rule: knowledge types must be fully rendered

Why

The Persona AI Context Rule Builder had zero E2E coverage. All 8 tests are grouped under test.describe.serial to share one persona instance without cross-test races.

Greptile Summary

The PR adds end-to-end coverage for the Persona AI Context rule builder and updates Playwright selection and timing metadata.

  • Adds eight serial Playwright scenarios covering rule CRUD, validation, entity-type changes, duplicate names, input clamping, and toggle behavior.
  • Maps Persona AI Context component and API changes to the relevant Chromium specs.
  • Seeds the new specification’s timing baseline for CI shard planning.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts Adds serially isolated rule-builder E2E coverage; the previously reported shared-persona race is addressed.
.github/playwright/impact-map.json Maps Persona AI Context UI and API changes to the relevant Chromium Playwright specifications.
.github/playwright/timing-baseline.json Adds timing data for the new Persona AI Context rule-builder specification.

Reviews (8): Last reviewed commit: "Merge branch 'main' into feat/playwright..." | Re-trigger Greptile

Adds 11 Playwright tests covering the full rule CRUD flow, filter
validation, and individual field behaviours for the AI Context tab in
Persona settings.

The most important addition is a regression test for #31564: before
PR #31565 a fully-completed single-value condition (e.g. Description
Contains "…") was incorrectly rejected with the "unfinished condition"
error because `elasticSearchFormat` passed raw `config` instead of
`extendedConfig` to `buildEsRule`, causing widget resolution to fail
and `hasUnfinishedRule` to return true.

Tests added:
- Rule CRUD serial group: empty state, create, edit, delete
- Filter validation serial group: incomplete condition blocks save,
  regression #31564 (Description Contains allows save), entity-type
  switch clears filter, duplicate name rejected
- Rule editor fields: max-assets clamping, toggle visibility,
  knowledge entity-type forces Fully rendered on

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@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 the UI UI specific issues label Aug 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@anuj-kumary anuj-kumary self-assigned this Aug 15, 2026
@anuj-kumary anuj-kumary added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Aug 15, 2026
…ion step

Live browser testing revealed two issues with the Persona AI Context
regression spec:

1. `page.locator('.rule').first()` finds the GROUP container which can
   be hidden in some builds — go directly to `.rule--field .ant-select`
   at page level instead.

2. The Description field uses `match_phrase` operators. The text widget
   (`.rule--widget--TEXT`) only renders after an operator is selected.
   Add an explicit "Contains" operator selection step so the input is
   available before we try to fill it.

Also: add `.first()` guard on the Fully rendered switch locator in the
knowledge-entity-type test (multiple elements can match) and add a note
that react-aria Switch stores state in the checked property, not
aria-checked.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Three issues raised in PR #31581 review:

1. `openAddRuleDrawer`: `isVisible({ timeout: 500 })` silently ignores
   the timeout and returns synchronously — replace with
   `emptyBtn.or(headerBtn).first().waitFor()` so we genuinely wait,
   then branch on `isVisible()` after the element is confirmed present.

2. `waitForTimeout(300)` sleeps after clicking add-context-condition are
   flaky: replaced with `page.locator('.rule--field .ant-select').first()
   .waitFor({ state: 'visible' })` at all three call sites.

3. Comment on the Fully rendered switch assertion said "use .isChecked()"
   but the code uses Playwright's `toBeChecked()` matcher — reworded to
   accurately describe why the property-based check is needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit b2d72e020240645efdbbd54ff15908a2f7ed4f4a in Playwright run 32003833345, attempt 1.

✅ 559 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) 53m 16s

⏱️ Max setup 2m 55s · max shard execution 19m 27s · max shard-job elapsed before upload 23m 13s · reporting 5s

🌐 213.73 requests/attempt · 2.82 app boots/UI scenario · 12.08% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 213.73 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.82 per UI scenario (1635 boots / 580 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 140 0 0 0 0 0
✅ Shard chromium-02 132 0 0 0 0 0
✅ Shard chromium-03 135 0 0 0 0 0
✅ Shard data-asset-rules-01 61 0 0 0 0 0
✅ Shard domain-isolation-01 14 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

anuj-kumary and others added 2 commits August 15, 2026 23:22
…erial from filter validation

CRUD tests (empty→create→edit→delete) are an inherently sequential
flow where edit and delete depend on state created by earlier steps.
Collapsing them into a single test with test.step() makes the
dependency explicit and atomic: a step failure aborts only that test
rather than silently skipping later ones via describe.serial.

Filter validation tests are each self-contained (each creates and
discards its own rule within a single test body), so describe.serial
was unnecessary. Removing it ensures a failure in the "incomplete
condition" test never prevents the regression test (#31564) from
running.

Also replace waitForTimeout(300) with waitFor({ state: 'visible' })
on the condition-row field selector to eliminate timing-based flakes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a mapping so changes to the PersonaAIContext component tree
(src/components/Settings/Persona/PersonaAIContext/**) or PersonaAPI.ts
on a future PR automatically include the three AI Context spec files
in the CI plan rather than falling through to an unmapped-file warning.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anuj-kumary
anuj-kumary force-pushed the feat/playwright-persona-ai-context-rules branch from bfd6fd1 to d67ae1e Compare August 16, 2026 06:49
anuj-kumary and others added 5 commits August 16, 2026 14:23
The plan-playwright gate hard-fails when a wholly-new spec file has
>= 5 tests with no timing history — the FALLBACK_TEST_MS reservation
(30s × 8 = 4 min) would under-budget the shard and risk a SIGTERM on
the merge queue (see PR #30812).

Add 8 entries using the real Playwright test IDs (obtained via
`playwright test --list`) and calibrated durations based on comparable
tests in PersonaAIContext.spec.ts and PersonaFlow.spec.ts. The nightly
full-mode run will replace these estimates with measured values via the
auto-refresh workflow once the spec first executes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ContextRules spec

- Wrap all tests in test.describe.serial: shared PersonaClass instance running
  under fullyParallel:true caused the CRUD "empty state" assertion to race against
  filter/editor tests concurrently creating rules on the same persona
- Move beforeAll/afterAll inside the serial describe using test.beforeAll/test.afterAll
  (not base.beforeAll), matching the pattern in PersonaAIContext.spec.ts
- Remove test.slow(true) from both hooks — Playwright throws "can only be called
  inside test" when used in beforeAll/afterAll
- Remove two redundant // Cleanup inline comments (greptile P2) that just restated
  the next line of code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…line.json

The describe.serial wrapper added in the previous commit changed all 8
test-ID hashes for PersonaAIContextRules.spec.ts (test ID is computed
from the full describe-path, so wrapping the suite in an outer
describe.serial changes every hash). The plan-playwright gate hard-fails
when every test in a file >= 5 tests falls through to FALLBACK_TEST_MS
with no timing history.

Surgically replace the 8 stale IDs with the IDs from the current structure
obtained via `npx playwright test --list --reporter=json`. File and title
fields are unchanged; only the `"id"` values are updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The previous CI run used a merge commit that predated the timing-baseline
ID refresh in 7fa030d. Force a new run against the updated merge commit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…istory artifacts

The stale-baseline gate fires when all tests in a new spec file have no
timing history. Previously, timing-baseline.json was only used as a
fallback when NO history artifacts were downloaded from recent CI runs.
Once any artifact existed (typical for an active repo), the baseline was
skipped entirely — so seeding a new spec's durations into the baseline had
no effect and the gate would always fire for newly-added spec files.

Fix: unconditionally append --history timing-baseline.json so it is always
consulted alongside downloaded artifacts. When artifacts exist the baseline
acts as a supplemental seed for new specs not yet in any full-run artifact;
when no artifacts were downloaded it remains the sole source.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anuj-kumary
anuj-kumary added this pull request to the merge queue Aug 17, 2026
Merged via the queue into main with commit 31cca94 Aug 17, 2026
88 checks passed
@anuj-kumary
anuj-kumary deleted the feat/playwright-persona-ai-context-rules branch August 17, 2026 09:20
@gitar-bot

gitar-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 5 resolved / 6 findings

Adds Playwright end-to-end test coverage for the Persona AI Context rule builder along with timing and impact map metadata. Consider correcting the impact-map paths pointing to non-existent spec files.

💡 Quality: Impact-map entries reference non-existent spec/source paths

📄 .github/playwright/impact-map.json:264-275 📄 .github/playwright/impact-map.json:290-301

The two impact-map blocks added in this commit point to spec files that do not exist in the tree — playwright/e2e/Pages/GlossaryTermRelationSettings.spec.ts and playwright/e2e/Features/LandingPageWidgets/DomainDataProductsWidgets.spec.ts — and several of their sources globs (components/Settings/GlossaryTermRelation/, pages/Settings/GlossaryTermRelation/, AssetsSelectionModal/useAssetSelectionState.ts, rest/queries/domainQuery.ts) also resolve to missing files/dirs. These appear to be merge-brought-in mappings unrelated to this PR's Persona AI Context work; if the specs truly don't exist, the plan-playwright gate could try to schedule specs that can't run. Confirm these entries correspond to specs/sources that actually land on main, or drop them from this branch.

✅ 5 resolved
✅ Edge Case: isVisible({ timeout: 500 }) does not actually wait

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:89-95
In openAddRuleDrawer, emptyBtn.isVisible({ timeout: 500 }).catch(() => false) cannot wait: Playwright's locator.isVisible() ignores the timeout option and returns synchronously, and it does not throw, so the .catch() is dead code. If the empty-state button hasn't rendered the instant this runs, the helper silently falls through to clicking the header button (which is absent in the empty state) and the drawer never opens. It happens to work today only because navigateToAIContextTab awaits loaders first. Use an assertion that genuinely waits, e.g. await emptyBtn.or(headerBtn).first().waitFor() then branch, or const useEmpty = await emptyBtn.count() > 0 after an explicit waitFor.

✅ Quality: Hardcoded waitForTimeout(300) after adding condition row

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:234 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:273 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:320
Fixed page.waitForTimeout(300) sleeps after clicking add-context-condition are flaky and slow: on a loaded CI runner the row may not be interactive within 300ms, and on a fast run the sleep is wasted. Prefer waiting on a concrete signal (e.g. await expect(page.locator('.rule').first()).toBeVisible()) instead of an arbitrary delay.

✅ Quality: Misleading comment on Fully rendered switch assertion

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:435-437
The comment at line 435 says "react-aria Switch: use .isChecked()" but the code below uses Playwright's toBeChecked()/toBeDisabled() matchers, not an .isChecked() call. This can confuse future maintainers. Reword the comment to reflect that toBeChecked() is used (or remove the reference to .isChecked()).

✅ Bug: Parallel tests share one persona, causing flaky races

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:48 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:142-156 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:208-222 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:373-387
With fullyParallel: true (playwright.config.ts), every test in this file runs concurrently across workers but they all mutate the same module-level persona and its AI Context rules. The CRUD test's first step asserts empty-add-context-rule is visible / 'No AI context rules yet' (L151-152), yet the duplicate-name, entity-type-switch and regression tests concurrently create rules on that same persona, so the empty state will intermittently not exist and the CRUD test will fail. openAddRuleDrawer and deleteRuleByName also observe/modify shared rule cards, producing nondeterministic failures. Wrap the suite in test.describe.serial(...) / test.describe.configure({ mode: 'serial' }) (as PersonaAIContext.spec.ts does), or give each test its own PersonaClass instance so state is isolated.

✅ Bug: test.slow() called inside beforeAll is invalid

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContextRules.spec.ts:60-72
test.slow(true) is called inside base.beforeAll at L61 and L68. In Playwright test.slow() may only be called inside a test body or a beforeEach/afterEach hook; inside beforeAll there is no running test and it throws 'test.slow() can only be called inside test', which would fail the setup/teardown hooks. Replace with test.setTimeout(...) inside the hook, or move the slow annotation into the individual tests.

🤖 Prompt for agents
Code Review: Adds Playwright end-to-end test coverage for the Persona AI Context rule builder along with timing and impact map metadata. Consider correcting the impact-map paths pointing to non-existent spec files.

1. 💡 Quality: Impact-map entries reference non-existent spec/source paths
   Files: .github/playwright/impact-map.json:264-275, .github/playwright/impact-map.json:290-301

   The two impact-map blocks added in this commit point to spec files that do not exist in the tree — `playwright/e2e/Pages/GlossaryTermRelationSettings.spec.ts` and `playwright/e2e/Features/LandingPageWidgets/DomainDataProductsWidgets.spec.ts` — and several of their `sources` globs (`components/Settings/GlossaryTermRelation/`, `pages/Settings/GlossaryTermRelation/`, `AssetsSelectionModal/useAssetSelectionState.ts`, `rest/queries/domainQuery.ts`) also resolve to missing files/dirs. These appear to be merge-brought-in mappings unrelated to this PR's Persona AI Context work; if the specs truly don't exist, the plan-playwright gate could try to schedule specs that can't run. Confirm these entries correspond to specs/sources that actually land on main, or drop them from this branch.

Options

Display: compact → Showing less information.

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

anuj-kumary added a commit that referenced this pull request Aug 17, 2026
…31581)

* test(playwright): add E2E coverage for Persona AI Context rule builder

Adds 11 Playwright tests covering the full rule CRUD flow, filter
validation, and individual field behaviours for the AI Context tab in
Persona settings.

The most important addition is a regression test for #31564: before
PR #31565 a fully-completed single-value condition (e.g. Description
Contains "…") was incorrectly rejected with the "unfinished condition"
error because `elasticSearchFormat` passed raw `config` instead of
`extendedConfig` to `buildEsRule`, causing widget resolution to fail
and `hasUnfinishedRule` to return true.

Tests added:
- Rule CRUD serial group: empty state, create, edit, delete
- Filter validation serial group: incomplete condition blocks save,
  regression #31564 (Description Contains allows save), entity-type
  switch clears filter, duplicate name rejected
- Rule editor fields: max-assets clamping, toggle visibility,
  knowledge entity-type forces Fully rendered on

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(playwright): fix regression test selector and add operator selection step

Live browser testing revealed two issues with the Persona AI Context
regression spec:

1. `page.locator('.rule').first()` finds the GROUP container which can
   be hidden in some builds — go directly to `.rule--field .ant-select`
   at page level instead.

2. The Description field uses `match_phrase` operators. The text widget
   (`.rule--widget--TEXT`) only renders after an operator is selected.
   Add an explicit "Contains" operator selection step so the input is
   available before we try to fill it.

Also: add `.first()` guard on the Fully rendered switch locator in the
knowledge-entity-type test (multiple elements can match) and add a note
that react-aria Switch stores state in the checked property, not
aria-checked.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(playwright): address gitar-bot review findings in AI Context spec

Three issues raised in PR #31581 review:

1. `openAddRuleDrawer`: `isVisible({ timeout: 500 })` silently ignores
   the timeout and returns synchronously — replace with
   `emptyBtn.or(headerBtn).first().waitFor()` so we genuinely wait,
   then branch on `isVisible()` after the element is confirmed present.

2. `waitForTimeout(300)` sleeps after clicking add-context-condition are
   flaky: replaced with `page.locator('.rule--field .ant-select').first()
   .waitFor({ state: 'visible' })` at all three call sites.

3. Comment on the Fully rendered switch assertion said "use .isChecked()"
   but the code uses Playwright's `toBeChecked()` matcher — reworded to
   accurately describe why the property-based check is needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* refactor(playwright): merge CRUD serial tests into one test, remove serial from filter validation

CRUD tests (empty→create→edit→delete) are an inherently sequential
flow where edit and delete depend on state created by earlier steps.
Collapsing them into a single test with test.step() makes the
dependency explicit and atomic: a step failure aborts only that test
rather than silently skipping later ones via describe.serial.

Filter validation tests are each self-contained (each creates and
discards its own rule within a single test body), so describe.serial
was unnecessary. Removing it ensures a failure in the "incomplete
condition" test never prevents the regression test (#31564) from
running.

Also replace waitForTimeout(300) with waitFor({ state: 'visible' })
on the condition-row field selector to eliminate timing-based flakes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci(playwright): add impact mapping for PersonaAIContextRules spec

Adds a mapping so changes to the PersonaAIContext component tree
(src/components/Settings/Persona/PersonaAIContext/**) or PersonaAPI.ts
on a future PR automatically include the three AI Context spec files
in the CI plan rather than falling through to an unmapped-file warning.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci(playwright): seed timing-baseline.json for PersonaAIContextRules spec

The plan-playwright gate hard-fails when a wholly-new spec file has
>= 5 tests with no timing history — the FALLBACK_TEST_MS reservation
(30s × 8 = 4 min) would under-budget the shard and risk a SIGTERM on
the merge queue (see PR #30812).

Add 8 entries using the real Playwright test IDs (obtained via
`playwright test --list`) and calibrated durations based on comparable
tests in PersonaAIContext.spec.ts and PersonaFlow.spec.ts. The nightly
full-mode run will replace these estimates with measured values via the
auto-refresh workflow once the spec first executes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(playwright): address gitar-bot/greptile PR comments for PersonaAIContextRules spec

- Wrap all tests in test.describe.serial: shared PersonaClass instance running
  under fullyParallel:true caused the CRUD "empty state" assertion to race against
  filter/editor tests concurrently creating rules on the same persona
- Move beforeAll/afterAll inside the serial describe using test.beforeAll/test.afterAll
  (not base.beforeAll), matching the pattern in PersonaAIContext.spec.ts
- Remove test.slow(true) from both hooks — Playwright throws "can only be called
  inside test" when used in beforeAll/afterAll
- Remove two redundant // Cleanup inline comments (greptile P2) that just restated
  the next line of code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci(playwright): refresh PersonaAIContextRules test IDs in timing-baseline.json

The describe.serial wrapper added in the previous commit changed all 8
test-ID hashes for PersonaAIContextRules.spec.ts (test ID is computed
from the full describe-path, so wrapping the suite in an outer
describe.serial changes every hash). The plan-playwright gate hard-fails
when every test in a file >= 5 tests falls through to FALLBACK_TEST_MS
with no timing history.

Surgically replace the 8 stale IDs with the IDs from the current structure
obtained via `npx playwright test --list --reporter=json`. File and title
fields are unchanged; only the `"id"` values are updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci: retrigger plan-playwright after timing-baseline refresh

The previous CI run used a merge commit that predated the timing-baseline
ID refresh in 7fa030d. Force a new run against the updated merge commit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(plan-playwright): always include timing-baseline.json alongside history artifacts

The stale-baseline gate fires when all tests in a new spec file have no
timing history. Previously, timing-baseline.json was only used as a
fallback when NO history artifacts were downloaded from recent CI runs.
Once any artifact existed (typical for an active repo), the baseline was
skipped entirely — so seeding a new spec's durations into the baseline had
no effect and the gate would always fire for newly-added spec files.

Fix: unconditionally append --history timing-baseline.json so it is always
consulted alongside downloaded artifacts. When artifacts exist the baseline
acts as a supplemental seed for new specs not yet in any full-run artifact;
when no artifacts were downloaded it remains the sole source.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Revert "fix(plan-playwright): always include timing-baseline.json alongside history artifacts"

This reverts commit 25613c8.

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit 31cca94)

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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants