Repository navigation
Conversation
Parallel incident tests must not share global search results, and the lineage mock must preserve table indexing policy across the JVM. Refs open-metadata#32535
Code Review ✅ ApprovedIsolates Java CI test fixtures to prevent parallel test interference. Scopes OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
❌ 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 |
|
Closing in favor of an upstream-owned branch PR, as requested. |
Describe your changes:
No linked issue — this is a CI-only test-isolation fix for failures reported on #32535.
The failures recur on unrelated
2.0PRs, so they are branch-level test problems rather thanregressions in #32535:
IncidentPaginationITpagination requests to the table created by the fixture. Parallelintegration tests can no longer change the page contents or total through unrelated incidents.
This backports the applicable test hardening from ISSUE #30151 - Incident Grouping Endpoint #30367.
TableRepositorymock inLineagePermissionFilterTestpreserve the realsearch-index and vector-embedding policy. A bare Mockito mock returned
falsefor both policyhooks and made later Elasticsearch/OpenSearch sink tests return before exercising their mocks.
This backports the
2.0-applicable part of fix(test): keep global mock TableRepository registrations index-policy safe #32537.The failed test jobs on #32372 were audited as well:
IncidentPaginationITfailure fixedhere.
pygtrie 2.6.0usestyping.Self. That was fixed on2.0by merged PR Backport #32378 to 2.0: cap pygtrie below 2.6 soimport airflowworks on Python 3.10 #32432 / commit59b9b4c0d5916bc5280c18a596c5d33241d15f92, which is already an ancestor of this branch.failure to fix in the repository.
Type of change:
High-level design:
N/A — test-isolation fixes only.
Tests:
Use cases covered
LineagePermissionFilterTesthas registered its repository mock in the same JVM.Unit tests
Result: 45 tests run, 0 failures, 0 errors, 0 skipped.
Backend integration tests
IncidentPaginationITregression coverage.Result: 8 tests run, 0 failures, 0 errors, 0 skipped.
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
Not applicable; covered by the ordered unit suite and integration-test compilation above.
UI screen recording / screenshots:
Not applicable.
Checklist: