Repository navigation
Fixes 33644: stop backend integration-test changes from running the whole Playwright suite - #33645
Conversation
…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>
❌ 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 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 |
| "projects": [], | ||
| "specs": [] |
There was a problem hiding this comment.
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.
✅ 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) 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:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
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_ROOTSand has no impact-map entry, so the selector escalates:That is now a hard failure, not just waste. Full-suite chromium planning aborts:
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.pydocuments — "every mapping added later demotes its own paths from fullback 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 canaryselectors still run — this narrows the selection without dropping the safety net to nothing.
Type of change:
High-level design:
Six lines of JSON: one
mappingsentry withsources: ["openmetadata-integration-tests/**"]andempty
projects/specs, carrying a_comment(an established key in this file) explaining why themodule cannot affect a spec. No script changes.
Tests:
Use cases covered
Unit tests
.github/scripts/tests/test_playwright_backend_it_selection.py— three cases driving the realselector, not a reimplementation of it. Verified against this PR's own change set:
full/ 0 selectorstargeted/ 6 selectorsfullfullfullfulltargeted/ 13targeted/ 13With the mapping reverted, two of the three new tests fail (
assert 'full' == 'targeted'andassert []), so they guard the behaviour rather than restate it.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
select_playwright_tests.pydirectly with Fixes 33641: scope the JDBI test decorators on Predicate<StatementContext> #33642's four changed files, before and after —full→targeted.python -m pytest .github/scripts/tests/on the new and neighbouring selection tests — 5 passed.UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #33644.🤖 Generated with Claude Code
The PR should not merge until backend-integration-test-only changes retain the promised canary selectors in addition to smoke coverage.
Findings
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.
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]Reviews (1) · Last reviewed commit: "Stop backend integration-test changes fr..."