Repository navigation
[2.0] Fixes #39774: Request the schema table's test summary only for its own test suite (#39776) - #39783
Conversation
…n test suite (#39776) * Request the schema table's test summary only for its own test suite SchemaTable called getTestCaseExecutionSummary(table?.testSuite?.id) on every table FQN change. For a table without a test suite, or before the table's testSuite field had loaded, that sent the request without testSuiteId, so the server summarised every test suite and the page used that aggregate as the table's column test summary. It also made AssetHealthWidget.browser.test.tsx flaky: the unscoped request could land before its 'no test suite, nothing to summarise' assertion. Fetch only when the table has a test suite, refetch when that suite changes, and clear the summary otherwise. * Cover the schema table refetching its test summary when the test suite changes (cherry picked from commit 9904563)
❌ 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 |
Code Review ✅ Approved 🟡 Medium riskGuarding the schema summary request with the table's test-suite ID prevents catalog-wide summaries; suite changes could otherwise show stale or missing column test results. Backport of the 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 |
Describe your changes:
Fixes #39774
Backport of #39776 to
2.0. Cherry-picked with-x. The component change applies cleanly.SchemaTable.test.tsxconflicted because two unrelated tests onmaindon't exist on2.0; I kept only the newcolumn test summaryblock and added theuseGenericContextimport that2.0's test file lacks.SchemaTable(the table page's Schema tab) calledgetTestCaseExecutionSummary(table?.testSuite?.id)on every table FQN change. For a table without a test suite, or before itstestSuitefield loaded, the request went out withouttestSuiteId. The server then summarised every test suite in the catalog, and the tab used that aggregate as the table's column test summary, which is an expensive catalog-wide query on each untested table page.2.0has the same unguarded call asmainhad.The fix:
Type of change:
High-level design:
N/A — backport of a small bug fix.
Tests:
Which test layer and why
Jest at the HTTP boundary (
rest/testAPImock): the behaviour is which request the component sends.Use cases covered
Unit tests
SchemaTable.test.tsxadds thecolumn test summaryblock (3 tests), the same as Fixes #39774: Request the schema table's test summary only for its own test suite #39776.main, Fixes #39774: Request the schema table's test summary only for its own test suite #39776's suite passed 26/26, and the no-test-suite test fails without the fix. I didn't run this branch's Jest locally because its dependencies (antd,ts-jest) differ frommain's install; the PR's CI runs it.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
Checked that
2.0'sSchemaTable.component.tsxhad the identical unguardedgetTestCaseExecutionSummary(table?.testSuite?.id)call with[tableFqn]deps, and that the backported component diff matches #39776 line for line.UI screen recording:
Not applicable — bug fix with no visible UI change.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code