Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions openmetadata-ui/src/main/resources/ui/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const shardPlan = process.env.PW_SHARD_PLAN
: undefined;
const hasDedicatedIngestionLane =
Boolean(shardPlan) || process.env.PW_DEDICATED_INGESTION === 'true';
const hasDedicatedImportExportLane =
Boolean(shardPlan) || process.env.PW_DEDICATED_IMPORT_EXPORT === 'true';
Comment on lines +44 to +45

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

const isPlannedShard = Boolean(shardPlan);
const hasPreseededState = process.env.PW_PRESEEDED_STATE === 'true';
const authDependencies = hasPreseededState ? [] : ['setup'];
Expand Down Expand Up @@ -186,10 +188,12 @@ export default defineConfig({
...(hasDedicatedIngestionLane ? [/@ingestion/] : []),
/@knowledge-graph/,
/@ontology-rdf/,
...(hasDedicatedImportExportLane ? [/@import-export/] : []),
],
teardown: entityTeardown,
testIgnore: [
'**/nightly/**',
'**/AdvancedSearch.spec.ts',
'**/Search/**',
'**/Auth/**',
'**/Http2/**',
Expand Down Expand Up @@ -317,6 +321,20 @@ export default defineConfig({
},
]
: []),
...(hasDedicatedImportExportLane
? [
{
name: 'ImportExport',
grep: combineGrep(/@import-export/),
testIgnore: '**/nightly/**',
use: { ...devices['Desktop Chrome'] },
dependencies: entityDependencies,
fullyParallel: true,
workers: 2,
teardown: entityTeardown,
},
]
: []),
{
name: 'SearchRBAC',
testMatch: '**/SearchRBAC.spec.ts',
Expand Down Expand Up @@ -382,6 +400,15 @@ export default defineConfig({
grep: shardGrep,
fullyParallel: false,
},
{
name: 'AdvancedSearch',
testMatch: '**/AdvancedSearch.spec.ts',
use: { ...devices['Desktop Chrome'] },
dependencies: entityDependencies,
grep: shardGrep,
fullyParallel: true,
teardown: entityTeardown,
},
],

// Increase timeout for the test
Expand Down
Loading