Repository navigation
fix: harden integration tests under parallel CI - #30060
Conversation
(cherry picked from commit e0cfd95)
❌ 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 |
🔴 Playwright Results — 1 failure(s), 26 flaky✅ 4527 passed · ❌ 1 failed · 🟡 26 flaky · ⏭️ 96 skipped
Genuine Failures (failed on all attempts)❌
|
…hardening # Conflicts: # openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/search/TestCaseStaleDefinitionReindexIT.java
|
Code Review ✅ ApprovedHardens integration tests by implementing shared resource locks, bounded asynchronous assertions, and improved namespace cleanup. Includes durable production fixes for entity cache invalidation and lazy lineage builder initialization. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
…ng-review Resolved SystemResourceIT.java conflict by adopting main's canonical-driven fieldValueBoost assertions (from #30060), which validate against the packaged searchSettings.json instead of hardcoded factors and therefore hold for this branch's retuned signal values. Co-Authored-By: Claude Fable 5 <[email protected]>



Summary
Root cause
The integration profile runs more than 15,000 tests concurrently in one JVM against one OpenMetadata server. Several tests mutated process-wide or server-wide state without shared coordination, while others assumed asynchronous search, workflow, cache, or bulk work was immediately visible. Two product paths also left cache or lineage state uninitialized after valid lifecycle transitions.
Impact
The PostgreSQL/OpenSearch profile now completes at bounded parallelism without database saturation, shared-state lost updates, dangling async-bulk children, or timing-dependent search and workflow assertions. The production changes make entity mutation cache invalidation and lineage initialization durable outside the test suite as well.
Validation
mvn spotless:apply -pl :openmetadata-integration-testsmvn -DskipTests clean install -pl :openmetadata-integration-tests -ammvn -pl :openmetadata-service -Dtest=EntityRepositoryRestoreTest test— 16 tests passedmvn verify -pl :openmetadata-integration-tests -Ppostgres-opensearch -Djunit.jupiter.execution.parallel.config.strategy=fixed -Djunit.jupiter.execution.parallel.config.fixed.parallelism=8— 15,041 tests, 0 failures, 0 errors, 1,387 skippedgit diff --checkGreptile Summary
This PR hardens integration tests for parallel CI and updates a few production paths. The main changes are:
Confidence Score: 5/5
This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "test: sanitize copied Elasticsearch temp..." | Re-trigger Greptile
Context used (3)