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
43 changes: 40 additions & 3 deletions .github/workflows/playwright-postgresql-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,14 @@ jobs:
--project=DataAssetRulesDisabled \
--project=Basic \
--project="Data Insight" \
--project=SearchRBAC \
--project=SearchRBAC

else
# Shards 2-6 run common chromium tests equally distributed (5-way sharding)
CHROMIUM_SHARD=$(( ${{ matrix.shardIndex }} - 1 ))
echo "🔹 Running common chromium tests on shard ${CHROMIUM_SHARD}/5"
npx playwright test \
--project=chromium \
--project=IntakeFormCustomPropertyFields \
--project=IntakeForm \
--grep-invert @dataAssetRules \
--shard=${CHROMIUM_SHARD}/5
fi
Expand Down Expand Up @@ -279,6 +277,45 @@ jobs:
retention-days: 1
if-no-files-found: ignore

# Intake Form tests mutate global form requirements and must not overlap
# projects that create domains or data products. The primary artifacts are
# uploaded first because this second Playwright run clears its output paths.
- name: Run isolated Intake Form tests
id: run-intake-tests
if: >-
${{ !cancelled() && matrix.shardIndex == 1 &&
(steps.run-tests.outcome == 'success' || steps.run-tests.outcome == 'failure') }}
Comment thread
shah-harshit marked this conversation as resolved.
working-directory: openmetadata-ui/src/main/resources/ui/
run: npx playwright test --project=IntakeForm
env:
PLAYWRIGHT_IS_OSS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Intake Form Playwright report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() && matrix.shardIndex == 1 && steps.run-intake-tests.outcome != 'skipped' }}
with:
name: playwright-report-1-intake
path: openmetadata-ui/src/main/resources/ui/playwright/output/playwright-report
retention-days: 5

- name: Upload Intake Form test results (screenshots, traces)
uses: actions/upload-artifact@v4
if: ${{ !cancelled() && matrix.shardIndex == 1 && steps.run-intake-tests.outcome != 'skipped' }}
with:
name: playwright-test-results-1-intake
path: openmetadata-ui/src/main/resources/ui/playwright/output/test-results
retention-days: 5

- name: Upload Intake Form results JSON for summary
uses: actions/upload-artifact@v4
if: ${{ !cancelled() && matrix.shardIndex == 1 && steps.run-intake-tests.outcome != 'skipped' }}
with:
name: playwright-results-json-1-intake
path: openmetadata-ui/src/main/resources/ui/playwright/output/results.json
retention-days: 1
if-no-files-found: ignore

- name: Clean Up
run: |
cd ./docker/development
Expand Down
Loading