Repository navigation
ci: Python integration tests and Playwright E2E only in the merge queue - #34740
Conversation
…rge queue PR runs of py-tests / py-tests-postgres now skip the backend build and the integration shards; merge_group and workflow_dispatch still run them. The pr-checklist skill and PR template now require running the affected unit and integration tests locally for ingestion changes.
❌ 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 |
✅ Playwright Results — workflow succeededValidated commit ✅ 213 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) 37m 20s ⏱️ Max setup 5m 8s · max shard execution 7m 34s · max shard-job elapsed before upload 11m 8s · reporting 3s 🌐 202.75 requests/attempt · 1.76 app boots/UI scenario · 0.00% 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 |
Skip every job on pull_request so PRs start no Playwright runners; the required playwright-summary check reports as skipped, which GitHub counts as passing. Drop the pull_request_target fork path and its label gate, and stop the PR-comment publisher from spinning up for PR runs.
Code Review ✅ Approved🟡 Medium risk · PR checks defer integration and Playwright suites to merge-queue execution. Restructures Python test CI to run unit tests and static checks on PRs while deferring integration tests to the merge queue, keeping PR feedback fast. No issues found. 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 |
|
…ava-test-ci-gating Conflict in skills/pr-checklist/SKILL.md with #34740: kept this branch's Java section, which replaces the old `mvn test -pl openmetadata-integration-tests -Dtest=<NewIT>` block, and took #34740's Ingestion (Python) section as is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…metadata#34835) Since open-metadata#34740 skips Python integration tests on PRs, py-combine-coverage downloads only coverage-unit. download-artifact extracts a single matched artifact directly into the target path rather than a per-artifact subdirectory, so the prepare step never found the .coverage file and coverage combine failed with "No data to combine".
Since #34740 the Postgres Playwright suite runs only in the merge queue. The queue now sees ~3.7 entries per PR (was 2.3) and half of its runs fail (was 9%), mostly in playwright-ci shards: breakage that the PR-time targeted run used to catch now ejects the entry and rebuilds every entry behind it, at ~8.5 runner-hours per full run. PRs run the targeted plan again: smoke, changed specs and impact-mapped specs. The merge queue, the nightly schedule and dispatches are unchanged and still run the full suite. - select_playwright_tests.py caps the escalation on pull_request: an unmapped code path (every Java change is one) keeps the PR on smoke + canary + mapped specs instead of the full suite, and the selection records escalationCapped and unmappedCodeFiles. Dispatches keep the escalation. The detect-changes step leaves a notice on capped runs. plan_local_playwright.py reads the recorded files instead of waiting for a full plan. - The reusable gate runs same-repo, non-draft PRs. Fork PRs and drafts still skip; pull_request_target stays removed, so forks rely on the queue. - On PRs, cache-keys and detect-changes (and so every heavy job) skip when the e2e paths filter is false. playwright-summary reports green for that case from an explicit step that requires check-changes to have succeeded with e2e == 'false', so a broken change detection still fails the check. - The PR concurrency group keys on the PR number, not the head branch name; PR runs still cancel superseded commits. - The PR-comment publisher runs for pull_request runs again. - The PR template and the pr-checklist skill no longer say PRs never run Playwright.
playwright-knowledge-graph-postgresql-e2e.yml triggered on both pull_request and pull_request_target, each including `labeled`, so every PR event started two workflow runs: one did the work and the other only ran its gate to decide it should skip. Labelling a PR started two more. Following #34740, which made the same move for playwright-postgresql-e2e: drop pull_request_target and the `labeled` type. Same-repo PRs still run the suite under pull_request. Fork PRs cannot read the connector secrets there, so the gate skips them and the merge queue (which always runs the suite) is where fork code is tested, matching the Postgres E2E workflow. The fork label-reconciliation steps, the head-SHA checkout override and the pull_request_target cache-poisoning guards go with the trigger. With no sibling run, an early green skip can no longer satisfy branch protection before the real run finishes, so the summary always publishes the required `Playwright RDF (Knowledge Graph + Ontology)` name; a skipped gate (draft or fork PR) reports it green and a gate failure still fails it. cancel-in-progress is now unconditional, since the label special cases no longer exist. A test pins the trigger set, the summary name and the gate decision.



Describe your changes:
PR runs of
py-tests/py-tests-postgresnow run only the unit tests and static checks. The backend build and the integration shards run only inmerge_group(and onworkflow_dispatch), to keep PR feedback fast. The Postgres Playwright E2E suite gets the same treatment: it no longer runs on PRs at all and runs only in the merge queue (plus schedule / dispatch). Thepr-checklistskill and the PR template now require running the unit + integration tests that cover changedingestion/files locally, with the results recorded in the PR body.Type of change:
High-level design:
py-tests-shared.yml: thechangesjob emits a newintegrationoutput: true onmerge_group(when Python paths changed) and onworkflow_dispatch, false onpull_request_target.build-distributionandpy-integration-testsgate on it.prepare-spacy-modelis skipped when neither unit nor integration jobs will consume it.verifyexpects build/integration to beskippedon PRs andsuccessin the merge queue.shopt -s nullglobstops the shard loop from failing the step when there are no integration coverage files, so PR Sonar coverage is unit-only.py-tests-status) are unchanged, so no ruleset change is needed.skills/pr-checklist/SKILL.md: a shell recipe lists the changed test files plus the tests importing changedmetadata.*modules, then runs them. A new quality gate requires those results in the PR body.playwright-postgresql-e2e.yml: theplaywrightandplaywright-summaryjobs are skipped byif:onpull_request, so PRs start no Playwright runner. The workflow still triggers on PRs becauseplaywright-summaryis a required check; GitHub counts a job skipped byif:as passing, so the PR is not blocked. With no PR trigger at all the check would hang at "Expected — waiting". Thepull_request_targetfork path and the dead gate-skip step are removed.playwright-e2e-reusable.yml: the gate is reduced to an event switch (run onmerge_group/schedule/workflow_dispatch/push). The fork-label wait, label lookup, and "safe to test" logic are gone, and the gate job getspermissions: {}.playwright-postgresql-pr-comment.yml: the comment publisher runs only forworkflow_dispatchruns, so it no longer starts a runner after every PR run.merge_grouptrigger, so the same split there first needs a merge-queue decision.Behaviour before vs after this PR
ingestion/**oropenmetadata-spec/**service/resources/**, plusJsonPatchMessageBodyReader,JsonPatchProvider,ResourceRegistryjdbi3, search, auth, migrations…)Only the PR column changes: integration moves out of PRs. Which changes count as Python-relevant is still decided by the same
python:path filter. That filter has been narrow sincee9318cf6f8e(#30310), so a Java-only change outside the listed paths, such asTableRepository, already skipped the Python suite before this PR, even though it can break ingestion.Open question: we could also run the integration suite in the merge queue for any backend change. PRs would stay unit-only. That means replacing the four
openmetadata-service/...entries in thepython:filter with:The cost: most backend PRs would then run the backend build and 9 integration jobs in the queue, twice (MySQL + Postgres). A cheaper middle ground is
openmetadata-service/src/main/java/**alone.Tests:
Use cases covered
ingestion/: unit tests + static checks run, integration shards and backend build skipped,py-tests-statusgreen.playwright-summaryshows as skipped (not blocking), no Playwright build/shard jobs start, no Playwright PR comment.workflow_dispatch: the full Playwright suite runs as before.Unit tests
actionlintpasses onpy-tests.yml,py-tests-shared.yml,py-tests-postgres.yml.Backend integration tests
Ingestion integration tests
pull_request_targetruns the workflow file frommain, so this PR ran the old full suite. The merge-queue path is exercised when this PR enters the queue, sincemerge_groupuses the PR's workflow file. The PR-side skip first shows on the next Python PR after merge.Playwright (UI) tests
Manual testing performed
uvx --from actionlint-py actionlinton the three py-tests workflows: no findings.actionlinton the three Playwright workflows: the same 9 findings as onmain(pre-existingjobs.<id>.resultin reusable outputs), nothing new.pytest -n autoon the unit subset.UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code