Repository navigation
fix(data-quality): point test suite pipeline entityFullyQualifiedName at the table - #33839
Conversation
… at the table `buildTestSuitePipelinePayload` wrote the test suite's own FQN into `sourceConfig.config.entityFullyQualifiedName`. Per testSuitePipeline.json that field is the FQN of "the entity to be tested" — the table — so the ingestion workflow looks the value up as a Table, gets nothing back, and silently falls through to the logical-suite path instead of running the basic suite. Take the table FQN from the context the builder already holds. Note it must be the raw FQN, not the `replaceAllSpacialCharWith_` result used for the display name, which would mangle a service name containing a space. Also narrow `PipelinePayloadContext.testSuite` to `Pick<TestSuite, 'id'>`: `id` is the only field read, and callers pass `TestCase.testSuite`, which is an `EntityReference` rather than a `TestSuite`. The previous cast was unsound and made the wrong field look available.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
| Count | Rule |
|---|---|
| 3 | openmetadata-imports/no-lower-layer-page-imports |
| 1 | openmetadata-imports/review-sequential-api-calls |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/DataQuality/AddDataQualityTest/components/TestCaseFormBody.tsx:68:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/DataQuality/AddDataQualityTest/components/TestCaseFormDrawer.tsx:39:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/DataQuality/AddDataQualityTest/components/TestCaseFormDrawer.tsx:235:9 |
openmetadata-imports/review-sequential-api-calls |
Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent |
| 🟡 | src/components/DataQuality/AddDataQualityTest/components/transformTestCaseFormData.ts:32:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
✅ Playwright Results — workflow succeededValidated commit ✅ 883 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 50m 4s ⏱️ Max setup 4m 37s · max shard execution 18m 15s · max shard-job elapsed before upload 21m 55s · reporting 6s 🌐 241.93 requests/attempt · 2.35 app boots/UI scenario · 17.08% common-shard skew Optimization targets still in progress:
How to debug locally |
`canCreatePipeline` is gated on `selectedTableFqn` — derived synchronously from the form field — but the form context only exposed `selectedTableData`, which is fetched from that FQN. The two diverge while the fetch is in flight, or permanently if it fails, and with no `table` prop both of the drawer's sources are then undefined. That left `entityFullyQualifiedName` omitted on the pipeline payload, and would also collapse `resolveEntityLink`'s three-source fallback to a single effective source, since the drawer fed all of them from the same fetched entity. Expose `selectedTableFqn` on `TestCaseFormContext` and prefer it at both call sites.
…-builder call The FQN regression test asserted on the mocked buildTestSuitePipelinePayload's arguments, so it would have stayed green on a wrong pipeline payload. Run the real builder for that one call and assert on the CreateIngestionPipeline body handed to addIngestionPipeline instead, with no table prop so the builder's table fallback cannot mask a missing FQN.
plan-playwright hard-fails when every planned test in a spec file falls through to FALLBACK_TEST_MS, because the planner then under-budgets the shard holding them and the merge-queue wrapper times out (#30812). Features/DataQuality/RunTestCase.spec.ts landed in #33499 on 22 Sep, a day after the last baseline refresh (run 35555097423, #33690), so its five tests have no history at all and every targeted plan that impact-maps a DataQuality source file trips the gate. The planner only reaches back through the last 50 successful runs for organic history, and the full run that did cover the spec is already past that window, so the checked-in baseline has to carry it. Durations are real, not estimates: taken from the coverage-complete full-mode run 35691431799 (4516/4516 accounted, no missing IDs), where all five tests passed on the first attempt. Only those passing results are recorded, with outcome: expected. The stable IDs match what `playwright test --list` discovers today, so the planner weights them by ID rather than falling back to the (file, title) identity match.
Code Review ✅ Approved🟡 Medium risk · Changes ingestion pipeline entity targeting and test-suite execution behavior. Corrects test-suite pipeline construction to identify the table under test rather than the test suite in OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
… at the table (#33839) (#33907) * fix(data-quality): point test suite pipeline entityFullyQualifiedName at the table `buildTestSuitePipelinePayload` wrote the test suite's own FQN into `sourceConfig.config.entityFullyQualifiedName`. Per testSuitePipeline.json that field is the FQN of "the entity to be tested" — the table — so the ingestion workflow looks the value up as a Table, gets nothing back, and silently falls through to the logical-suite path instead of running the basic suite. Take the table FQN from the context the builder already holds. Note it must be the raw FQN, not the `replaceAllSpacialCharWith_` result used for the display name, which would mangle a service name containing a space. Also narrow `PipelinePayloadContext.testSuite` to `Pick<TestSuite, 'id'>`: `id` is the only field read, and callers pass `TestCase.testSuite`, which is an `EntityReference` rather than a `TestSuite`. The previous cast was unsound and made the wrong field look available. * fix(data-quality): prefer the raw form FQN over the fetched table entity `canCreatePipeline` is gated on `selectedTableFqn` — derived synchronously from the form field — but the form context only exposed `selectedTableData`, which is fetched from that FQN. The two diverge while the fetch is in flight, or permanently if it fails, and with no `table` prop both of the drawer's sources are then undefined. That left `entityFullyQualifiedName` omitted on the pipeline payload, and would also collapse `resolveEntityLink`'s three-source fallback to a single effective source, since the drawer fed all of them from the same fetched entity. Expose `selectedTableFqn` on `TestCaseFormContext` and prefer it at both call sites. * test(data-quality): assert the pipeline request body, not the payload-builder call The FQN regression test asserted on the mocked buildTestSuitePipelinePayload's arguments, so it would have stayed green on a wrong pipeline payload. Run the real builder for that one call and assert on the CreateIngestionPipeline body handed to addIngestionPipeline instead, with no table prop so the builder's table fallback cannot mask a missing FQN. * chore(playwright): seed the timing baseline for RunTestCase.spec.ts plan-playwright hard-fails when every planned test in a spec file falls through to FALLBACK_TEST_MS, because the planner then under-budgets the shard holding them and the merge-queue wrapper times out (#30812). Features/DataQuality/RunTestCase.spec.ts landed in #33499 on 22 Sep, a day after the last baseline refresh (run 35555097423, #33690), so its five tests have no history at all and every targeted plan that impact-maps a DataQuality source file trips the gate. The planner only reaches back through the last 50 successful runs for organic history, and the full run that did cover the spec is already past that window, so the checked-in baseline has to carry it. Durations are real, not estimates: taken from the coverage-complete full-mode run 35691431799 (4516/4516 accounted, no missing IDs), where all five tests passed on the first attempt. Only those passing results are recorded, with outcome: expected. The stable IDs match what `playwright test --list` discovers today, so the planner weights them by ID rather than falling back to the (file, title) identity match. (cherry picked from commit aa6f8c2)



Describe your changes:
fix #33840
buildTestSuitePipelinePayloadwrote the test suite's FQN intosourceConfig.config.entityFullyQualifiedNamewhen creating a TestSuite ingestion pipeline from thetest case drawer. Per
testSuitePipeline.json, that field is the FQN of "the entity to be tested,if we're working with a basic suite" — i.e. the table:
TestSuiteSource._get_table_entitylooks that value up as aTable, getsNoneback, and_iterthen silently falls through to
_process_logical_suite— the path meant for logical suites. The runusually still produces correct results, because the logical path recovers the table from each test
case's
entityLink, so this has been masked in practice.It stops being masked when the suite's
nameandfullyQualifiedNamediffer._process_logical_suiteresolves the suite via
get_by_name(..., fqn=config.source.serviceName), andserviceNameis thepipeline's
service.name. For a suite created byTestCaseRepository.getOrCreateTestSuite, name andFQN are the same string, so passing a name where an FQN is expected happens to work. Suites created by
older flows with a non-canonical name do not satisfy that, the lookup 404s, and the run fails with a
misleading
Test Suite not foundnaming an entity that exists.The correct value is already in the builder's context — it is what the display name is derived from.
It must be the raw FQN, not the
replaceAllSpacialCharWith_result, which would mangle a servicename containing a space.
Two secondary cleanups:
PipelinePayloadContext.testSuitenarrowed fromTestSuitetoPick<TestSuite, 'id'>.idis theonly field read, and callers pass
TestCase.testSuite, which is anEntityReference, not aTestSuite. The oldas TestSuite | undefinedcast inTestCaseFormDrawerwas unsound and madefullyQualifiedName/basicEntityReferencelook available when they are not. The narrower type nowmakes the regression fail to compile.
Not changed here: the ingestion-side silent fallthrough, and the fact that a
nameis passed where anfqnis expected. Both are worth addressing separately — this PR fixes the payload that starts it.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
entityFullyQualifiedNameis the table FQN, so the run takes the basic-suite path rather than the logical-suite fallback
selectedTable, falling back to thetableentityunmodified, while only the pipeline display name is sanitised
Unit tests
transformTestCaseFormData.test.ts(3 new cases inbuildTestSuitePipelinePayload)src/components/DataQuality/AddDataQualityTest/— 9 suites / 179 tests passcompiles without an explicit
any)Backend integration tests
Ingestion integration tests
Playwright (UI) tests
createIngestionPipeline, which is asserted in unit tests.Manual testing performed
entityFullyQualifiedNameset to a suite FQNand a suite whose
namediffers from itsfullyQualifiedName— reproduced the failure(
Table not found→Processing logical test suite→Test Suite not found)entityFullyQualifiedNameset to the table FQN — resolves on the basic path(
Using existing test suite for table ...), workflow succeedsyarn jest src/components/DataQuality/AddDataQualityTest/— all greenwarnings are present on the base branch unchanged
tsc --noEmit— no new errors in the changed filesUI screen recording / screenshots:
Not applicable — no visual change.
Checklist:
🤖 Generated with Claude Code
The PR appears safe to merge; the previous table-FQN and regression-test findings are resolved, with no new actionable defects identified.
Summary
This PR corrects basic test-suite pipeline creation so the source configuration targets the table FQN rather than the suite FQN.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Selected table form field] --> B[selectedTableFqn] B --> C[TestCaseFormDrawer] C --> D[Resolve test-case entity link] C --> E[Build test-suite pipeline payload] E --> F[entityFullyQualifiedName = table FQN] F --> G[Basic-suite ingestion path]Reviews (4) · Last reviewed commit: "chore(playwright): seed the timing basel..."