Skip to content

[2.0] fix(test): isolate Java CI fixtures - #32558

Merged
yan-3005 merged 2 commits into
2.0from
fix/2.0-ci-test-failures
Sep 3, 2026
Merged

yan-3005 merged 2 commits into
2.0from
fix/2.0-ci-test-failures

Conversation

@yan-3005

@yan-3005 yan-3005 commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

No linked issue — this is a CI-only test-isolation fix for failures reported on #32535.
Supersedes #32555, which was closed after moving the branch from a fork to the upstream repository.

The failures recur on unrelated 2.0 PRs, so they are branch-level test problems rather than
regressions in #32535:

  • Scope IncidentPaginationIT pagination requests to the table created by the fixture. Parallel
    integration 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.
  • Make the process-global TableRepository mock in LineagePermissionFilterTest preserve the real
    search-index and vector-embedding policy. A bare Mockito mock returned false for both policy
    hooks 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:

  • Its MySQL/Elasticsearch integration report has the same IncidentPaginationIT failure fixed
    here.
  • Its Python 3.10 unit job and two integration shards failed while importing Airflow because
    pygtrie 2.6.0 uses typing.Self. That was fixed on 2.0 by merged PR Backport #32378 to 2.0: cap pygtrie below 2.6 so import airflow works on Python 3.10 #32432 / commit
    59b9b4c0d5916bc5280c18a596c5d33241d15f92, which is already an ancestor of this branch.
  • Its remaining Python 3.11 integration job received runner shutdown signal 143 and has no test
    failure to fix in the repository.

Type of change:

  • Bug fix

High-level design:

N/A — test-isolation fixes only.

Tests:

Use cases covered

  • Incident pagination asserts against only the 11 incidents created by its fixture.
  • Elasticsearch and OpenSearch embedding tests remain valid after
    LineagePermissionFilterTest has registered its repository mock in the same JVM.

Unit tests

  • Existing tests cover the changed behavior.
  • Forced the CI-sensitive execution order:
mvn -pl openmetadata-service test -Dsurefire.runOrder=reversealphabetical \
  -Dtest='LineagePermissionFilterTest,OpenSearchBulkSinkBehaviorTest,ElasticSearchBulkSinkBehaviorTest'

Result: 45 tests run, 0 failures, 0 errors, 0 skipped.

Backend integration tests

  • Updated the existing IncidentPaginationIT regression coverage.
  • Ran the actual MySQL + Elasticsearch parallel-lane integration test locally:
mvn -pl openmetadata-integration-tests verify -Pmysql-elasticsearch \
  -DintegrationTests.lane=parallel -Dit.test=IncidentPaginationIT

Result: 8 tests run, 0 failures, 0 errors, 0 skipped.

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable (no UI changes).

Manual testing performed

Not applicable; covered by the ordered unit suite and integration-test compilation above.

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added or updated tests and listed them above.
  • Existing tests cover the exact CI failures being fixed.

Parallel incident tests must not share global search results, and the lineage mock must preserve table indexing policy across the JVM.

Refs #32535
@yan-3005
yan-3005 requested a review from a team as a code owner September 3, 2026 11:01
@yan-3005 yan-3005 added backend skip-pr-checks Bypass PR metadata validation check labels Sep 3, 2026
@github-actions github-actions Bot added the safe to test Add this label to run secure Github workflows on PRs label Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@yan-3005 yan-3005 removed the skip-pr-checks Bypass PR metadata validation check label Sep 3, 2026
@gitar-bot

gitar-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Isolates Java CI test fixtures to fix recurring failures on the 2.0 branch. IncidentPaginationIT now scopes pagination requests to its fixture table, and LineagePermissionFilterTest preserves the real search-index and vector-embedding policy in its mock repository. No issues found.

Options

Display: compact → Showing less information.

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 was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants