Skip to content

Fixes 33644: stop backend integration-test changes from running the whole Playwright suite - #33645

Merged
harshach merged 1 commit into
mainfrom
harshach/playwright-skip-backend-it-module
Sep 20, 2026
Merged

harshach merged 1 commit into
mainfrom
harshach/playwright-skip-backend-it-module

Conversation

@harshach

@harshach harshach commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #33644. Unblocks #33642, and every future backend-IT-only PR.

Any change under openmetadata-integration-tests/ currently runs the entire Playwright suite.
The module is in UNMAPPED_CODE_ROOTS and has no impact-map entry, so the selector escalates:

"reason": "unmapped code paths changed — running the full suite so coverage
           does not depend on the impact-map being current"

That is now a hard failure, not just waste. Full-suite chromium planning aborts:

Lane chromium needs more than 28 shards to stay within the 19-minute plan budget;
the heaviest shard is predicted at 23.6m

So #33642 — four Java test files, no UI — fails a Playwright check.

The escalation rule is right in general and I have not touched it. It is wrong for this one module:
it is a test-only Maven module, not packaged into the server the suite runs against nor into the UI
bundle, so no change in it can alter a spec outcome. Mapping it to no specs is exactly the remedy
select_playwright_tests.py documents — "every mapping added later demotes its own paths from full
back to targeted, so this rule never blocks the map from shrinking again."

Mapped, not excluded. With specs: [] the paths count as mapped, so the smoke and canary
selectors still run — this narrows the selection without dropping the safety net to nothing.

Type of change:

  • Improvement

High-level design:

Six lines of JSON: one mappings entry with sources: ["openmetadata-integration-tests/**"] and
empty projects/specs, carrying a _comment (an established key in this file) explaining why the
module cannot affect a spec. No script changes.

Tests:

Use cases covered

  • A backend-IT-only PR runs smoke + canary instead of the full suite.
  • A PR mixing backend IT with an unmapped service path still runs the full suite.

Unit tests

.github/scripts/tests/test_playwright_backend_it_selection.py — three cases driving the real
selector, not a reimplementation of it. Verified against this PR's own change set:

changed paths before after
backend IT only full / 0 selectors targeted / 6 selectors
backend IT + a service path full full
an unmapped service path alone full full
a mapped UI path (Lineage) targeted / 13 targeted / 13

With the mapping reverted, two of the three new tests fail (assert 'full' == 'targeted' and
assert []), so they guard the behaviour rather than restate it.

5 passed in 1.21s   (new file + the existing custom-properties selection tests)

Backend integration tests

Not applicable — CI selection config only.

Ingestion integration tests

Not applicable.

Playwright (UI) tests

No spec changes. This changes which specs are selected, and the table above is the evidence.

Manual testing performed

  1. Ran select_playwright_tests.py directly with Fixes 33641: scope the JDBI test decorators on Predicate<StatementContext> #33642's four changed files, before and after —
    full → targeted.
  2. Ran the four regression shapes in the table above.
  3. python -m pytest .github/scripts/tests/ on the new and neighbouring selection tests — 5 passed.

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #33644.
  • 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 and listed them above.

🤖 Generated with Claude Code

RetriggerConfidence Score: 4/5

The PR should not merge until backend-integration-test-only changes retain the promised canary selectors in addition to smoke coverage.

Findings

  1. P1 Canary coverage is omitted ▶
Summary

This PR maps the backend integration-test Maven module to no directly impacted Playwright specs, preventing changes under that module from escalating to a full-suite plan, and adds selector regression tests.

  • Backend-IT-only changes move from full mode to targeted mode.
  • Mixed backend-IT and unmapped service changes continue to trigger the full suite.
  • The resulting targeted plan currently contains smoke coverage but omits the promised canary coverage.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Changed backend integration-test path] --> B[Matches empty impact-map entry]
    B --> C[Path is considered mapped]
    C --> D[No direct specs added]
    D --> E[Unconditional smoke selectors remain]
    C --> F[unmapped_change is false]
    F --> G[Canary selectors are not added]
    E --> H[Targeted smoke-only plan]
Loading

Reviews (1) · Last reviewed commit: "Stop backend integration-test changes fr..."

…ht suite

openmetadata-integration-tests/ is listed in UNMAPPED_CODE_ROOTS but has no
impact-map entry, so any change under it counts as an unmapped code path and
escalates to a full-suite run:

  "reason": "unmapped code paths changed — running the full suite so coverage
             does not depend on the impact-map being current"

That escalation is currently a hard failure rather than a slow one. Full-suite
chromium planning aborts - "Lane chromium needs more than 28 shards to stay
within the 19-minute plan budget; the heaviest shard is predicted at 23.6m" -
so a PR touching four Java test files fails a Playwright check.

The module is test-only: it is not packaged into the server the suite runs
against, nor into the UI bundle, so no change in it can alter a spec outcome.
Mapping it to no specs is what select_playwright_tests.py's own comment
describes - "every mapping added later demotes its own paths from full back to
targeted".

Mapped rather than excluded, so the smoke and canary selectors still run: this
narrows the selection without dropping the safety net to nothing. A service
change in the same PR still escalates, so this is not a blanket "backend is
safe" switch.

Verified against the real selector with this PR's own file list: full/0
selectors before, targeted/6 after; a service path alone stays full; a mixed
IT + service change stays full.

Co-Authored-By: Claude Opus 5 (1M context) <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:

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 backend safe to test Add this label to run secure Github workflows on PRs labels Sep 20, 2026
@gitar-bot

gitar-bot Bot commented Sep 20, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk

Adds openmetadata-integration-tests/ to the Playwright test selector with an empty spec mapping, preventing backend-IT-only changes from triggering the full suite. Smoke and canary tests still run to maintain safety. Three regression test cases verify the behaviour — backend IT alone now selects targeted tests instead of the full suite, while mixed changes and unmapped paths still escalate correctly. 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

Comment on lines +781 to +782
"projects": [],
"specs": []

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.

P1 Canary coverage is omitted

For a backend-integration-test-only change, this empty mapping marks the path as mapped, so unmapped_change is false. The selector therefore keeps the six unconditional smoke specs but skips the canary selectors, which are added only for shared-infrastructure or unmapped changes. These PRs consequently lose the promised canary safety net. Add the canary specs and projects to this mapping or explicitly select them, and test for their presence instead of only checking that selectors is nonempty.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit f0f234af0b25a302138ace4c94ef72af076bf11c in Playwright run 35480574779, 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) 49m 50s

⏱️ Max setup 4m 25s · max shard execution 16m 33s · max shard-job elapsed before upload 19m 38s · reporting 4s

🌐 231.02 requests/attempt · 2.24 app boots/UI scenario · 11.68% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 231.02 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 140 0 0 0 0 0
✅ Shard chromium-02 120 0 0 0 0 0
✅ Shard chromium-03 139 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

@harshach
harshach merged commit ff2ee28 into main Sep 20, 2026
105 of 107 checks passed
@harshach
harshach deleted the harshach/playwright-skip-backend-it-module branch September 20, 2026 06:57

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

backend 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.

Backend integration-test changes escalate to a full Playwright run, which currently cannot be planned

1 participant