Skip to content

test(playwright): add ImportExport and AdvancedSearch projects to 2.0 config - #34224

Merged
ShaileshParmar11 merged 1 commit into
2.0from
ShaileshParmar11/pw-projects-2.0
Sep 29, 2026
Merged

ShaileshParmar11 merged 1 commit into
2.0from
ShaileshParmar11/pw-projects-2.0

Conversation

@ShaileshParmar11

Copy link
Copy Markdown
Contributor

The main Playwright workflow runs on 2.0 PRs (pull_request_target). Its "Discover tests" step passes --project=ImportExport and --project=AdvancedSearch. 2.0's playwright.config.ts defines neither, so any 2.0 PR that touches UI files fails plan-playwright with:

Error: Project(s) "ImportExport", "AdvancedSearch" not found.

Copies the minimal pieces from main:

  • hasDedicatedImportExportLane flag (PW_SHARD_PLAN or PW_DEDICATED_IMPORT_EXPORT=true)
  • ImportExport project (grep @import-export), plus the matching chromium grepInvert entry
  • AdvancedSearch project, plus **/AdvancedSearch.spec.ts in chromium testIgnore so it does not run twice

Verified locally: npx playwright test --list --project=ImportExport --project=AdvancedSearch resolves with no errors.

Not a full config sync with main (~220 lines differ); only what the workflow's project list requires.

@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner September 29, 2026 12:23
@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 Sep 29, 2026
Comment on lines +44 to +45
const hasDedicatedImportExportLane =
Boolean(shardPlan) || process.env.PW_DEDICATED_IMPORT_EXPORT === 'true';

@gitar-bot gitar-bot Bot Sep 29, 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: 2.0 merge-queue/nightly workflow silently stops running these tests

The 2.0 branch's own .github/workflows/playwright-postgresql-e2e.yml (merge_group/schedule/dispatch) runs its Discover step (lines 425-439) without the ImportExport or AdvancedSearch projects and without PW_DEDICATED_IMPORT_EXPORT. Discovery therefore puts Features/AdvancedSearch.spec.ts nowhere, because this PR adds it to chromium testIgnore unconditionally. @import-export tests such as ClassificationImportExport.spec.ts land in the plan under chromium. At run time PW_SHARD_PLAN is set (line 925), so hasDedicatedImportExportLane becomes true and chromium's grepInvert drops @import-export. Only the planned projects are passed, and ImportExport isn't one of them. As a result, both suites stop running in 2.0 merge-queue and nightly CI with no error. Fix this by adding --project=ImportExport --project=AdvancedSearch and PW_DEDICATED_IMPORT_EXPORT: "true" to the 2.0 workflow's Discover step, the same way PW_DEDICATED_INGESTION is handled.

Update the 2.0 workflow Discover step to include the new lanes:

env:
  PLAYWRIGHT_IS_OSS: "true"
  PW_DEDICATED_INGESTION: "true"
  PW_DEDICATED_IMPORT_EXPORT: "true"
run: |
  npx playwright test --list --reporter=json \
    --project=chromium \
    --project=ImportExport \
    --project=AdvancedSearch \
    ...

Was this helpful? React with 👍 / 👎

@gitar-bot

gitar-bot Bot commented Sep 29, 2026

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

🟡 Medium risk · Adds Playwright project routing and test exclusions, changing CI test selection.

Adds ImportExport and AdvancedSearch projects to the 2.0 Playwright config to resolve discovery errors. However, the 2.0 merge-queue/nightly workflow's Discover step does not pass these projects or set PW_DEDICATED_IMPORT_EXPORT, causing both test suites to silently stop running in 2.0 CI. Add --project=ImportExport --project=AdvancedSearch and PW_DEDICATED_IMPORT_EXPORT: "true" to .github/workflows/playwright-postgresql-e2e.yml's Discover step, matching how PW_DEDICATED_INGESTION is configured.

⚠️ Bug: 2.0 merge-queue/nightly workflow silently stops running these tests

📄 openmetadata-ui/src/main/resources/ui/playwright.config.ts:44-45 📄 openmetadata-ui/src/main/resources/ui/playwright.config.ts:191 📄 openmetadata-ui/src/main/resources/ui/playwright.config.ts:196 📄 openmetadata-ui/src/main/resources/ui/playwright.config.ts:324-337 📄 openmetadata-ui/src/main/resources/ui/playwright.config.ts:403-411

The 2.0 branch's own .github/workflows/playwright-postgresql-e2e.yml (merge_group/schedule/dispatch) runs its Discover step (lines 425-439) without the ImportExport or AdvancedSearch projects and without PW_DEDICATED_IMPORT_EXPORT. Discovery therefore puts Features/AdvancedSearch.spec.ts nowhere, because this PR adds it to chromium testIgnore unconditionally. @import-export tests such as ClassificationImportExport.spec.ts land in the plan under chromium. At run time PW_SHARD_PLAN is set (line 925), so hasDedicatedImportExportLane becomes true and chromium's grepInvert drops @import-export. Only the planned projects are passed, and ImportExport isn't one of them. As a result, both suites stop running in 2.0 merge-queue and nightly CI with no error. Fix this by adding --project=ImportExport --project=AdvancedSearch and PW_DEDICATED_IMPORT_EXPORT: "true" to the 2.0 workflow's Discover step, the same way PW_DEDICATED_INGESTION is handled.

Update the 2.0 workflow Discover step to include the new lanes
env:
  PLAYWRIGHT_IS_OSS: "true"
  PW_DEDICATED_INGESTION: "true"
  PW_DEDICATED_IMPORT_EXPORT: "true"
run: |
  npx playwright test --list --reporter=json \
    --project=chromium \
    --project=ImportExport \
    --project=AdvancedSearch \
    ...
🤖 Prompt for agents
Code Review: Adds `ImportExport` and `AdvancedSearch` projects to the 2.0 Playwright config to resolve discovery errors. However, the 2.0 merge-queue/nightly workflow's Discover step does not pass these projects or set `PW_DEDICATED_IMPORT_EXPORT`, causing both test suites to silently stop running in 2.0 CI. Add `--project=ImportExport --project=AdvancedSearch` and `PW_DEDICATED_IMPORT_EXPORT: "true"` to `.github/workflows/playwright-postgresql-e2e.yml`'s Discover step, matching how `PW_DEDICATED_INGESTION` is configured.

1. ⚠️ Bug: 2.0 merge-queue/nightly workflow silently stops running these tests
   Files: openmetadata-ui/src/main/resources/ui/playwright.config.ts:44-45, openmetadata-ui/src/main/resources/ui/playwright.config.ts:191, openmetadata-ui/src/main/resources/ui/playwright.config.ts:196, openmetadata-ui/src/main/resources/ui/playwright.config.ts:324-337, openmetadata-ui/src/main/resources/ui/playwright.config.ts:403-411

   The 2.0 branch's own `.github/workflows/playwright-postgresql-e2e.yml` (merge_group/schedule/dispatch) runs its Discover step (lines 425-439) without the `ImportExport` or `AdvancedSearch` projects and without `PW_DEDICATED_IMPORT_EXPORT`. Discovery therefore puts `Features/AdvancedSearch.spec.ts` nowhere, because this PR adds it to chromium `testIgnore` unconditionally. `@import-export` tests such as `ClassificationImportExport.spec.ts` land in the plan under `chromium`. At run time `PW_SHARD_PLAN` is set (line 925), so `hasDedicatedImportExportLane` becomes true and chromium's `grepInvert` drops `@import-export`. Only the planned projects are passed, and `ImportExport` isn't one of them. As a result, both suites stop running in 2.0 merge-queue and nightly CI with no error. Fix this by adding `--project=ImportExport --project=AdvancedSearch` and `PW_DEDICATED_IMPORT_EXPORT: "true"` to the 2.0 workflow's Discover step, the same way `PW_DEDICATED_INGESTION` is handled.

   Fix (Update the 2.0 workflow Discover step to include the new lanes):
   env:
     PLAYWRIGHT_IS_OSS: "true"
     PW_DEDICATED_INGESTION: "true"
     PW_DEDICATED_IMPORT_EXPORT: "true"
   run: |
     npx playwright test --list --reporter=json \
       --project=chromium \
       --project=ImportExport \
       --project=AdvancedSearch \
       ...

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

@ShaileshParmar11
ShaileshParmar11 enabled auto-merge (squash) September 29, 2026 12:28
@ShaileshParmar11 ShaileshParmar11 added the skip-pr-checks Bypass PR metadata validation check label Sep 29, 2026
@ShaileshParmar11
ShaileshParmar11 merged commit 28878c0 into 2.0 Sep 29, 2026
128 of 129 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the ShaileshParmar11/pw-projects-2.0 branch September 29, 2026 12:34
ShaileshParmar11 added a commit that referenced this pull request Sep 30, 2026
…ecycle projects in coverage on 2.0

The 2.0 CI discovery step never sets PW_DEDICATED_IMPORT_EXPORT or lists an
ImportExport project, so @Import-Export specs are planned into the chromium
lane. The config added in #34224 still dropped them from chromium whenever a
shard plan was set, so planned tests such as ClassificationImportExport never
ran and the coverage gate reported them missing. Gate the dedicated lane on
the env flag only.

Also backport the lifecycle-project filter from main's
verify_playwright_coverage.py: setup projects like data-insight-application
run once per shard that includes a dependent project, so splitting @Data-insight
specs across shards flagged them as unexpected and duplicate.

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

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants