9595 uses : ./.github/actions/setup-openmetadata-test-environment
9696 with :
9797 python-version : " 3.10"
98- args : " -d postgresql"
98+ # Pass different args depending on the shardIndex:
99+ # - shard 2: run with ingestion setup
100+ # - other shards: skip ingestion setup
101+ args : ${{ matrix.shardIndex == 2 && '-d postgresql' || '-d postgresql -i false' }}
99102 ingestion_dependency : " all"
100103
101104 - name : Setup Node.js
@@ -118,27 +121,24 @@ jobs:
118121 npx playwright test \
119122 --project=setup \
120123 --project=DataAssetRulesEnabled \
121- --project=DataAssetRulesDisabled
124+ --project=DataAssetRulesDisabled \
125+ --project=Basic \
126+
127+ elif [ "${{ matrix.shardIndex }}" -eq "2" ]; then
128+ echo "🔹 Running ingestion tests on shard 2"
129+
130+ # run ingestion framework tests
131+ npx playwright test \
132+ --project=ingestion \
122133
123134 else
124- # Shards 2-6 handle chromium tests (5 workers total)
125- CHROMIUM_SHARD=$(( ${{ matrix.shardIndex }} - 1 ))
126- if [[ "${{ contains(github.event.pull_request.changed_files, 'ingestion/') }}" == "true" ]]; then
127- echo "🔹 Running ingestion tests on chromium shard ${CHROMIUM_SHARD}/5"
128- npx playwright test \
129- --project=chromium \
130- --grep @ingestion \
131- --grep-invert @dataAssetRules \
132- --shard=${CHROMIUM_SHARD}/5
133- --workers=50%
134-
135- else
136- echo "🔹 Running all other tests (excluding DataAssetRules) on chromium shard ${CHROMIUM_SHARD}/5"
137- npx playwright test \
138- --project=chromium \
139- --grep-invert @dataAssetRules \
140- --shard=${CHROMIUM_SHARD}/5
141- fi
135+ # Shards 3-6 handle chromium tests (4 workers total)
136+ CHROMIUM_SHARD=$(( ${{ matrix.shardIndex }} - 2 ))
137+ echo "🔹 Running all other tests (excluding DataAssetRules) on chromium shard ${CHROMIUM_SHARD}/4"
138+ npx playwright test \
139+ --project=chromium \
140+ --grep-invert @dataAssetRules \
141+ --shard=${CHROMIUM_SHARD}/4
142142 fi
143143
144144 env :
0 commit comments