Skip to content

ci(playwright): skip unused runner-side ingestion Python installs - #30349

Merged
pmbrull merged 2 commits into
mainfrom
ci/playwright-skip-unused-python-deps
Jul 23, 2026
Merged

pmbrull merged 2 commits into
mainfrom
ci/playwright-skip-unused-python-deps

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Jul 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • The composite action .github/actions/setup-openmetadata-test-environment installs ingestion[all], ingestion[test], cx_Oracle, sqlalchemy-redshift, sqlalchemy-ibmi, pydoris-custom, and nox onto the runner in its "Install Python Dependencies" step.
  • Those packages are consumed by py-tests-* / py-cli-e2e-tests / py-operator-* workflows that invoke Python on the runner.
  • Playwright E2E workflows don't touch runner-side Python at all — the ingestion Docker container runs its own installs. So the step is dead weight for those runs, costing ~3–4 minutes per shard.

Change

  • Add an install-test-dependencies input (default \"true\", preserves current behavior for py-tests) and gate the "Install Python Dependencies" step on it.
  • Flip all nine Playwright workflows using this composite to install-test-dependencies: \"false\".

Files changed

  • .github/actions/setup-openmetadata-test-environment/action.yml (new input + if: gate)
  • 9 playwright-*.yml workflows (one-line addition each)

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 Environment step ran 12–14 min. This should shave ~3–4 min off that on every Playwright shard.

Test plan

  • Postgresql PR Playwright E2E Tests on this PR runs green; "Setup Openmetadata Test Environment" step is measurably shorter.
  • py-tests-postgres / py-cli-e2e-tests on 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:

  • Adds a default-enabled install-test-dependencies input to the shared setup action.
  • Gates the broad ingestion test dependency installation with that input.
  • Disables the installation in nine Playwright workflows.

Confidence Score: 5/5

This looks safe to merge.

  • Existing callers keep the prior behavior through the default value.
  • No blocking issue tied to an earlier review finding remains in the updated code.

Important Files Changed

Filename Overview
.github/actions/setup-openmetadata-test-environment/action.yml Adds a backward-compatible input that controls runner-side ingestion test dependency installation.
.github/workflows/playwright-integration-tests-mysql.yml Disables the shared action's broad Python test dependency installation.
.github/workflows/playwright-integration-tests-postgres.yml Disables the shared action's broad Python test dependency installation.
.github/workflows/playwright-knowledge-graph-postgresql-e2e.yml Disables the shared action's broad Python test dependency installation.
.github/workflows/playwright-mysql-e2e.yml Disables the shared action's broad Python test dependency installation.
.github/workflows/playwright-ontology-rdf-postgresql-e2e.yml Disables the shared action's broad Python test dependency installation.
.github/workflows/playwright-postgresql-e2e.yml Disables the shared action's broad Python test dependency installation.
.github/workflows/playwright-search-nightly.yml Disables the shared action's broad Python test dependency installation.
.github/workflows/playwright-sso-login-nightly.yml Disables the shared action's broad Python test dependency installation.
.github/workflows/playwright-sso-tests.yml Disables the shared action's broad Python test dependency installation.

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

Context used (3)

  • Context used - openmetadata-ui-core-components/CLAUDE.md (source)
  • Context used - CLAUDE.md (source)
  • Context used - AGENTS.md (source)

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>
Copilot AI review requested due to automatic review settings July 22, 2026 12:45

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@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 safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Jul 22, 2026
python-version: "3.10"
args: "-d mysql"
ingestion_dependency: "playwright"
install-test-dependencies: "false"

@gitar-bot gitar-bot Bot Jul 22, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ 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 👍 / 👎

@chirag-madlani

Copy link
Copy Markdown
Collaborator Author

Copilot AI review requested due to automatic review settings July 23, 2026 04:44

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

🟡 Playwright Results — all passed (24 flaky)

✅ 4539 passed · ❌ 0 failed · 🟡 24 flaky · ⏭️ 95 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 435 0 5 16
✅ Shard 2 11 0 0 0
🟡 Shard 3 823 0 8 8
🟡 Shard 4 819 0 1 18
🟡 Shard 5 831 0 2 5
🟡 Shard 6 832 0 1 46
🟡 Shard 7 788 0 7 2
🟡 24 flaky test(s) (passed on retry)
  • Pages/Bots.spec.ts › Bots Page should work properly (shard 1, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: chart (shard 1, 1 retry)
  • Pages/SearchSettings.spec.ts › Preview config reflects reverted n-gram weight after save (shard 1, 1 retry)
  • Pages/SearchSettings.spec.ts › Latest preview config wins when a superseded request resolves late (shard 1, 1 retry)
  • Flow/SearchRBAC.spec.ts › a fully denied user sees neither asset type when browsing (shard 1, 1 retry)
  • Features/ColumnBulkOperations.spec.ts › should clear individual filter and update URL (shard 3, 1 retry)
  • Features/ColumnBulkOperations.spec.ts › should show Service filter chip from URL (shard 3, 1 retry)
  • Features/ColumnBulkOperations.spec.ts › should navigate through pages (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Article listing search filters, clears, and shows empty state (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Quick link lifecycle validates, creates, edits, and deletes from card (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › description: switching articles does not bleed unsaved content into next article (shard 3, 1 retry)
  • Features/ContextCenterMemories.spec.ts › view modal switches to edit mode and saves changes (shard 3, 1 retry)
  • Features/ContextCenterMemories.spec.ts › adding a linked asset in edit mode shows entity badge on the row (shard 3, 1 retry)
  • Features/Table.spec.ts › should persist page size (shard 4, 1 retry)
  • Flow/ExploreDiscovery.spec.ts › Should not display soft deleted assets in search suggestions (shard 5, 1 retry)
  • Flow/PersonaFlow.spec.ts › Set default persona for team should work properly (shard 5, 1 retry)
  • Pages/Entity.spec.ts › Inactive Announcement create & delete (shard 6, 1 retry)
  • Pages/GlossaryImportExport.spec.ts › Glossary Bulk Import Export (shard 7, 1 retry)
  • Pages/InputOutputPorts.spec.ts › Output ports section collapse/expand (shard 7, 2 retries)
  • Pages/Lineage/LineageFilters.spec.ts › Verify Impact Analysis service filter selection (shard 7, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab is NOT visible for pipelineService in platform lineage (shard 7, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab is NOT visible for apiService in platform lineage (shard 7, 1 retry)
  • Pages/TestSuite.spec.ts › Logical TestSuite (shard 7, 1 retry)
  • Pages/UserDetails.spec.ts › Admin user can get all the roles hierarchy and edit roles (shard 7, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@pmbrull
pmbrull merged commit e97d83b into main Jul 23, 2026
77 of 79 checks passed
@pmbrull
pmbrull deleted the ci/playwright-skip-unused-python-deps branch July 23, 2026 10:41
@gitar-bot

gitar-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Code Review ⚠️ Changes requested 0 resolved / 1 findings

Adds an install-test-dependencies input to the composite setup action and disables it across nine Playwright workflows, but integration-test workflows may lose connector deps they need.

⚠️ Bug: Integration-test workflows may lose connector deps they need

📄 .github/workflows/playwright-integration-tests-mysql.yml:100 📄 .github/workflows/playwright-integration-tests-mysql.yml:110-112 📄 .github/workflows/playwright-integration-tests-postgres.yml:100 📄 .github/actions/setup-openmetadata-test-environment/action.yml:91-101

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"
🤖 Prompt for agents
Code Review: Adds an install-test-dependencies input to the composite setup action and disables it across nine Playwright workflows, but integration-test workflows may lose connector deps they need.

1. ⚠️ Bug: Integration-test workflows may lose connector deps they need
   Files: .github/workflows/playwright-integration-tests-mysql.yml:100, .github/workflows/playwright-integration-tests-mysql.yml:110-112, .github/workflows/playwright-integration-tests-postgres.yml:100, .github/actions/setup-openmetadata-test-environment/action.yml:91-101

   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.

   Fix (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"

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 👍 / 👎 | Gitar

This branch was previously deployed

1 inactive deployment
test — ac9369ea Deployed Jul 23, 2026 by chirag-madlani via playwright-ci-postgresql (7, 7) #57911
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants