Skip to content

Fixes #38991: lineage column-matrix, per-type pipeline/export and canvas metadata-filter ITs; tag the tests they replace - #38992

Open
chirag-madlani wants to merge 3 commits into
mainfrom
test/lineage-it-matrix
Open

chirag-madlani wants to merge 3 commits into
mainfrom
test/lineage-it-matrix

Conversation

@chirag-madlani

Copy link
Copy Markdown
Collaborator

Fixes #38991

Describe your changes:

Wave 2, PR 4 of the lineage migration (open-metadata/openmetadata-collate#8315). Adds the Java ITs for the lineage API behaviour that only Playwright still checked, then tags those Playwright tests. Every test in DataAssetLineage.spec.ts and LineageFilters.spec.ts is now tagged (116/116). Tests only; no product code changes.

New ITs

  • LineageColumnMatrixIT#columnLineage_everySourceTargetPair: a @ParameterizedTest over the spec's 8×8 type matrix (64 invocations). The types are table, container, topic, API endpoint, dashboard (via its charts), data model, search index and ML model. Each pair:
    • adds the column mapping;
    • reads it back from /getLineage;
    • finds the row with fromChildEntityFQN/toChildEntityFQN in the async CSV export;
    • removes the mapping by re-saving the edge without it, as the UI does;
    • deletes the edge and checks it is gone.
  • BaseEntityIT#testLineagePipelineExportAndRemoval: runs in the 15 entity ITs with supportsLineage. It adds an edge with a pipeline and checks it is stored. It checks the CSV row has the pipeline name and both ends' service name and type. Then it deletes the edge.
  • LineageFilterIT#getLineage_metadataFilters_keepsPathToMatch / #impactAnalysis_metadataFilters_returnOnlyMatches: Domains, Owners, Tag and Tier filters on a leaf behind a non-matching node. The canvas keeps root → mid → leaf; impact analysis returns only the leaf.
  • it/util/LineageCsvExport: runs the async lineage export; LineageResourceIT reuses it. For reviewers: the server keeps only the last 5 export results per user, so under concurrent admin ITs a finished job's result can be released before download (404). The helper re-runs the export only on that 404. A failed job, any other status, or a wrong CSV still fails the test.

Tags

playwright test --list Before After
Tests in the two specs with a migrated tag 36 116 of 116

The per-type pipeline IT uses a same-type edge, so every type appears as both source and target, but the full cross product isn't run. Platform lineage and PNG export stay in PlatformLineage.spec and LineageExportPNGSnapshot.spec.

Type of change:

  • Improvement

Tests

  • On mysql-elasticsearch, 105 tests, 0 failures:
    • LineageColumnMatrixIT 64/64;
    • LineageFilterIT 10/10;
    • LineageResourceIT#testExportLineageIncludesPipelineAndServiceColumns 1/1;
    • both lineage methods in all 15 entity ITs.
  • The only change since that run makes the export retry narrower (404 only). It compiles.
  • spotless:check is clean, and the impact map is complete (*Lineage*IT covers the new class).
  • Playwright: the format chain is idempotent, tsc:playwright is clean, and lint:playwright reports 0 errors. Prettier re-indented one test body after the new tag argument; the logic is unchanged.

🤖 Generated with Claude Code

chirag-madlani and others added 2 commits November 27, 2026 18:23
…metadata-filter ITs; tag the lineage tests they replace

- LineageColumnMatrixIT#columnLineage_everySourceTargetPair: 8x8 parameterized
  (table, container, topic, apiEndpoint, dashboard, dashboardDataModel,
  searchIndex, mlModel). Per pair: PUT a column mapping, read it from
  /getLineage, find it in the async CSV export, remove it by re-saving the
  edge (as the UI does), delete the edge.
- BaseEntityIT#testLineagePipelineExportAndRemoval (runs in the 15 entity ITs
  with supportsLineage): edge with a pipeline, pipeline stored on the edge,
  CSV export row carries pipelineName and both ends' service name/type, delete.
- LineageFilterIT#getLineage_metadataFilters_keepsPathToMatch and
  #impactAnalysis_metadataFilters_returnOnlyMatches: Domains, Owners, Tag and
  Tier on the leaf behind a non-matching mid. Owner moves out of
  leafOnlyFilters into the new set.
- LineageCsvExport util: the async lineage export, re-run when the server has
  already released the result (per-user cap of 5 retained exports), which
  concurrent ITs otherwise hit as a 404. LineageResourceIT reuses it.
- Playwright: 62 column pairs and 14 non-Table pipeline/export variants tagged
  migratedTo.javaIT; the 4 metadata-filter tests tagged migratedTo.split.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chirag-madlani
chirag-madlani requested a review from a team as a code owner November 27, 2026 12:55
@chirag-madlani
chirag-madlani requested review from karthicksharan and a balanced review from Copilot November 27, 2026 12:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

The outer wait polls only until search has indexed the edge; a failed job
or a non-404 download now fails the test instead of being retried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 13:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@gitar-bot

gitar-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk 1 closed / 1 findings

These changes add and retag integration and browser tests, with no production-code changes, so impact is confined to test coverage and harness execution.

Adds a 64-invocation Java IT for column lineage across the 8×8 entity-type matrix, pipeline/export/removal checks in 15 entity ITs, and canvas/impact-analysis metadata-filter ITs, then tags the 116 Playwright lineage tests they replace. No open findings remain.

✅ 1 closed
Closed: Quality: Outer ignoreExceptions() retries failed exports, not just 404s

📄 openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/BaseEntityIT.java:4162-4173 📄 openmetadata-integration-tests/src/test/java/org/openmetadata/it/util/LineageCsvExport.java:73-80
The PR states that a lineage export is retried only on a 404 from a released result, and that a failed job or any other status still fails the test. LineageCsvExport.exportOnce keeps that rule: awaitJobStatus throws on a FAILED job and assertEquals(HTTP_OK, …) throws on any other status. But assertExportedPipelineRow wraps edgeRows in an Awaitility loop with .ignoreExceptions(), and that ignores any throwable, AssertionError included. So for every entity type, a failed job or a 500 response just starts another full export and keeps looping for up to 5 minutes, until a ConditionTimeoutException hides the real cause. Every retry is also another concurrent admin export, and concurrent exports are what get results released in the first place. Fix: drop .ignoreExceptions() from the outer await so that loop only covers index lag (empty rows). If one specific transient error really needs a retry, list it with .ignoreException(SomeType.class).

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lineage column-matrix, per-type pipeline/export and canvas metadata-filter ITs (Wave 2)

2 participants