Repository navigation
Fixes #38991: lineage column-matrix, per-type pipeline/export and canvas metadata-filter ITs; tag the tests they replace - #38992
chirag-madlani wants to merge 3 commits into
Conversation
…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>
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>
Code Review ✅ Approved 🟢 Low risk 1 closed / 1 findingsThese 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 closedClosed: Quality: Outer ignoreExceptions() retries failed exports, not just 404s
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
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.tsandLineageFilters.spec.tsis now tagged (116/116). Tests only; no product code changes.New ITs
LineageColumnMatrixIT#columnLineage_everySourceTargetPair: a@ParameterizedTestover 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:/getLineage;fromChildEntityFQN/toChildEntityFQNin the async CSV export;BaseEntityIT#testLineagePipelineExportAndRemoval: runs in the 15 entity ITs withsupportsLineage. 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;LineageResourceITreuses 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
javaIT('LineageColumnMatrixIT#columnLineage_everySourceTargetPair').javaIT('BaseEntityIT#testLineagePipelineExportAndRemoval').split. The browser half is the canvas and impact-analysis browser tests from Fixes #38916: lineage canvas as browser tests #38917 and Fixes #38788: lineage impact-analysis filters and counts as browser tests #38789; the Java half is the two newLineageFilterITmethods.playwright test --listThe 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.specandLineageExportPNGSnapshot.spec.Type of change:
Tests
LineageColumnMatrixIT64/64;LineageFilterIT10/10;LineageResourceIT#testExportLineageIncludesPipelineAndServiceColumns1/1;spotless:checkis clean, and the impact map is complete (*Lineage*ITcovers the new class).tsc:playwrightis clean, andlint:playwrightreports 0 errors. Prettier re-indented one test body after the new tag argument; the logic is unchanged.🤖 Generated with Claude Code