Repository navigation
ci(playwright): skip unused runner-side ingestion Python installs - #30349
Conversation
The setup-openmetadata-test-environment composite action's "Install Python Dependencies" step installs ingestion[all], ingestion[test], cx_Oracle, sqlalchemy-redshift/ibmi, pydoris-custom and nox onto the runner. Those packages are consumed by py-tests / py-cli-e2e / py-operator workflows that invoke Python on the runner, but Playwright E2E workflows only drive the browser — the ingestion Docker container runs its own installs independently. On the postgresql-e2e run this step accounts for ~3-4 min of every shard's setup time (7 shards, so ~25 minutes of runner time per run that never touches the tests). Add an install-test-dependencies input (default "true" preserves the current behavior for py-tests) and gate the step on it. Flip all nine Playwright workflows that consume the action to install-test-dependencies: "false" so they skip the install and start Playwright ~3-4 min sooner. Co-Authored-By: Claude Opus 4.7 (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 |
| python-version: "3.10" | ||
| args: "-d mysql" | ||
| ingestion_dependency: "playwright" | ||
| install-test-dependencies: "false" |
There was a problem hiding this comment.
⚠️ Bug: Integration-test workflows may lose connector deps they need
playwright-integration-tests-mysql.yml and playwright-integration-tests-postgres.yml run runner-side pytest (source env/bin/activate; make install_e2e_tests; make run_e2e_tests -> pytest ingestion/tests/e2e) and pass connector secrets E2E_REDSHIFT_/E2E_DRUID_/E2E_HIVE_*. Previously the gated "Install Python Dependencies" step installed ingestion[all] (which includes redshift/oracle/druid/hive connectors, cx_Oracle, sqlalchemy-redshift/ibmi). make install_e2e_tests only installs ingestion[e2e_test], whose extra (setup.py:543-549) contains just pytest-playwright/pytest-base-url/exasol and NOT those DB connectors. Setting install-test-dependencies:"false" on these two workflows can break collection/execution of e2e tests that import those connectors. Verify the e2e suite doesn't import connectors outside e2e_test; if it does, keep the default (true) for these two workflows, or expand the e2e_test extra to include the needed connectors. The remaining 7 npx-only Playwright workflows are unaffected.
Revert the flag on the two integration-test workflows that run runner-side pytest, keeping the default install.:
# playwright-integration-tests-mysql.yml / -postgres.yml
# Remove the added line so the default "true" is used:
- install-test-dependencies: "false"
Was this helpful? React with 👍 / 👎
|
🟡 Playwright Results — all passed (24 flaky)✅ 4539 passed · ❌ 0 failed · 🟡 24 flaky · ⏭️ 95 skipped
🟡 24 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar



Summary
.github/actions/setup-openmetadata-test-environmentinstallsingestion[all],ingestion[test],cx_Oracle,sqlalchemy-redshift,sqlalchemy-ibmi,pydoris-custom, andnoxonto the runner in its "Install Python Dependencies" step.py-tests-*/py-cli-e2e-tests/py-operator-*workflows that invoke Python on the runner.Change
install-test-dependenciesinput (default\"true\", preserves current behavior for py-tests) and gate the "Install Python Dependencies" step on it.install-test-dependencies: \"false\".Files changed
.github/actions/setup-openmetadata-test-environment/action.yml(new input +if:gate)Note: py-tests / py-cli-e2e / py-operator / postgresql-nightly-e2e / mysql-nightly-e2e workflows are unchanged and continue to install everything as before.
Impact estimate
On the postgresql-e2e run 29907894464 each shard's
Setup Openmetadata Test Environmentstep ran 12–14 min. This should shave ~3–4 min off that on every Playwright shard.Test plan
Postgresql PR Playwright E2E Testson this PR runs green; "Setup Openmetadata Test Environment" step is measurably shorter.py-tests-postgres/py-cli-e2e-testson this PR still install everything (default\"true\"unchanged) and pass.🤖 Generated with Claude Code
Greptile Summary
This PR avoids installing unused runner-side Python test packages in Playwright workflows. The main changes are:
install-test-dependenciesinput to the shared setup action.Confidence Score: 5/5
This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "Merge branch 'main' into ci/playwright-s..." | Re-trigger Greptile
Context used (3)