Repository navigation
test(playwright): batch seven queued flaky-spec stabilizations into one merge-queue entry - #30699
Merged
Merged
Conversation
After deleting the last tag, ClassificationDetails renders an EmptyPlaceholder instead of the Table, so the old not.toContainText assertion on [data-testid="table"] always failed. Assert the empty placeholder is visible instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- persona.ts: wait for confirmation modal, scope waitForResponse to PATCH
/personas/{id}, and move it right before the "Yes" click so the response
race in set/remove default persona cannot fire before the listener attaches.
- DashboardDataModelClass.create: on 409 from the dashboard service POST,
GET the existing service and reuse it so a rare uuid collision or leftover
service no longer breaks the LineageFilters beforeAll.
- CustomizeDetailPage.spec: wrap the add-widget click + modal visibility in
expect.toPass so a click that lands on a still-settling grid tile is
retried until add-widget-modal actually appears.
- TableClass.visitEntityPage: reconstruct the FQN from service/db/schema/
entity names and refetch by name when fullyQualifiedName is missing, so
we never fall through to the flaky global-search visitEntityPage path.
The previous retry checked add-widget-modal's visibility, but that testid lands on the antd .ant-modal-root wrapper which is 0x0 — toBeVisible on it always reports hidden, so expect.toPass would keep clicking (breaking the modal state) until the 30s timeout. Check widget-info-tabs (the tabbed content inside the modal) instead.
…revious one triggerTestSuitePipelineAndWaitForSuccess polled /pipelineStatus?limit=1 and accepted whatever the latest record was, with no notion of which run it had triggered. Airflow queues a DAG asynchronously, so ~2s after the trigger the previous run's `success` record is still the latest one: the helper returned immediately and callers went on to assert against stale results. In CI run 30439518657 that surfaced as "Resolving incident & re-run pipeline" reading an incident status of "Resolved" where it expected "New" — the poll had read run 178b5ca8 (success, recorded 2m17s before the trigger) while the new DAG was still queued, so no new failure or incident existed yet. Snapshot the run recorded before triggering, then poll until a record with a different runId (or a later timestamp) reaches success. Also fold the two fixed 5s "deployment settling time" sleeps into a bounded retry of the trigger request itself: the orchestrator rejects a trigger until the workflow is registered, so retry until it is accepted rather than paying 5s on every call. Co-Authored-By: Claude <noreply@anthropic.com>
… new run isNewRun required BOTH a different runId AND a later-or-equal timestamp. `runId` is optional in the generated PipelineStatus schema, so when neither the baseline nor the polled record carries one, `undefined !== undefined` is always false and the conjunction can never become true: the poll spins on Queued until the 300s timeout and the test fails — the opposite of the reliability this helper is meant to provide. Either signal alone is sufficient, and both still reject the stale record (same runId, same timestamp), so use a disjunction with a strict timestamp comparison. Reported by gitar-bot and greptile on #30655. Co-Authored-By: Claude <noreply@anthropic.com>
…ility changes IncidentManager.spec.ts was reachable in the impact map from only one mapping, whose sources are ingestion/** and the Java pipeline resources. Changing the Data Quality UI, the DQ backend, the observability pages, or the Playwright helper the spec itself depends on selected neither it nor most of the DQ suite, so PRs in this area went green without ever exercising it. That is how #30654 survived: the fix touched only playwright/utils/incidentManager.ts, and the Ingestion lane ran one unrelated canary test. Extend the Data Quality mapping to the whole Data Quality + Observability surface and add the specs that belong to it: - sources: DataQuality/IncidentManager/Profiler/Alerts components, the DataQuality/IncidentManager/TestSuite*/Observability*/AlertDetails pages, the DQ + alerts rest clients and utils, playwright/utils/incidentManager.ts, resources/dqtests/**, resources/events/** + events/subscription/**, the TestCase*/TestSuite/TestDefinition repositories, and schema/tests/** - specs: Features/IncidentManager.spec.ts, Flow/ObservabilityAlerts.spec.ts, Flow/NotificationAlerts.spec.ts Two globs in the mapping were dead and had never matched anything: pages/TestSuite/** (no such directory) and resources/tests/** (the real path is resources/dqtests/**), so the backend DQ surface had no coverage at all. Verified with select_playwright_tests.py: each of the four representative paths above now selects IncidentManager.spec.ts for the Ingestion project and none did before; an unrelated Glossary change still does not select it; every glob in the mapping resolves to at least one real file. Co-Authored-By: Claude <noreply@anthropic.com>
The spec used sample_data.ecommerce_db.shopify.fact_sale as its "unconfigured" fixture. 6e5bc80 (#30367) added a native test suite for that table, so the data quality and observability rows now render status badges instead of setup CTAs and their testids no longer exist. Create both fixtures over the API in beforeAll instead, reuse TableClass.visitEntityPage in place of the hand-rolled page.goto helper, and assert the badge branch of the data quality row, which nothing covered before. Co-Authored-By: Claude <noreply@anthropic.com>
…lationSettings tests Parallel workers accumulate relation types that exceed PAGE_SIZE_BASE (15), pushing target rows to page 2+. The edits, deletes, and locks tests were failing because they looked only at the first page. Added findRowAcrossPages helper that navigates Next Page until the target testId is visible, then each affected test calls it before interacting with the row. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… race
isVisible() is instantaneous — after clicking Next Page and awaiting the
network response, it reads the old rows before React flushes the new ones,
causing the loop to skip the target page and throw.
Switch to waitFor({ state: 'visible', timeout: 3_000 }) which retries
until the element appears or the timeout expires, giving React time to
render before we decide to advance.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
#30617 moved every `@import-export` spec into a dedicated ImportExport project and grepInvert-ed them out of chromium/Basic/Ingestion/Reindex, but impact-map.json was never taught about that lane. The DQ/observability mapping's `Features/DataQuality/**/*.spec.ts` glob still swept TestCaseImportExportBasic and TestCaseImportExportE2eFlow in and requested them under the four lanes that can no longer run them, so build_playwright_shards.py aborted with "Playwright selectors matched no runnable tests". This surfaced here because this branch added playwright/utils/incidentManager.ts to that mapping's sources, which is what makes the mapping fire. selector_matches_unit is any-of-projects, so adding the lane resolves the two tagged specs without pulling the other 24 DataQuality specs into it. Co-Authored-By: Claude <noreply@anthropic.com>
default-persona-confirmation-modal is the antd .ant-modal-root wrapper (0x0), so expect(modal).toBeVisible() always reports hidden and the step hits the 15s timeout. Wait for the inner Yes button instead — its visibility is the real signal that the modal is rendered and clickable.
The subdomains tab label reads its count from an ES aggregation filtered
by parent.fullyQualifiedName.keyword. With 60 subdomains created in a
parallel Promise.all, ES was frequently still indexing when the test
opened the UI, so the tab rendered a stale count (as low as 1) and
toContainText('60') hit the 15s timeout. Poll the same aggregation the
UI uses until the total reaches 60 (up to 60s) before releasing the
beforeAll, and fail fast with a clear message if indexing lags.
…racing it
Both failure modes come from the same thing: the test asserts on state that is
served from Elasticsearch, which is eventually consistent, using assertions
that cannot cause a refetch.
The CI access log for run 30523193756 shows it exactly. The sub-domain is
created at 08:21:52 (POST /api/v1/domains -> 201). The count query runs at
08:21:52 and again at 08:21:58 when the domain page mounts. Then no further
search query is issued until the afterAll delete at 08:22:14 — the entire
15s assertion window elapsed with zero refetches, so
`expect(tab).toContainText('61')` could only re-read a DOM frozen at 60.
The retry then failed differently but from the same cause: Playwright re-runs
beforeAll on retry, so a brand-new domain was created (60 POSTs at 08:22:17)
and selectDomain immediately searched for it before it was indexed. The row
never appeared, so the click auto-waited until the 180s test timeout.
Changes:
- checkSubDomainCount, alongside the existing checkAssetsCount and
checkDataProductCount, asserts the tab count on the `count` testid and
reloads between attempts so the one-shot count query is actually re-issued.
- selectDomain retries the search until the row is visible before clicking,
rather than clicking into a list that may not contain it yet. This is the
root cause of the retry hang and is latent for every spec that creates a
domain and immediately selects it.
- Drop the inline cleanup that looked up a hardcoded "NewTestSubDomain".
SubDomain generates `PW%Subdomain.<uuid>`, so that lookup has 404'd since
the test was added; afterAll already deletes the parent recursively.
- Replace the magic 9/60/61 literals with SUBDOMAIN_COUNT / PAGE_SIZE.
Both waits are driven through the UI — no search-index queries or field names
are duplicated into the test layer.
Co-Authored-By: Claude <noreply@anthropic.com>
…I check" This reverts commit 08ce53b.
…empty DAG Airflow 3.x accepts a trigger (HTTP 200) even when its dag-processor has not serialized the freshly deployed DAG yet. That trigger creates an empty DagRun that finishes in ~0.03s, runs no task, and never writes a pipelineStatus, so the helper polled the full 300s and IncidentManager timed out in CI. The refactor's "retry until the trigger is accepted" assumption does not hold on Airflow 3.x: the trigger is accepted regardless of serialization state, so a rejected-trigger retry never fires and the empty run slips through. CI (slow dag-processor) loses this race; a fast local box usually wins it. Reproduced deterministically on a real Airflow 3.2.2 stack: the first trigger of a fresh DAG materializes no run within 60s (empty run, no status), and a plain re-trigger of the now-serialized DAG runs for real and reaches success in ~6s. Fix: after triggering, wait up to 60s for a genuinely new run to surface; if none does (the empty-run signature, since it writes no status), re-trigger up to three times, then poll for success. A run that never materializes now fails loudly instead of hanging. Validated: full IncidentManager spec 10/10, 0 flaky, against real Airflow 3.2.2. Co-Authored-By: Claude <noreply@anthropic.com>
…right test (#30680) * fix(ui): center domain/data-product list row items & fix DP detail header title width (#30510) * fix(ui): vertically center domain & data product list row items The AI-mode Domain and Data Product list tables rendered their name cells with `<Box align="start">` (align-items: flex-start), pinning the icon + name to the top of the row instead of centering it — most visible when the name wraps to multiple lines. Use `align="center"` on the name/Domains cells so the icon lines up with the middle of the (single- or multi-line) name. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ui): don't reserve badge space in the DP header when the status badge is empty DataProductsDetailsPage passed `badge={statusBadge}` to EntityHeader. A truthy `badge` applies `w-max-full-200` (max-width: calc(100% - 200px)) to the title column — reserving 200px even when EntityStatusBadge renders nothing (the common `Unprocessed` status), which squeezed the title into a narrow box and forced long names to wrap/break mid-word. The Domain header passes no badge and is unaffected. Move `statusBadge` into `suffix` (next to the LearningIcon): it still renders inline when a status exists, but no longer reserves 200px, so the title uses its natural width. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci(playwright): give the domain impact-map mapping the Reindex lane The domain/dataProduct mapping selects SearchSeparation `*Domain*` specs (e.g. DomainRenamePrefixCascade.spec.ts) via its `**/*Domain*.spec.ts` glob, but assigned only [chromium, Basic, DomainIsolation]. Those specs are testIgnored from chromium/Basic and only run under the `Reindex` project, so build_playwright_shards.py found no runnable unit and aborted plan-playwright with "matched no runnable tests" on every PR touching Domain/DataProduct UI sources. Add `Reindex` to the mapping's projects so the spec resolves to its real lane and runs. Side-effect is contained: of this mapping's specs, only the SearchSeparation one yields a Reindex unit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Fixed the knowledge center translations (#30521) * Fixed the knowledge center translations * minor fix * playwright fix * lint fix * ci(playwright): move import/export specs into a dedicated lane (#30617) * ci(playwright): move import/export specs into a dedicated lane Add an `import-export` planner lane for the ~61 minutes of bulk import/export test content that currently rides in the chromium lane. Chromium is running at (or just under) its shard-budget ceiling in merge_queue; peeling this content off gives the common lane real headroom instead of relying on the 20-min bump alone. - Planner: add `ImportExport` project → `import-export` lane, 2 workers, same (1, 8) shard bounds as ingestion / search-rbac. - playwright.config.ts: new `ImportExport` project (grep `@import-export`, `fullyParallel: true`, `workers: 2`, entity setup + teardown). Chromium's `grepInvert` excludes `@import-export` when the dedicated lane is on, mirroring the `@ingestion` pattern. - Workflow: set `PW_DEDICATED_IMPORT_EXPORT: "true"` on discover + seed-state steps. - Tag 12 specs with `@import-export` (TestCaseImportExport{Basic,E2eFlow}, ODCSImportExport{,Permissions}, GlossaryImportExport, BulkImport{, WithDotInName}, MetricBulkImportExportEdit, BulkEditImportPermissions, CSVImportWithQuotesAndCommas, SearchExport, LineageExportPNGSnapshot). Verified locally: - `pytest .github/scripts/tests/test_playwright_ci_planning.py` — 56 passed. - `playwright test --list --project=ImportExport` enumerates all 12 files. - `playwright test --list --project=chromium` — 0 import/export leaks; 3637 tests remain in chromium. * ci: fix ui-checkstyle formatting on tagged import/export specs Running the full ui-checkstyle-changed chain (organize-imports → eslint --fix → prettier --write) re-indents the describe bodies of the specs whose top-level test.describe I converted to multi-line when adding the @Import-Export tag. Local prettier --check accepted both single-line and multi-line describe forms, but CI's checkstyle wants the prettier-canonical form (body at 4 spaces relative to file when the arrow function opens on its own line). * ci(playwright): include ImportExport project in discovery command Greptile P1: when the dedicated lane is on, chromium's grepInvert excludes @Import-Export specs, but the planner discovery command didn't request the ImportExport project — so those specs were absent from the plan entirely and would never run in CI. Add --project=ImportExport to the discovery list, matching the Ingestion / DomainIsolation / SearchRBAC / etc pattern. * ci(playwright): restore fork PR support on knowledge-graph workflow (#30561) * ci(playwright): restore fork PR support on knowledge-graph workflow Mirrors the pattern #30485 established on playwright-postgresql-e2e.yml to the RDF/knowledge-graph workflow, which #30310 also regressed to pull_request-only. Fork PRs against RDF/ontology paths were previously short-circuited by the `!fork` check on the second job — they built the distribution but silently skipped the entire Playwright run, so RDF work from external contributors ran zero E2E coverage. Changes: - Add pull_request_target trigger with the same paths filter used by pull_request so the scope stays RDF-focused. - Partition the concurrency group by github.event_name so pull_request and pull_request_target runs on the same PR don't cancel each other. - Introduce a `gate` job that waits for Team Label reconciliation on fork synchronize events, reads the reconciled live PR labels via the GitHub API, and computes a should_run decision: workflow_dispatch → run draft → skip labeled event, label != "safe to test" → skip same-repo PR + pull_request → run fork PR + pull_request_target + reconciled "safe to test" label → run everything else → skip - Wire `build` and `playwright-rdf-postgresql` through `needs: gate` with a `needs.gate.outputs.should_run == 'true'` guard. Removes the now-redundant `!github.event.pull_request.head.repo.fork` short- circuit from the RDF job. - Fix the two `actions/checkout@v7` steps to explicitly check out `github.event.pull_request.head.sha` under pull_request_target (base.sha is wrong for testing fork code) and set `allow-unsafe-pr-checkout: true` — the gate already restricted this event to safe-to-test-labelled forks, and the build/test steps consume the fork tree inside docker containers. The workflow doesn't have a playwright-summary job or a named required-check consumer, so no name-collision rename (#30476) is needed here. `pull_request` vs `pull_request_target` runs on the same PR each report their own separate check-run status; gate-skipped runs finish trivially with `should_run=false` and don't perform any docker work. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * add merge_group trigger + name-collision facade for required check Per @chirag Madlani review — two follow-up gaps confirmed: 1. This workflow is required in the merge queue. 2. `Playwright RDF (Knowledge Graph + Ontology)` is a required branch-protection check. Add merge_group support: - Add `merge_group:` to on: triggers. - Add merge_group to the gate's always-run case: workflow_dispatch | schedule | merge_group. Add name-collision handling (same pattern #30476 established for playwright-postgresql-e2e.yml): - Rename the existing execution job's display name from `Playwright RDF (Knowledge Graph + Ontology)` to `RDF Playwright execution` — internal identity only, no longer the required check name. - Add a `playwright-rdf-summary` job with `if: always() && !cancelled()` that publishes a dynamic check name: gate succeeds, should_run=true → `Playwright RDF (Knowledge Graph + Ontology)` gate fails (crash/cancelled) → `Playwright RDF (Knowledge Graph + Ontology)` + hard fail labeled event, non-safe-to-test → `... (label ignored)` gate succeeds, should_run=false → `... (skipped)` - Three steps inside the summary job: "Guard against missing gate decision" — fails loudly when gate itself did not produce a valid should_run "Report gate-skipped run as green" — no-op success for legitimate skips (redundant sibling event, fork without safe-to-test) "Fail on upstream failure" — propagates build / execution job failures under the required check name so the PR fails visibly Without this, both events on a same-repo PR would publish check-runs under `Playwright RDF (Knowledge Graph + Ontology)`; the pull_request_target sibling finishes in ~15s with a green skip while the real pull_request run is still compiling, making the PR appear mergeable before any RDF test executes — the same class of hole #30476 fixed for playwright-summary on postgresql-e2e. No branch-protection update needed — the required check name is preserved end-to-end; only its publisher moved from the underlying execution job to the always-running facade. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * resolve entity schema path from the classpath scan instead of a hardcoded map (#30618) * Fixes 30533: derive entity schema subdirectory from the classpath scan instead of a hardcoded map * gitarbot feedback: make duplicate entity type schema resolution independent of classpath scan order * fix(settings): don't log an unset optional setting as an error (#28960) (#30625) * fix(ui): keep GenericTab's widget grid inside its container (#30622) react-grid-layout derives each grid item's `left` and `width` in pixels and rounds the two independently. Their exact values always sum to the container width, but each rounding can add just under half a pixel, so the right edge of the last column can land 1px outside the container. That pixel is the widget card's right border. An ancestor that scrolls turns it into a horizontal scrollbar; one that clips swallows the border outright. On entity detail pages both happen, because the active tab pane scrolls vertically and CSS promotes the cross axis to `auto` once one axis is not `visible`. Give the grid 1px of horizontal containerPadding. That pulls the exact right edge in to `width - 1`, which the rounding -- bounded at 1px, since the two exact edges sum to the width and each rounding adds under half a pixel -- can never exceed. Across widths 600-2400 and every column split that reaches the right edge, the last column escapes the container at 1575 of 1801 widths today and at none of them with this change. For the 6 + 2 split the entity detail pages actually use, it is one width in four. Adjusting `margin` instead does not work: it is the gutter between items and sits inside the sum that equals the container width, so changing it only moves which widths collide (still 175/701 at every integer value from 0 to 24). * Improve bulk export action stats (#30615) * Improve bulk export action stats * Add auto opened when the export jobs is success * nit * fix stylling * nit * addressed comments * fix lint checks * nit * fix failing unit test * Fixes #30117: hide soft-deleted owners on the Test Suite detail page (#30520) * Fixes #30117: keep soft-deleted owners in PATCH base to fix index crash Editing owners failed with "array item index out of range" when an owner user was soft-deleted. Detail pages fetch with include=all (soft-deleted owner present) and compute a positional JSON Patch, but the server loaded the PATCH base with NON_DELETED, which dropped that owner and shrank the array so the positional op referenced an index past the end. The dangling ownership also could not be removed. Both patch() entry points now load the original with a RelationIncludes that keeps the entity at NON_DELETED but resolves owners/experts/reviewers/ followers with ALL, so the positional patch stays in range and the ID-based updateOwners diff removes the dangling OWNS row. Adds two integration tests reproducing the reported crash (deleted owner sorting last) and the silent wrong-owner removal (deleted owner in the middle). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Fixes #30117: tolerate existing soft-deleted owners on PATCH; generic test The first pass loaded the PATCH base with owner/expert/reviewer/follower refs resolved as ALL. That fixed the positional "array item index out of range" crash on owner removal, but getValidatedOwners (which runs on every PATCH) re-validates the whole owner list against NON_DELETED, so ANY edit (e.g. a description change) on an entity carrying a dangling soft-deleted owner then failed with 404 "user instance ... not found". - Narrow the base override to owners only. Experts/reviewers/followers are validated on update against NON_DELETED and would hit the same 404; they are left unchanged as a separate follow-up, per the issue. - Add getValidatedOwnersForPatch: retain owners already assigned in the base (a soft-deleted user is still a valid, existing assignment) and validate only newly added owners against NON_DELETED, so a deleted user still cannot be freshly assigned. - Add a generic BaseEntityIT test so every owner-supporting entity is covered, plus a TestSuite regression test asserting a non-owner edit succeeds and preserves the soft-deleted owner. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Fixes #30117: address review - retain authoritative owner refs; document tradeoff - getValidatedOwnersForPatch: retained (already-assigned) owners now use the authoritative ref from the base (resolved with ALL, so names are populated) instead of the client-supplied ref, and the sort uses a null-safe comparator. Prevents a possible NPE/500 when a client sends a minimal (id+type, no name) ref for an already-assigned owner, and keeps response metadata authoritative. - Document the known trade-off on PATCH_ORIGINAL_INCLUDES: callers that diff owners against a NON_DELETED view (a GET sending owners:non-deleted) can misalign against the ALL base; the representation-aware fix is the follow-up the issue flags as a design call. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Fixes #30117: hide soft-deleted owners on Test Suite page (align with data assets) Revert the server-side PATCH-base change. Loading the base with owners=ALL fixed the Test Suite crash but regressed the 17+ data-asset detail pages that fetch owners with includeRelations=owners:non-deleted: a positional owner remove computed against the filtered array removed the wrong owner when applied to the longer ALL base. A single server base cannot align with both client owner representations, so the patch itself must carry it - a separate design call the issue flags. Fix the reported crash where the divergence actually is: the Test Suite detail page was the only owner-editing page fetching owners with include=all and no includeRelations override. getTestSuiteByName now defaults owners/experts to non-deleted like every data-asset page, so a soft-deleted owner is not surfaced and the owner-edit diff stays aligned with the server's NON_DELETED PATCH base - no "array item index out of range". Showing and removing soft-deleted owners remains the issue's separate design call. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Fixes #30117: honor includeRelations on Test Suite getByName (frontend fix was a no-op) getTestSuiteByName sends includeRelations=owners:non-deleted, but the Test Suite getByName endpoint - unlike getById and every other entity's getByName (e.g. TableResource) - did not accept the param, so the server still resolved owners with include=all and surfaced the soft-deleted owner. The owner-edit crash therefore remained. Wire includeRelations through getByName (same pattern as getById / TableResource.getByName), and add an IT that proves it: an include=all fetch still surfaces the soft-deleted owner, but includeRelations=owners:non-deleted hides it. Verified RED (without the wiring the assertion fails - owner still surfaced) and GREEN. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Sid <30566406+siddhant1@users.noreply.github.com> * Fix glossary export playwright (#30585) * fix flaky searchIndexApplication * fix flaky glossary terms popover playwright * revert unwanted changes --------- Co-authored-by: Shrabanti Paul <shrabantipaul@Shrabantis-MacBook-Pro.local> Co-authored-by: Rohit Jain <60229265+Rohit0301@users.noreply.github.com> * ISSUE #30151 - Incident Grouping Endpoint (#30367) * feat: added incident group endpoint * feat: added owner, status, assignee, severiuty and bucket for client metrics * feat: added owner, status, assignee, severiuty and bucket for client metrics * empty commit for CI trigger * feat: remove n+1 in entity ref. retrieval when resolving group references * feat: ignore optional argumewnt static check error * feat: address comments and fix failing integration tests * feat: revert pre existing migrations to 2.0 * feat: address first pass review * feat: move endpoint data to summary table * feat: address comments * feat: address comments * chore: fix migration * fix Column Bulk Operations tag & glossary dropdowns not selectable in the edit drawer (#30634) * fix Column Bulk Operations tag & glossary dropdowns not selectable in the edit drawer * fix lint checks * fix(test): correct EditAll-deny test assertions in EntityPermissions When EditAll is in a DENY rule it subsumes all Edit* operations via matchesBySubsumption(), so EditTier/EditOwners/EditCertification buttons are not visible even when those operations have explicit ALLOW rules. Updated assertions from toBeVisible() to not.toBeVisible() and unskipped the test to reflect actual backend deny-first policy semantics. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Sid <30566406+siddhant1@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Co-authored-by: Vishnu Jain <121681876+Vishnuujain@users.noreply.github.com> Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com> Co-authored-by: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com> Co-authored-by: shrabantipaul-collate <shrabanti.paul@getcollate.io> Co-authored-by: Shrabanti Paul <shrabantipaul@Shrabantis-MacBook-Pro.local> Co-authored-by: Teddy <teddy.crepineau@gmail.com>
siddhant1
enabled auto-merge
July 30, 2026 11:53
siddhant1
added this pull request to the merge queue
Jul 30, 2026
siddhant1
added a commit
that referenced
this pull request
Aug 4, 2026
… 4 that never ran (#30839) * test(glossary): make selectActiveGlossary selector robust (#27566) Backport of dd73bd9 to 1.13. Prerequisite for re-enabling GlossaryNavigation's empty-state test, which 1.13 skips with the note "selectActiveGlossary not selecting the correct glossary". The old selector was `page.getByRole('menuitem', { name }).first()` — unscoped and non-exact, so it matched any menuitem on the page whose accessible name merely *contained* the target, and `.first()` then silently picked whichever came first in the DOM. With two glossaries sharing a name prefix the test drove the wrong one. Scope it to the `glossary-left-panel` sidebar, require an exact label match, and wait for the item rather than racing the panel's render. The label the sidebar renders is displayName, so the UI create helper now fills display-name and the call sites pass displayName. Verified every selectActiveGlossary call site on 1.13 already passes a displayName, so the stricter match has no other call site to break. (cherry picked from commit dd73bd9) Co-Authored-By: Claude <noreply@anthropic.com> * test(e2e): re-enable domain-rename, glossary empty-state and header-permission specs on 1.13 Backports the un-skips from #30451 (64c33fc) and #30699 (507caf7), which main and 2.0 have both carried since end of July. These four tests are the whole 1.13-only half of the nightly skip list — every other entry is skipped on all three branches. - EntityRenameConsolidation "Domain - rename then update description" and "Domain - multiple rename + update cycles": pure un-skip, no body change, same as main. - GlossaryNavigation "should show empty state when glossary has no terms": the assertion targeted the "No Glossary Term found" row, which only a non-matching status filter renders — an empty glossary renders a placeholder instead. main asserts its EmptyPlaceholder testid; 1.13 still routes through ErrorPlaceHolder and picks NO_DATA over CREATE (glossaryTermStatus is null for a glossary, not Approved), so assert no-data-placeholder here. Depends on the preceding selectActiveGlossary backport. - EntityPermissions "EditTier, EditOwners, EditCertification allowed but EditAll denied": the body contradicted its own title, asserting the edit buttons were visible. getPrioritizedEditPermission is byte-identical on 1.13 and main, so the corrected not.toBeVisible() assertions hold here too. Co-Authored-By: Claude <noreply@anthropic.com> * test(glossary): drop four status-filter tests that were never implemented These four arrived skipped in #25428 (`12d85f310f`), the same commit that created the file, and have never executed once in five months. They are not regressions and not flakes — they are a specification for behaviour the backend does not have. Each carried its own reason inline from birth: "Requires backend to return nested terms as flat results when filtered". That is accurate. The glossary term listing sends `directChildrenOf` and `entityStatus` on the same request (`glossaryAPI.ts` `getFirstLevelGlossaryTermsPaginated`), and the backend ANDs them (`GlossaryTermResource` `.addQueryParam("directChildrenOf", …).addQueryParam("entityStatus", …)`), so a nested term is eliminated by the hierarchy filter before its status is ever considered. No status value can surface a grandchild as a flat result. Confirmed by running them: on a real 1.13 stack all four fail at ~17.5s (the locator timeout — the term genuinely never renders), while every sibling test that asserts only root-level terms passes. `glossaryAPI.ts` and `GlossaryTermResource` are byte-identical across 1.13, main and 2.0, so the outcome is the same everywhere. Removed rather than left skipped: five bare `test.skip`s surface on every nightly triage list as if they were failures, and cost review attention each time someone asks why the glossary suite is red. If flat subtree filtering is built, these are better rewritten against the real API than resurrected from a five-month-old skip. No fixtures are orphaned — `basicChild`, `multiChild`, `deepTerms` and the rest are still used by the surviving tests. Prettier and eslint clean. Co-Authored-By: Claude <noreply@anthropic.com> (cherry picked from commit 4a7aa34) (cherry picked from commit f099c7c) * test(glossary): re-enable change filter while expanded on 1.13 Verified passing at 2.8s on a real 1.13 stack built from this branch. Born skipped in #25428 claiming "re-filtering expanded state isn't fully implemented" — that shipped since and nobody revisited the marker. It is the one stale skip in this file, as opposed to the four genuinely backend-blocked ones removed in the preceding commit. It only surfaced on the nightly skip list as a separate entry because the file is `test.describe.configure({ mode: 'serial' })`: when `filter by child status` fails, Playwright reports every later test in the file as skipped without executing it. With those four gone the cascade cannot occur, so this test now actually runs. Co-Authored-By: Claude <noreply@anthropic.com> * style: fix indentation on the re-enabled EntityPermissions test fb2837e landed `headerPermTest(` with five leading spaces instead of four, which fails `prettier --check` and would block the UI Checkstyle job. The assertion change in that commit is correct and identical to what this branch already carried — verified passing on a real 1.13 stack (3.0s). Only the indentation is corrected here. Co-Authored-By: Claude <noreply@anthropic.com> * test(glossary): re-enable Term should stay approved on 1.13 Closes the last gap between this branch and #30843, so 1.13 lands the same glossary state as main and 2.0 in a single merge — no post-merge cherry-pick of #30843 onto 1.13 is needed, and none should be attempted: the other two pieces of #30843 (the four removals and the change-filter re-enable) are already on this branch and would conflict. Measured passing on a real 1.13 stack (1.9m). Caveat worth carrying into review: **#29931 is not on 1.13**. That PR fixed the approve/reject condition scheme — duplicate edges and stuck resolves in the approval workflow — which is the documented cause behind this test's original skip ("BE approval-workflow reverts it"). `APPROVE_CONDITION` and `getExpectedResultForActiveTask` are both absent here, so 1.13 passes this test without the root fix. On main it passed 3/3 (1.0m, 58.6s, 58.3s) with the fix; on 1.13 it has one measured pass without it, and the failure mode is a load-dependent race that shows up under CI concurrency rather than on an idle machine. If it flakes in nightlies, backport #29931 rather than re-skipping. Note that is not a casual cherry-pick — it touches 21 files including bootstrap/sql/migrations/native/2.0.0/{mysql,postgres}/schemaChanges.sql, and a trial cherry-pick onto 1.13 conflicts in 14 of them. Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
harsh-vador
added a commit
that referenced
this pull request
Aug 18, 2026
…llback (#31696) * test(e2e): stop persona specs asserting the system default persona fallback Backports the persona-specific parts of #31063, #30699, #30203 and #30732 to 1.13, where these fixes were never cherry-picked. The user default-persona chip renders user.defaultPersona, and the backend resolves an unset user default to the SYSTEM default persona (UserRepository.getDefaultPersona). Two specs asserted the "no default persona" placeholder, which therefore only appears when nothing else has set a system default — global state neither test owns. - PersonaFlow.spec.ts "Set default persona for team": asserts the team persona is not auto-applied (the actual invariant) instead of the placeholder text, with a visibility check first so the negative assertion cannot pass against a chip that never rendered. - Users.spec.ts persona removal: scopes the default-tag and radio assertions to the user's own personas instead of every persona-label in the dropdown. - PersonaFlow.spec.ts "Default persona setting and removal flow": moves the shared module-level UserClass into the describe, adds an afterAll teardown for the user and both personas, and closes the user browser context in a finally, so this describe no longer leaks a system default persona into sibling specs. - persona.ts: waits for the confirmation modal's "Yes" button (the modal testid is on the 0x0 .ant-modal-root wrapper, so toBeVisible always reports hidden) and scopes the response wait to PATCH /api/v1/personas/{id} so an in-flight GET cannot satisfy it. The server-side persona search step present in main is deliberately not backported: it depends on the /api/v1/personas/search endpoint from #30469, which 1.13 does not have. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * test(e2e): require the persona label to render before asserting on it Both negative assertions run against a filtered locator that is allowed to match nothing, so they pass when the fixture persona is absent from the dropdown entirely — the test would go green without ever checking the persona whose default was removed. Assert the label is visible first, matching the guard already used on the default persona chip in PersonaFlow.spec.ts. --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Sep 11, 2026
ahnazary
pushed a commit
to ahnazary/OpenMetadata
that referenced
this pull request
Sep 11, 2026
…metadata#33188) verifyDeletedOwnerNotVisible opened the dropdown with a forced click, suppressing no-force-option with "element obscured by overlay". force: true skips the receives-events check, which is the one that would have waited that overlay out. The call lands right after page.reload(), while the right panel loader is still mounted, so the click is swallowed, the popover never opens, and the unbounded waitFor underneath it hangs to the 60s test timeout — surfacing as "Target page, context or browser has been closed". openOwnerSelector already exists in this class and does it correctly: clear the loaders, scroll into view, assert visible and enabled, plain click, then assert both the tabs container and the role tab within a bounded 10s. Two other methods already use it. Route the remaining two through it as well — addOwnerWithoutValidation bypassed it with a plain click and the same missing loader wait. Both the helper and the forced click landed in the same PR (open-metadata#30699), so this is drift rather than a deliberate exception. Side effect worth having: a dropdown that genuinely fails to open now reports a 10s assertion naming the missing element instead of a 60s timeout blamed on a closed browser. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
Batches seven already-reviewed Playwright stabilization PRs into a single merge-queue entry so they land in one queue cycle instead of seven.
The merge queue on
maincurrently admits only 5 concurrent speculative builds (max_entries_to_build: 5), and each build runs the full 32-shard Playwright suite. The seven PRs below were all sitting in the queue (or blocked before it) with zero CI dispatched — they would each have had to wait for a build slot, and each merge ahead of them invalidates and rebuilds everything behind. Landing them as one entry gets the whole set of flake fixes ontomainin a single pass.Rolled up (each merged verbatim, no behavioural edits):
The combined diff was verified file-by-file to be exactly the union of the seven PR diffs.
One conflict, resolved deliberately —
AssetHealthWidget.spec.ts. #30681 (already onmain) re-pointedEMPTY_TABLE_FQNfrom onesample_datatable to another. #30671 removes the hardcodedsample_dataFQNs altogether and seeds its own tables viaTableClass, so that constant no longer exists. #30671's version is kept in full; the file is byte-identical to #30671's head. This intentionally supersedes #30681's one-line change with the root-cause fix.Once this merges, #30627, #30628, #30648, #30655, #30671, #30672 and #30685 can be dequeued and closed.
Type of change:
High-level design:
N/A — no product code. Test-only: 14 Playwright files plus
.github/playwright/impact-map.json(from #30655). Noopenmetadata-ui/.../src/or backend changes.Tests:
Use cases covered
Test-infrastructure only; no user-visible behaviour changes. Each constituent fix targets a spec that was flaking on
main:sample_datacontents (fix(ui): make the Asset Health widget E2E spec seed its own tables #30671)Unit tests
N/A — Playwright E2E changes only.
Playwright / E2E tests
This PR is the E2E change. The merge-queue run executes the full 32-shard suite, which exercises every spec touched here.
Manual test steps
Not applicable — CI is the verification surface.
Checklist:
UI Checkstyle(eslint + prettier + organize-imports) run locally over all 14 changed Playwright files: 0 errors, no diff producedCo-authored-by: Harsh Vador harsh.vador@somaiya.edu
Co-authored-by: Rohit Jain 60229265+Rohit0301@users.noreply.github.com
Co-authored-by: Chirag Madlani 12962843+chirag-madlani@users.noreply.github.com
Co-authored-by: Shailesh Parmar shailesh.parmar.webdev@gmail.com
Co-authored-by: anuj-kumary anujf0510@gmail.com
Co-authored-by: Sid 30566406+siddhant1@users.noreply.github.com
Greptile Summary
Stabilizes queued Playwright tests by tightening response matching and UI waits, adding eventual-consistency polling and pagination helpers, seeding isolated asset-health fixtures, and improving ingestion-pipeline run detection.
Confidence Score: 5/5
The PR appears safe to merge, with no concrete changed-code defect identified in the reviewed Playwright stabilization paths.
The changes consistently replace timing assumptions and shared fixtures with explicit response checks, bounded convergence, isolated setup, and cleanup while preserving the intended test workflows.
Important Files Changed
Reviews (1): Last reviewed commit: "Merge PR #30671 into batch" | Re-trigger Greptile
Context used: