Repository navigation
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
There was a problem hiding this comment.
🟡 Changes recommended
There are verified issues in the new CI artifact download recovery logic and an API-contract mismatch in test pipeline creation that should be corrected before merge.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR targets merge-queue reliability by hardening GitHub Actions artifact transport/recovery and by removing common Playwright/E2E races (selection, search readiness, polling, and deterministic cleanup), while also isolating flaky shared dependencies (AutoPilot MySQL source, Airflow DAG lifecycle, and retry-queue worker interference).
Changes:
- Add bounded artifact upload/download recovery + execution/commit integrity normalization, and tighten merge-group gating to require verifiable execution evidence.
- Stabilize Playwright helpers/specs (focus-first selection, response predicates, execution-aware polling for contracts/AutoPilot, deterministic API context disposal/cleanup).
- Improve supporting infrastructure/tests: dedicated AutoPilot MySQL fixture, Airflow DAG deploy/delete behavior + integration tests, retry-queue IT isolation, and richer server-latency/performance reporting.
File summaries
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/playwright/utils/serviceFormUtils.ts | Stabilize select interactions via focus and post-selection assertions. |
| openmetadata-ui/src/main/resources/ui/playwright/utils/search.ts | Use page-scoped API context for domain asset-count gating; fail fast on HTTP errors. |
| openmetadata-ui/src/main/resources/ui/playwright/utils/dataContracts.ts | Refactor contract validation/polling with stricter response matching and execution-id-based polling. |
| openmetadata-ui/src/main/resources/ui/playwright/utils/contractExecution.ts | New API polling helper for contract execution results with strict validation. |
| openmetadata-ui/src/main/resources/ui/playwright/utils/contractExecution.test.ts | New helper tests for contract execution polling behaviors. |
| openmetadata-ui/src/main/resources/ui/playwright/utils/autopilotExecution.ts | New API polling helper for AutoPilot workflow instance completion and error surfacing. |
| openmetadata-ui/src/main/resources/ui/playwright/utils/autopilotExecution.test.ts | New helper tests for AutoPilot polling scenarios. |
| openmetadata-ui/src/main/resources/ui/playwright/utils/AutoPilot.ts | Switch AutoPilot status checks to execution-aware polling via new helper. |
| openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/serverLoad.ts | Clarify routing/cache implications when intercepting requests under server-load fixture. |
| openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts | Allow configurable test-suite pipeline schedule interval for redeploy scenarios. |
| openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/ServiceBaseClass.ts | Remove unnecessary routing and stabilize runner selection assertions. |
| openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/MySqlIngestionClass.ts | Allow per-test injected MySQL connection settings (supports dedicated AutoPilot source). |
| openmetadata-ui/src/main/resources/ui/playwright/helper-tests.config.ts | New Playwright config to run helper/unit-like tests in CI. |
| openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs | Update baseline counts after locator-rule improvements. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DataContracts.spec.ts | Simplify contract validation visibility assertion based on new deterministic polling. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/PageObject/Explore/OverviewPageObject.ts | Replace forced click with retryable open-and-assert flow for owner picker. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/MetricListSearch.spec.ts | Derive restored count from clear response; add response shape checks. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/IngestionBot.spec.ts | Ensure API context is always disposed and gate asset picker on indexing. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/TestSuitePipelineRedeploy.spec.ts | Make fixture creation deterministic, assert per-pipeline deploy responses, add cleanup. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/GlobalPageSize.spec.ts | Stabilize page-size changes with response predicates and retryable menu interactions. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TestLibrary.spec.ts | Use retryable select option helper; assert visible trigger text for selection. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ContextCenterMemories.spec.ts | Tighten search response waiting and scope options to popover to avoid locator collisions. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/AutoPilot.spec.ts | Add dedicated AutoPilot MySQL support, execution-aware polling, and stronger cleanup. |
| openmetadata-ui/src/main/resources/ui/eslint-suppressions.json | Remove suppressions made unnecessary by locator/test fixes. |
| openmetadata-ui-core-components/src/main/resources/ui/src/components/base/select/select.test.tsx | New regression test for Select behavior in modal/unfocused trigger scenarios. |
| openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/SearchIndexRetryQueueIT.java | Isolate retry-queue IT from app worker; add stability test asserting no worker interference. |
| openmetadata-integration-tests/src/test/java/org/openmetadata/it/bootstrap/TestSuiteBootstrap.java | Add accessor to retrieve the search-index retry worker managed object. |
| openmetadata-airflow-apis/tests/unit/test_operation_diagnostics.py | Adjust unit test stubs to align with new Airflow deletion path. |
| openmetadata-airflow-apis/tests/integration/operations/test_dag_lifecycle.py | New Airflow 3.x integration tests for versioned DAG deletion, invalid DAG deploy, concurrency. |
| openmetadata-airflow-apis/openmetadata_managed_apis/operations/deploy.py | Ensure deploy fails when DAG isn’t actually loaded; improve exception logging. |
| openmetadata-airflow-apis/openmetadata_managed_apis/operations/delete.py | Delegate DAG deletion to Airflow’s delete_dag to respect FK ordering and running-task rejection. |
| docs/index.md | Index new merge-queue recovery documentation. |
| docker/development/playwright-autopilot-mysql.sql | New SQL fixture for isolated AutoPilot MySQL source. |
| .github/workflows/populate-playwright-caches.yml | Adjust cache-warmer concurrency behavior (no cancel-in-progress). |
| .github/workflows/playwright-postgresql-e2e.yml | Use retry-capable artifact downloads; add normalization + native-evidence coverage requirement. |
| .github/workflows/playwright-e2e-reusable.yml | Use retryable artifact transport; run helper polling tests; extend diagnostics and execution status stamping. |
| .github/workflows/merge-queue-daily-report.yml | Grant actions: read for richer reporting. |
| .github/workflows/integration-tests-postgres-opensearch.yml | Rename retry artifact to avoid ghost-name collision; use retryable downloads. |
| .github/workflows/integration-tests-mysql-elasticsearch.yml | Rename retry artifact to avoid ghost-name collision; use retryable downloads. |
| .github/scripts/verify_playwright_coverage.py | Add native-evidence verification option and quarantine inventory accounting. |
| .github/scripts/tests/test_playwright_server_latency.py | New unit tests for bounded latency histogram behavior and merge semantics. |
| .github/scripts/tests/test_playwright_native_coverage.py | New unit tests for native-evidence coverage verification. |
| .github/scripts/tests/test_playwright_ci_planning.py | Update merge-group summary expectations to require execution evidence + integrity; add conflict test. |
| .github/scripts/tests/test_playwright_artifact_recovery.py | New unit tests for normalization/integrity rules around transport retries and reruns. |
| .github/scripts/tests/test_merge_queue_recovery_metrics.py | New unit tests for paginated checks and report aggregation behavior. |
| .github/scripts/test_classify_playwright_outcome.py | Add regression for raw first-attempt accounting (retries/skips). |
| .github/scripts/summarize_playwright_requests.py | Add bounded latency histograms per route + merge support. |
| .github/scripts/stop_playwright_fast_environment.sh | Ensure AutoPilot MySQL container is removed during teardown. |
| .github/scripts/start_playwright_fast_environment.sh | Start isolated AutoPilot MySQL fixture and export related env vars. |
| .github/scripts/start_playwright_autopilot_mysql.sh | New script to boot and health-check isolated MySQL fixture container. |
| .github/scripts/render_playwright_summary.cjs | Normalize artifacts, treat optional reporting failures as warnings, and emit server-traffic/latency summary. |
| .github/scripts/playwright_cache_fingerprint.py | Include new AutoPilot MySQL fixture inputs in cache fingerprint. |
| .github/scripts/normalize_playwright_artifacts.cjs | New execution artifact normalizer validating shard/commit/run/attempt identity and reconciling retries. |
| .github/scripts/merge_queue_metrics.py | Add paginated REST helpers, richer failure evidence, and report artifact reading (via gh api). |
| .github/scripts/merge_queue_daily_report.py | Expand daily report with failure details + Playwright report aggregation and formatting updates. |
| .github/scripts/evaluate_playwright_performance.py | Merge latency histograms across shards and emit richer performance metrics. |
| .github/scripts/classify_playwright_outcome.py | Add measurement fields (first-attempt vs retries), and surface coverage/integrity verification into output. |
| .github/playwright/impact-map.generated.json | Update generated impact map for changed/added Playwright coverage. |
| .github/actions/upload-artifact-with-retry/action.yml | New composite action for bounded upload recovery under a fresh name. |
| .github/actions/download-artifact-with-retry/action.yml | New composite action for bounded download recovery, including -retry fallback. |
Review details
- Files reviewed: 61/61 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
❌ UI Checkstyle Failed❌ Playwright - Guardrails + ESLint + Prettier + Organise ImportsEither a Playwright test file has linting/formatting issues, or a guardrail check failed: ESLint rule unit tests, a new guardrail violation, a stale suppression entry (its violation was fixed but the baseline was not pruned), a blanket 🔍 ESLint findings in this PR's files — 0 error(s), 228 warning(s)Errors block the build. Warnings do not yet — they are rules whose backlog is still 0 error(s), 228 warning(s) across 23 changed file(s).
All findings
… and 178 more. Run Fix locally (fast - only checks files changed in this branch): make ui-checkstyle-changed |
|
|
|
|
Marking as draft while splitting this ~150-commit / 571-file PR into smaller, independently mergeable PRs to escape the "race the queue" state where each merge cycle absorbs new main commits faster than CI can settle. Split PRs (opening in sequence):
More coming. Each split PR cherry-picks a self-contained commit from this branch and preserves @harshach as the git author. Once all splits land, this PR will be closed. |
|
Split PRs progress:
All three are |
|
Split PRs progress (6 opened, all
All 6 will need either |
|
Split PRs — batched update:
All commits authored by @harshach. Batch PR (#33830) groups small test-hardening fixes so CI runs once instead of per commit. |
|
We have merged the split PR with changes already mentioned PRs links here |



Describe your changes:
Fixes #33087
PRs could reach the merge queue with selected Playwright coverage, where full validation exposed shared-helper defects and backend races. Run the full suite on authorized PR pushes, repair those defects, and retain first-attempt failures without test retries or quarantine.
Type of change:
High-level design:
RUNNER_TEMP; source stays read-only and builds/browser checks run without network access. No alert suppression.pull_request_targetexecutes the workflow frommain; then synchronize this PR with main for a fresh validation.Tests run:
Unit tests
Backend integration tests
Ingestion integration tests
c3305dea56: all 41 tests passed in run 34487109427; the Sonar analysis discarded their coverage due to the base-workflow path rewritePlaywright (UI) tests
Fresh-checkout mount regression: reproduced Docker exit 125 with no core dependency/build directories; corrected preflight passes dependency installation, library build, and 15 browser-helper tests with zero retries against a Git-exported checkout
After the main merge: 124 planning tests, 117 lint-rule tests, Playwright lint, and discovery of 4,574 instances pass. The revised container preflight passes a clean dependency install, library build, and 15 browser-helper tests; runtime isolation probes pass
The 50-repetition results and full Maven build below were recorded at
56a4fcc4da, before the latest main mergeLinux Playwright 1.57: 15 browser-helper scenarios × 50 repetitions = 750 passes in 1.6 minutes, three workers, zero retries
All 15 visual scenarios × 50 repetitions = 750 passes in 8.7 minutes against the current-source local Docker stack, three workers, zero retries; only two affected baselines refreshed, with unchanged thresholds
Full Maven distribution build passed in 5:05; isolated component-library preflight build passed in 7 seconds
Local Select/ComboBox and slider reproductions
Full discovery: 4,571 configured test instances, no collection errors
Java/UI formatting and license checks pass. No new Playwright type diagnostic signatures: 165 current versus 166 on main
The full GitHub run on the updated commit is pending. The merge of main includes #33079 and its previously missing
DataInsightsExtension; a fresh Collate compatibility run is pending. The stored-procedure read-after-delete failure observed in #32919 still needs deterministic cache-race reproduction.Operational acceptance remains 50 affected full-scenario repetitions on GitHub under normal concurrency, cold and warm, with zero retries; then 20 complete consecutive merge-group validations and monitoring of the next 100. The local visual repetitions reuse one seeded environment; they do not establish complete-suite or cold/warm GitHub acceptance. No 100% first-pass or throughput improvement is claimed yet.
UI screen recording / screenshots:
No visual design change. Browser reproductions and CI trace evidence are documented in the audit.
Checklist:
The PR is not yet safe to merge because the online-status rewrite removes deterministic regression coverage, and two earlier blocking findings remain outstanding.
Findings
Summary
This PR substantially expands required Playwright coverage and repairs CI, fixture, backend, ingestion, and UI races exposed by full-suite execution.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR PR[Authorized PR update] --> Plan[Discover and shard full Playwright inventory] Plan --> PG[PostgreSQL suites] Plan --> RDF[RDF suites] Plan --> Visual[Visual suites] Plan --> Access[Data-access suites] PG --> Evidence[Normalize native execution evidence] RDF --> Evidence Visual --> Evidence Access --> Evidence Evidence --> Verify[Validate coverage and first-attempt results] Verify --> Summary[Required Playwright summary] MG[Merge-group commit] --> Native[Run full native validation] Native --> EvidenceReviews (38) · Last reviewed commit: "chore(playwright): auto-refresh impact-m..."