Repository navigation
WIP - chore(ci): update playwright workflow to run ingestion with dataAsset… - #24753
Conversation
| npx playwright test \ | ||
| --project=chromium \ | ||
| --grep-invert @dataAssetRules \ | ||
| --shard=${CHROMIUM_SHARD}/4 |
There was a problem hiding this comment.
⚠️ Bug: Missing --workers flag in chromium test execution
The chromium test execution on shards 3-6 is missing the --workers flag that was previously present in the old code. The original code had --workers=50% which controlled parallelization within each shard.
Old code:
npx playwright test \
--project=chromium \
--grep-invert @dataAssetRules \
--shard=${CHROMIUM_SHARD}/5
--workers=50%New code:
npx playwright test \
--project=chromium \
--grep-invert @dataAssetRules \
--shard=${CHROMIUM_SHARD}/4Without the --workers flag, the tests will use Playwright's default worker count, which may not be optimal for CI runners and could lead to resource issues or slower test execution.
Suggested fix: Add the --workers flag back:
npx playwright test \
--project=chromium \
--grep-invert @dataAssetRules \
--shard=${CHROMIUM_SHARD}/4 \
--workers=50%Was this helpful? React with 👍 / 👎
| await overview.shouldShowGlossaryTermsSection(); | ||
| }) | ||
|
|
||
| test(`Should update owners for ${entityType}`, PLAYWRIGHT_SAMPLE_DATA_TAG_OBJ, async ({ adminPage }) => { |
There was a problem hiding this comment.
⚠️ Bug: Inconsistent tag placement - tag applied to single test instead of describe
In ExplorePageRightPanel.spec.ts, the PLAYWRIGHT_SAMPLE_DATA_TAG_OBJ tag is applied inconsistently. The parent test.describe('Right Panel Test Suite') is not tagged, but an individual test Should update owners for ${entityType} at line 195 is tagged with PLAYWRIGHT_SAMPLE_DATA_TAG_OBJ.
This creates an inconsistency because:
- Other tests in the same describe block (
Should update description,Should update/edit tags,Should update/edit tier, etc.) don't have this tag - If the parent describe needs sample data (as the beforeAll creates entities), all tests in this block should have the same tag
Looking at other tests in this file (e.g., lines 218, 252, 262), the tag is also applied to individual tests rather than the parent describe block.
Suggested fix: Either:
- Apply
PLAYWRIGHT_SAMPLE_DATA_TAG_OBJto the parenttest.describe('Right Panel Test Suite')so all tests are consistently tagged, OR - Ensure all tests that need sample data within this file have the tag applied individually
Given that the beforeAll creates entities via API context, the entire test suite likely depends on sample data setup, so tagging the parent describe block would be more appropriate.
Was this helpful? React with 👍 / 👎
🔍 CI failure analysis for 768b56d: Shard 4 at 99.8% (1 browser crash) on commit with Learning Resources fixes. Maintains excellent performance. Expected improvement on Shard 1 in next run. Ingestion: 54.3% → 99.8%.IssueCI job failed on commit
Root CauseShard 4 (Chromium 2/5) - Single failure ✅: Entity.spec.ts:1814 - "Chart › User should be denied access to edit description when deny policy rule is applied on an entity"
DetailsEXCELLENT PERFORMANCE - Shard 4: ✅
Learning Resources Fix Impact:
Consistency Analysis:
Test Infrastructure:
SummaryCommit
Expected Next:
PR Validation: ✅ HIGHLY SUCCESSFUL
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|



This pull request refactors the Playwright E2E testing configuration and test files to introduce and standardize the use of test tags for better test selection, sharding, and parallelization. It adds new tags for ingestion, sample data, and basic tests, updates the Playwright config to use these tags, and modifies the GitHub Actions workflow to shard and run tests more efficiently based on these tags.
Test Tagging and Organization
config.tsfor@ingestion,@sample-data, and@basic, enabling more granular test selection and grouping.Playwright Configuration Enhancements
playwright.config.tsto:Basicandingestiontests, each with appropriategreppatterns and dependencies.grepInvertarrays to exclude tests by tag, improving test isolation and parallelization. [1] [2]CI Workflow Improvements
.github/workflows/playwright-postgresql-e2e.ymlto:Test File Updates
Test Selection Improvements
These changes improve the maintainability, scalability, and efficiency of the Playwright E2E test suite and CI pipeline.…Rules
Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
playwright-postgresql-e2e.ymlto run ingestion setup on shard 2 with proper conditional logic (shardIndex == 2)-d postgresql, others get-d postgresql -i false)elifinstead of nested conditions) for better readability and reliabilityPLAYWRIGHT_BQ_PROJECT_ID)ingestionproject inplaywright.config.tsfor@ingestionand@sample-datatagged tests@sample-datatag to 16 test files requiring sample data ingestion@ingestionand@sample-datatagschromiumproject'sgrepInvertto properly exclude/data-insight/,/ingestion/, and/sample-data/patternsThis will update automatically on new commits.