Skip to content

Fixes 34969: Correct inference rule inputs and materialize rules to a fixed point - #34970

Merged
harshach merged 9 commits into
mainfrom
refactor/rdf-inference-correctness
Oct 10, 2026
Merged

harshach merged 9 commits into
mainfrom
refactor/rdf-inference-correctness

Conversation

@harshach

@harshach harshach commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #34969
Fixes #34864

The materialized inference rules produced wrong or empty results on a real graph. Their inputs used predicates and literal forms the rules could not match, and the materializer ran each rule once per run, reading the other rules' stale output, so it never reached a fixed point and never retracted what a deleted premise had supported. This PR fixes the rule inputs, makes each run compute a fixed point from the stored graph, and adds the design document for moving reasoning into the Fuseki image, of which this is phase 0.

Type of change:

  • Bug fix

High-level design:

Five commits, reviewable one at a time:

  1. Design (docs/plans/2026-10-07-fuseki-native-reasoning.md). How OpenMetadata moves all inference into reasoner worker processes inside the openmetadata/fuseki image (owned HermiT build plus ELK for OWL, Jena ARQ for governance rules), the memory budget that keeps a worker out-of-memory away from Fuseki, snapshots and freshness, and nine phases. Fixes 34953: Remove the in-process RDF reasoner #34963 and this PR are phase 0.
  2. Rule inputs.
    • Column lineage endpoints reference the column IRIs the table projection mints, with the FQN kept in om:fromColumnFqn/om:toColumnFqn. Live UPSTREAM writes now project the edge's stored details through RdfRepository.refreshLineage, as a reindex does.
    • Entity domains are projected as om:belongsToDomain; om:domains is deprecated and removed on each entity's next write.
    • Concept realizations name the asset's role (om:hasPrimaryStore, om:hasDerivedAsset, om:hasReplica) beside om:mappedTo, sharing the role mapping with the ontology export.
    • The ontology matches the writer: om:ColumnLineage is declared, om:fromColumn/om:toColumn take it as their domain, and om:hasChildColumn is stored (RDF ontology/SHACL describe om:fromColumn/om:toColumn as column IRIs but the projection writes literals; om:hasChildColumn mislabelled InferenceOnly #34864).
  3. Fixed point.
    • A run empties every rule graph, then applies the enabled rules in passes over the union default graph until a pass derives nothing new, failing after 64 passes. A USING list would make Jena evaluate over an in-memory union, so emptying first is what limits each run to asserted input and its own output.
    • The dirty flag clears only if the new dirtyVersion column still holds the value the run read, so changes made during a run stay pending.
    • A cluster-wide lease (a separate key in rdf_reindex_lock) keeps runs from interleaving. A manual run gets 409; a scheduled run ends STOPPED. Deleting a rule never waits for a run, and the next run empties the graph of every rule ever stored.
    • The validator rejects rules that cannot converge (OPTIONAL, MINUS, NOT EXISTS, BOUND, subqueries, blank nodes, computed head values, nondeterministic functions). Stored rules that fail it are disabled with the reason in lastError. transitive-lineage-closure ships disabled. A requested ruleName only has to exist; the whole rule set always runs.
  4. Tests for the remaining fixed-point rule checks.
  5. Promotion during a run. A blue/green promotion marked rules dirty without bumping dirtyVersion, so a run that read the old dataset and finished after the flip cleared the flag while the new dataset lacked its output. Promotion now bumps it like every other invalidation.

Migrations (unreleased 2.1.0, both engines): add rdf_inference_rule.dirtyVersion (guarded ALTER on MySQL, IF NOT EXISTS on Postgres), and disable transitive-lineage-closure rows that pre-release builds seeded as enabled.

Behavior to note:

  • Existing graphs pick up the corrected triples on each entity's or edge's next write, or on a rebuild.
  • custom queries see an incomplete closure while a run is in progress, until phase 4 publishes snapshots.
  • Manual materialization returns 409 while another run holds the lease.

Alternatives considered:

  • Restricting rule input with USING: Jena builds an in-memory, deduplicating union of the named graphs.
  • Semi-naive evaluation inside OpenMetadata: deferred to the worker in phase 5, which runs over private snapshots.

Tests:

Use cases covered

  • PII on a table reaches its column through schema-tag inheritance, then follows column lineage two hops (live projection, real Fuseki).
  • Removing the source tag retracts everything it propagated on the next run.
  • Columns inherit their table's domain.
  • Rules converge regardless of order, recursive rules reach their fixed point, and a run that exceeds the pass budget fails and stays dirty.
  • A change during a run leaves rules dirty, and so does a blue/green promotion; clean rules rerun only when forced; disabled rules are emptied without evaluation.
  • A rule that fails fails the whole run and names itself, and the lease is always released.
  • A concurrent run gets 409; a run that loses its lease fails; the lease can't be released or renewed by another run.
  • Deleting a rule removes its conclusions, and a rule deleted during a run has its graph emptied by the next run.
  • Stored rules that no longer validate are disabled with the reason, which survives later runs.
  • Realization roles are written and replaced on update, including through the live write path.
  • The ontology contract test sees every written predicate declared and stored.

Unit tests

  • I added unit tests for the new/changed logic.
  • Added: InferenceRunLockTest, FixedPointRuleCheckTest, RdfRuleInputProjectionTest, RdfRealizationProjectionTest, and the in-memory fakes UnionDefaultGraphStore (a dataset whose default graph is the union of its named graphs, like tdb2:unionDefaultGraph), InMemoryInferenceRuleDAO and InMemoryInferenceRunLock.
  • Rewritten or extended: InferenceMaterializerTest, InferenceRuleRepositoryTest, InferenceRuleServiceTest, InferenceMaterializationQueryBuilderTest, InferenceRuleValidatorTest, InferenceRuleStarterPackTest, RdfInferenceRuleRowMapperTest, RdfLiveWriteTest, SparqlBuilderNestedFieldsTest, and the projection contract fixture.
  • JaCoCo, changed executable lines: 307/341 (90%). InferenceMaterializer 92/92, InferenceRuleRepository 44/44, FixedPointRuleCheck 82/82, InferenceRunLock 12/12, RdfRealizationMapper 16/16, RdfRepository 35/36. The uncovered lines are production wiring that only the integration tests reach: InferenceGraphStore.forRepository, InferenceRuleService.forRepository, RdfProjectionLoaders.defaults, the RdfResource factory, the GlossaryOntologyExporter delegation, and the RdfInferenceApp adapter.
  • Not covered by any test: RdfInferenceApp ending a scheduled run STOPPED when another run holds the lease. It is a Quartz adapter over the tested service.
mvn -B -nsu -pl common,openmetadata-spec,openmetadata-service -Pstatic-code-analysis \
  -Dtest='org.openmetadata.service.rdf.inference.*Test,RdfInferenceRuleRowMapperTest,RdfRuleInputProjectionTest,RdfRealizationProjectionTest,RdfLiveWriteTest,SparqlBuilderNestedFieldsTest,RdfOntologyContractTest,RdfPropertyMapperTest,RdfResourceTest,RdfInferenceGuardrailTest,RdfIndexAppTest' \
  -Dsurefire.failIfNoSpecifiedTests=false test jacoco:report     # 268 tests, 0 failures

Backend integration tests

  • Added RdfGovernanceRulesIT (the use cases above against the live projection and Fuseki) and RdfConceptRealizationIT, updated RdfInferenceMaterializationIT for whole-bundle runs and runs that meet the scheduled app, and added a promotion case to RdfBlueGreenRebuildIT, whose test database now applies every 2.1.0 statement for rdf_inference_rule. The new case failed on both databases before the fix and passes after it (28/28). The other three passed locally on MySQL + Elasticsearch and on Postgres + OpenSearch before rebasing onto current main.
  • The planner selects the full integration suite because of the migrations, so it runs in CI on this branch (both engines) and is recorded below once it passes.

Local Java test run: PASSED

  • Commit: db616c744553 (base origin/refactor/rdf-remove-in-process-reasoner)
  • Finished: 2026-10-08 21:37 UTC · 36.8 min
Step Scope Classes Tests Failed Skipped Min Result
unit openmetadata-mcp (6 classes), openmetadata-service (55 classes) 108 621 0 0 3.1 passed
integration mysql-elasticsearch · parallel passed in CI
integration mysql-elasticsearch · isolated passed in CI
integration mysql-elasticsearch · rdf passed in CI
integration cache-tests · parallel 8 39 0 1 5.4 passed
integration cache-tests · isolated 2 11 0 0 5.8 passed
integration postgres-opensearch · parallel passed in CI
integration postgres-opensearch · isolated passed in CI
integration postgres-opensearch · rdf passed in CI
integration postgres-opensearch · search-it 27 69 0 0 22.5 passed

Selected but produced no report: AIApplicationResourceIT (mysql-elasticsearch · parallel), AIContextMcpIT (mysql-elasticsearch · parallel), AIContextRestIT (mysql-elasticsearch · parallel), AIFrameworkControlResourceIT (mysql-elasticsearch · parallel), AIGovernancePolicyResourceIT (mysql-elasticsearch · parallel), APICollectionResourceIT (mysql-elasticsearch · parallel), APIEndpointResourceIT (mysql-elasticsearch · parallel), APIServiceResourceIT (mysql-elasticsearch · parallel), AccentInsensitiveSearchIT (mysql-elasticsearch · parallel), ActivePersonaHeaderIT (mysql-elasticsearch · parallel), ActivityResourceIT (mysql-elasticsearch · parallel), AgentExecutionResourceIT (mysql-elasticsearch · parallel), AlertBacklogMigrationIT (mysql-elasticsearch · parallel), AlertDefinitionIT (mysql-elasticsearch · parallel), AlertDeliveryIT (mysql-elasticsearch · parallel), AlertLedgerIT (mysql-elasticsearch · parallel), AlertReconcilerIT (mysql-elasticsearch · parallel), AlertRunningTickIT (mysql-elasticsearch · parallel), AlertTickOutcomesIT (mysql-elasticsearch · parallel), AlertTimeBudgetIT (mysql-elasticsearch · parallel), AlertTimetableIT (mysql-elasticsearch · parallel), AlertsRuleEvaluatorDeletedEntityIT (mysql-elasticsearch · parallel), AlertsRuleEvaluatorResourceIT (mysql-elasticsearch · parallel), AliasSwapConcreteRemovalIT (mysql-elasticsearch · parallel), AnnouncementResourceIT (mysql-elasticsearch · parallel), AppMarketPlaceResourceIT (mysql-elasticsearch · parallel), AppOperationPermissionsIT (mysql-elasticsearch · parallel), AppRunInterruptionIT (mysql-elasticsearch · parallel), AsyncSearchIndexConsistencyIT (mysql-elasticsearch · parallel), AttachmentListIT (mysql-elasticsearch · parallel), AuditLogResourceIT (mysql-elasticsearch · parallel), AutoAssignIncidentIT (mysql-elasticsearch · parallel), AutoCloseIncidentIT (mysql-elasticsearch · parallel), BotImpersonationIT (mysql-elasticsearch · parallel), BotResourceIT (mysql-elasticsearch · parallel), BulkAssetChangeEventUserIT (mysql-elasticsearch · parallel), BulkChangeEventIT (mysql-elasticsearch · parallel), BulkDeleteStaleIT (mysql-elasticsearch · parallel), BulkOperationPermissionsIT (mysql-elasticsearch · parallel), BulkOverrideMetadataIT (mysql-elasticsearch · parallel), BulkSourceHashFastPathIT (mysql-elasticsearch · parallel), CachedSearchLayerIT (mysql-elasticsearch · parallel), CapabilitiesIT (mysql-elasticsearch · parallel), ChangeSummaryResourceIT (mysql-elasticsearch · parallel), ChartResourceIT (mysql-elasticsearch · parallel), ChildFieldEdgeMatrixIT (mysql-elasticsearch · parallel), ChildFieldPaginationIT (mysql-elasticsearch · parallel), ClassificationResourceIT (mysql-elasticsearch · parallel), ColumnBulkUpdateIT (mysql-elasticsearch · parallel), ColumnChildTypesIT (mysql-elasticsearch · parallel), ColumnCustomPropertiesIT (mysql-elasticsearch · parallel), ColumnGridNewTypesIT (mysql-elasticsearch · parallel), ColumnGridResourceIT (mysql-elasticsearch · parallel), ColumnLineageReconciliationIT (mysql-elasticsearch · parallel), ColumnResourceIT (mysql-elasticsearch · parallel), ColumnSearchIndexIT (mysql-elasticsearch · parallel), ConfigResourceIT (mysql-elasticsearch · parallel), ContainerResourceIT (mysql-elasticsearch · parallel), ContextFileIT (mysql-elasticsearch · parallel), ContextMemoryAnchorIT (mysql-elasticsearch · parallel), ContextMemoryIT (mysql-elasticsearch · parallel), ContextMemoryLifecycleIT (mysql-elasticsearch · parallel), ContextMemorySourceEntityTiebreakIT (mysql-elasticsearch · parallel), ContextMemoryStatusMigrationIT (mysql-elasticsearch · parallel), ContinuousMigrationIT (mysql-elasticsearch · parallel), ConversationResourceIT (mysql-elasticsearch · parallel), CreationAuditMigrationIT (mysql-elasticsearch · parallel), CsvAsyncJobResourceIT (mysql-elasticsearch · parallel), DashboardDataModelResourceIT (mysql-elasticsearch · parallel), DashboardResourceIT (mysql-elasticsearch · parallel), DashboardServiceResourceIT (mysql-elasticsearch · parallel), DataAccessRequestValidationIT (mysql-elasticsearch · parallel), DataContractPermissionIT (mysql-elasticsearch · parallel), DataContractResourceIT (mysql-elasticsearch · parallel), DataInsightAggregationIT (mysql-elasticsearch · parallel), DataInsightAliasReconciliationIT (mysql-elasticsearch · parallel), DataInsightChartResourceIT (mysql-elasticsearch · parallel), DataInsightSystemChartResourceIT (mysql-elasticsearch · parallel), DataInsightsEnricherBehaviorIT (mysql-elasticsearch · parallel), DataProductDomainMigrationIT (mysql-elasticsearch · parallel), DataProductResourceIT (mysql-elasticsearch · parallel), DataQualityDimensionMigrationIT (mysql-elasticsearch · parallel), DataQualityDimensionPropagationIT (mysql-elasticsearch · parallel), DataQualityLineageIT (mysql-elasticsearch · parallel), DataRetentionAppIT (mysql-elasticsearch · parallel), DatabaseHierarchyIT (mysql-elasticsearch · parallel), DatabaseResourceIT (mysql-elasticsearch · parallel), DatabaseSchemaResourceIT (mysql-elasticsearch · parallel), DatabaseServiceResourceIT (mysql-elasticsearch · parallel), DatabaseSmokeIT (mysql-elasticsearch · parallel), DbTuneIT (mysql-elasticsearch · parallel), DeepCopyBenchmarkIT (mysql-elasticsearch · parallel), DirectoryResourceIT (mysql-elasticsearch · parallel), DispatchScenariosIT (mysql-elasticsearch · parallel), DocStoreResourceIT (mysql-elasticsearch · parallel), DomainAssetsColumnExclusionIT (mysql-elasticsearch · parallel), DomainBulkAssetsDryRunIT (mysql-elasticsearch · parallel), DomainIsolationIT (mysql-elasticsearch · parallel), DomainRecreateSameNameIT (mysql-elasticsearch · parallel), DomainResourceIT (mysql-elasticsearch · parallel), DriveFileUploadIT (mysql-elasticsearch · parallel), DriveServiceResourceIT (mysql-elasticsearch · parallel), EmailFirstIdentityIT (mysql-elasticsearch · parallel), EnricherBulkVsHistoryPathEquivalenceIT (mysql-elasticsearch · parallel), EntityCacheInvalidationIT (mysql-elasticsearch · parallel), EntityCacheMemoryIT (mysql-elasticsearch · parallel), EntityCursorOffsetIT (mysql-elasticsearch · parallel), EntityDeleteTaskCleanupIT (mysql-elasticsearch · parallel), EntityHardDeletionAtomicityIT (mysql-elasticsearch · parallel), EntityHistoryPaginationIT (mysql-elasticsearch · parallel), EntityLifecycleStagesIT (mysql-elasticsearch · parallel), EntityNameIndexIT (mysql-elasticsearch · parallel), EntityProfileResourceIT (mysql-elasticsearch · parallel), EntityRelationshipCleanupIT (mysql-elasticsearch · parallel), EntityShapeBaselineIT (mysql-elasticsearch · parallel), EntityStatusWorkflowOwnershipIT (mysql-elasticsearch · parallel), EntitySubtreeAtomicityIT (mysql-elasticsearch · parallel), EntityTransactionBoundaryIT (mysql-elasticsearch · parallel), EntityUpdateLockOrderIT (mysql-elasticsearch · parallel), EntityUtilValidateEntityReferenceIT (mysql-elasticsearch · parallel), EventSubscriptionBatchProcessingIT (mysql-elasticsearch · parallel), EventSubscriptionBatchUpsertIT (mysql-elasticsearch · parallel), EventSubscriptionResourceIT (mysql-elasticsearch · parallel), FeedAccessAuthzIT (mysql-elasticsearch · parallel), FileResourceIT (mysql-elasticsearch · parallel), FolderIT (mysql-elasticsearch · parallel), FolderResourceIT (mysql-elasticsearch · parallel), GlossaryCsvRelationTypesIT (mysql-elasticsearch · parallel), GlossaryRdfImportIT (mysql-elasticsearch · parallel), GlossaryResourceIT (mysql-elasticsearch · parallel), GlossaryTermInheritedReviewerApprovalIT (mysql-elasticsearch · parallel), GlossaryTermMoveApprovalIT (mysql-elasticsearch · parallel), GlossaryTermRealizationIT (mysql-elasticsearch · parallel), GlossaryTermRelationAdvancedIT (mysql-elasticsearch · parallel), GlossaryTermRelationEdgeCasesIT (mysql-elasticsearch · parallel), GlossaryTermRelationEdgeIT (mysql-elasticsearch · parallel), GlossaryTermRelationFixesIT (mysql-elasticsearch · parallel), GlossaryTermRelationIT (mysql-elasticsearch · parallel), GlossaryTermRelationSettingsIT (mysql-elasticsearch · parallel), GlossaryTermRelationSettingsPermissionsIT (mysql-elasticsearch · parallel), GlossaryTermRelationUsageIT (mysql-elasticsearch · parallel), GlossaryTermRelationsIT (mysql-elasticsearch · parallel), GlossaryTermResourceIT (mysql-elasticsearch · parallel), IncidentGroupsIT (mysql-elasticsearch · parallel), IncidentPaginationIT (mysql-elasticsearch · parallel), IncidentTaskIntegrationIT (mysql-elasticsearch · parallel), IncidentTaskNotificationIT (mysql-elasticsearch · parallel), IndexTemplateIT (mysql-elasticsearch · parallel), IndexingLimitsIT (mysql-elasticsearch · parallel), IngestionPipelineAgentTypeIT (mysql-elasticsearch · parallel), IngestionPipelineLogStreamIT (mysql-elasticsearch · parallel), IngestionPipelineLogStreamingResourceIT (mysql-elasticsearch · parallel), IngestionPipelineOwnerInheritanceIT (mysql-elasticsearch · parallel), IngestionPipelineProgressStreamIT (mysql-elasticsearch · parallel), IngestionPipelineResourceIT (mysql-elasticsearch · parallel), IngestionPipelineSortIT (mysql-elasticsearch · parallel), InnoDbDeadlockReportLoggerTest (mysql-elasticsearch · parallel), IntakeFormResourceIT (mysql-elasticsearch · parallel), K8sEnvVarSerializationIT (mysql-elasticsearch · parallel), K8sOMJobOperatorIT (mysql-elasticsearch · parallel), K8sPipelineEnvVarIT (mysql-elasticsearch · parallel), KnowledgeCenterIT (mysql-elasticsearch · parallel), KnowledgePageHierarchyIT (mysql-elasticsearch · parallel), KpiResourceIT (mysql-elasticsearch · parallel), LLMModelResourceIT (mysql-elasticsearch · parallel), LLMServiceResourceIT (mysql-elasticsearch · parallel), LatencySamplerTest (mysql-elasticsearch · parallel), LatestTestCaseResultListingIT (mysql-elasticsearch · parallel), LearningResourceIT (mysql-elasticsearch · parallel), LifeCycleCreatedSentinelMigrationIT (mysql-elasticsearch · parallel), LineageBidirectionalIT (mysql-elasticsearch · parallel), LineageBrokenReferenceIT (mysql-elasticsearch · parallel), LineageEdgePlannerTest (mysql-elasticsearch · parallel), LineageGraphLoaderTest (mysql-elasticsearch · parallel), LineageHydrateIT (mysql-elasticsearch · parallel), LineageImpactAnalysisIT (mysql-elasticsearch · parallel), LineageManualEdgeIT (mysql-elasticsearch · parallel), LineagePipelineAnnotatorIT (mysql-elasticsearch · parallel), LineageResourceIT (mysql-elasticsearch · parallel), McpContextMemoryVisibilityIT (mysql-elasticsearch · parallel), McpExecutionResourceIT (mysql-elasticsearch · parallel), McpIntegrationIT (mysql-elasticsearch · parallel), McpOAuthIT (mysql-elasticsearch · parallel), McpPermissionIT (mysql-elasticsearch · parallel), McpSearchIT (mysql-elasticsearch · parallel), McpServerResourceIT (mysql-elasticsearch · parallel), McpServiceResourceIT (mysql-elasticsearch · parallel), McpToolsValidationIT (mysql-elasticsearch · parallel), McpUserContextIT (mysql-elasticsearch · parallel), MessagingServiceResourceIT (mysql-elasticsearch · parallel), MetadataServiceResourceIT (mysql-elasticsearch · parallel), MetricAssetsIT (mysql-elasticsearch · parallel), MetricGroupResourceIT (mysql-elasticsearch · parallel), MetricResourceIT (mysql-elasticsearch · parallel), MlModelResourceIT (mysql-elasticsearch · parallel), MlModelServiceResourceIT (mysql-elasticsearch · parallel), MlModelServiceSearchAliasIT (mysql-elasticsearch · parallel), MultiDomainHasDomainIT (mysql-elasticsearch · parallel), MultiTeamUserFanOutIT (mysql-elasticsearch · parallel), NamespaceCleanupTest (mysql-elasticsearch · parallel), NotificationTemplateResourceIT (mysql-elasticsearch · parallel), OAuth2TokenManagerIT (mysql-elasticsearch · parallel), OntologyAiResourceIT (mysql-elasticsearch · parallel), OntologyAxiomResourceIT (mysql-elasticsearch · parallel), OntologyBulkIT (mysql-elasticsearch · parallel), OntologyChangeSetIT (mysql-elasticsearch · parallel), OntologyEditLockResourceIT (mysql-elasticsearch · parallel), OntologyEffectiveAttributesIT (mysql-elasticsearch · parallel), OntologyGovernanceIT (mysql-elasticsearch · parallel), OntologyImpactIT (mysql-elasticsearch · parallel), OntologyModelingIT (mysql-elasticsearch · parallel), OntologyPackResourceIT (mysql-elasticsearch · parallel), OntologyPatternIT (mysql-elasticsearch · parallel), OntologyResourceIT (mysql-elasticsearch · parallel), OntologyStructureIT (mysql-elasticsearch · parallel), OntologySubsetIT (mysql-elasticsearch · parallel), OpenLineageLineageResolutionIT (mysql-elasticsearch · parallel), OpenLineageResourceIT (mysql-elasticsearch · parallel), OpenMetadataOperationsIT (mysql-elasticsearch · parallel), OpensearchHC5ReactorReproIT (mysql-elasticsearch · parallel), OptimisticLockingColumnPatchIT (mysql-elasticsearch · parallel), OrphanIngestionPipelineCleanupIT (mysql-elasticsearch · parallel), OrphanedEntityReferenceIT (mysql-elasticsearch · parallel), OrphanedIndexCleanerScopedCleanupIT (mysql-elasticsearch · parallel), OrphanedTimeSeriesCleanupIT (mysql-elasticsearch · parallel), OverrideMetadataRestoreMigrationIT (mysql-elasticsearch · parallel), PaginationIT (mysql-elasticsearch · parallel), PermissionsResourceIT (mysql-elasticsearch · parallel), PersonaAIContextIT (mysql-elasticsearch · parallel), PersonaResourceIT (mysql-elasticsearch · parallel), PipelineResourceIT (mysql-elasticsearch · parallel), PipelineServiceResourceIT (mysql-elasticsearch · parallel), PipelineStatusAuthorizationIT (mysql-elasticsearch · parallel), PolicyResourceIT (mysql-elasticsearch · parallel), PrometheusResourceIT (mysql-elasticsearch · parallel), PromptTemplateResourceIT (mysql-elasticsearch · parallel), QueryCostRecordResourceIT (mysql-elasticsearch · parallel), QueryResourceIT (mysql-elasticsearch · parallel), QueryVisibilityPolicyIT (mysql-elasticsearch · parallel), RdfScaleResourcesTest (mysql-elasticsearch · parallel), RecognizerFeedbackRepositoryTest (mysql-elasticsearch · parallel), RelationshipTypeContradictionIT (mysql-elasticsearch · parallel), RelationshipTypeResourceIT (mysql-elasticsearch · parallel), ReportDataResourceIT (mysql-elasticsearch · parallel), RestoreHierarchyIT (mysql-elasticsearch · parallel), RoleResourceIT (mysql-elasticsearch · parallel), RunIngestionPipelineForEntityIT (mysql-elasticsearch · parallel), SamlSecurityConfigIT (mysql-elasticsearch · parallel), SampleDataStorageMigrationIT (mysql-elasticsearch · parallel), SavedSparqlQueryResourceIT (mysql-elasticsearch · parallel), SdkClientsBaseUrlTest (mysql-elasticsearch · parallel), SearchClusterFitnessResourceIT (mysql-elasticsearch · parallel), SearchConfigurationIT (mysql-elasticsearch · parallel), SearchConsumerFieldBehaviorIT (mysql-elasticsearch · parallel), SearchFieldlessQueryIT (mysql-elasticsearch · parallel), SearchIndexFieldLimitIT (mysql-elasticsearch · parallel), SearchIndexImmenseTermIT (mysql-elasticsearch · parallel), SearchIndexPromotionIT (mysql-elasticsearch · parallel), SearchIndexResourceIT (mysql-elasticsearch · parallel), SearchIndexingFieldsParityIT (mysql-elasticsearch · parallel), SearchRankingRelevanceIT (mysql-elasticsearch · parallel), SearchResourceIT (mysql-elasticsearch · parallel), SearchServiceResourceIT (mysql-elasticsearch · parallel), SearchTestImagesTest (mysql-elasticsearch · parallel), SecretsManagerNullSecretIT (mysql-elasticsearch · parallel), SecurityServiceResourceIT (mysql-elasticsearch · parallel), SeedDataPresenceIT (mysql-elasticsearch · parallel), ServerStallWatchdogTest (mysql-elasticsearch · parallel), ServiceAttributePolicyIT (mysql-elasticsearch · parallel), ServiceLineagePipelineRoutingMigrationIT (mysql-elasticsearch · parallel), ServiceLineageRefcountIT (mysql-elasticsearch · parallel), ServicesOverviewResourceIT (mysql-elasticsearch · parallel), ShapeCanaryTest (mysql-elasticsearch · parallel), SlowEndpointIT (mysql-elasticsearch · parallel), SoftDeleteRetentionIT (mysql-elasticsearch · parallel), SpreadsheetResourceIT (mysql-elasticsearch · parallel), SqlFailureProbeTest (mysql-elasticsearch · parallel), SqlQueryCounterTest (mysql-elasticsearch · parallel), SqlTestDecoratorsIT (mysql-elasticsearch · parallel), StaleIncidentStatusIT (mysql-elasticsearch · parallel), StorageServiceResourceIT (mysql-elasticsearch · parallel), StoredProcedureResourceIT (mysql-elasticsearch · parallel), SystemAlertsIT (mysql-elasticsearch · parallel), TableCertificationPropagationIT (mysql-elasticsearch · parallel), TableCreateCertificationIT (mysql-elasticsearch · parallel), TableDataModelCertificationIT (mysql-elasticsearch · parallel), TableMetadataReadIT (mysql-elasticsearch · parallel), TableResourceIT (mysql-elasticsearch · parallel), TagResourceIT (mysql-elasticsearch · parallel), TaskChangeEventIT (mysql-elasticsearch · parallel), TaskCommentsIT (mysql-elasticsearch · parallel), TaskFormSchemaResourceIT (mysql-elasticsearch · parallel), TaskPermissionsIT (mysql-elasticsearch · parallel), TaskResourceIT (mysql-elasticsearch · parallel), TeamDefaultPersonaIT (mysql-elasticsearch · parallel), TeamHierarchyInheritanceIT (mysql-elasticsearch · parallel), TeamResourceIT (mysql-elasticsearch · parallel), TemplateTestSendIT (mysql-elasticsearch · parallel), TestCaseCsvDomainIsolationIT (mysql-elasticsearch · parallel), TestCaseDeleteResilienceIT (mysql-elasticsearch · parallel), TestCaseLatestStatusIT (mysql-elasticsearch · parallel), TestCaseRelationshipRetentionCleanupIT (mysql-elasticsearch · parallel), TestCaseResolutionStatusLegacyTestSuitesIT (mysql-elasticsearch · parallel), TestCaseResourceIT (mysql-elasticsearch · parallel), TestCaseSoftDeleteSearchIT (mysql-elasticsearch · parallel), TestConnectionDefinitionResourceIT (mysql-elasticsearch · parallel), TestDefinitionResourceIT (mysql-elasticsearch · parallel), TestLoginSessionSweepIT (mysql-elasticsearch · parallel), TestNamespaceTest (mysql-elasticsearch · parallel), TestSuiteResourceIT (mysql-elasticsearch · parallel), TopicResourceIT (mysql-elasticsearch · parallel), TransactionCounterTest (mysql-elasticsearch · parallel), TypeResourceIT (mysql-elasticsearch · parallel), UnitOfWorkRollbackIT (mysql-elasticsearch · parallel), UsageResourceIT (mysql-elasticsearch · parallel), UserDefaultTeamAssignmentIT (mysql-elasticsearch · parallel), UserImportPrivilegeEscalationIT (mysql-elasticsearch · parallel), UserPreferencesIT (mysql-elasticsearch · parallel), UserResourceIT (mysql-elasticsearch · parallel), UserTeamAssignmentPrivilegeIT (mysql-elasticsearch · parallel), WebAnalyticEventResourceIT (mysql-elasticsearch · parallel), WorkflowResourceIT (mysql-elasticsearch · parallel), WorkflowTriggerPermissionsIT (mysql-elasticsearch · parallel), WorksheetResourceIT (mysql-elasticsearch · parallel), WritePathBenchmarkIT (mysql-elasticsearch · parallel), AppsResourceIT (mysql-elasticsearch · isolated), ConversationSchemaMigrationIT (mysql-elasticsearch · isolated), CsvExportMultiNodeIT (mysql-elasticsearch · isolated), DataContractValidationAppIT (mysql-elasticsearch · isolated), EntityShapeIT (mysql-elasticsearch · isolated), GlossaryOntologyExportIT (mysql-elasticsearch · isolated), MetricMigrationIT (mysql-elasticsearch · isolated), SearchIndexRetryQueueIT (mysql-elasticsearch · isolated), SessionMultiNodeIT (mysql-elasticsearch · isolated), SystemResourceIT (mysql-elasticsearch · isolated), TagRecognizerFeedbackIT (mysql-elasticsearch · isolated), TestSuiteReindexIT (mysql-elasticsearch · isolated), UserMetricsResourceIT (mysql-elasticsearch · isolated), VectorEmbeddingIntegrationIT (mysql-elasticsearch · isolated), WorkflowDefinitionResourceIT (mysql-elasticsearch · isolated), AgentSparqlResourceIT (mysql-elasticsearch · rdf), LodResourceIT (mysql-elasticsearch · rdf), RdfBatchFieldsIT (mysql-elasticsearch · rdf), RdfBlueGreenRebuildIT (mysql-elasticsearch · rdf), RdfConceptRealizationIT (mysql-elasticsearch · rdf), RdfFusekiAuthorizationIT (mysql-elasticsearch · rdf), RdfGlossaryGraphIT (mysql-elasticsearch · rdf), RdfGovernanceRulesIT (mysql-elasticsearch · rdf), RdfGraphExploreIT (mysql-elasticsearch · rdf), RdfIndexAppScaleIT (mysql-elasticsearch · rdf), RdfIndexRunRecoveryIT (mysql-elasticsearch · rdf), RdfInferenceMaterializationIT (mysql-elasticsearch · rdf), RdfLiveProjectionIT (mysql-elasticsearch · rdf), RdfLiveWriteRecoveryIT (mysql-elasticsearch · rdf), RdfReindexFailuresIT (mysql-elasticsearch · rdf), RdfReindexInsertOnlyIT (mysql-elasticsearch · rdf), RdfReindexRunLockIT (mysql-elasticsearch · rdf), RdfRelationExclusionsIT (mysql-elasticsearch · rdf), RdfResourceIT (mysql-elasticsearch · rdf), RdfRoundTripFidelityIT (mysql-elasticsearch · rdf), RdfSemanticSearchIT (mysql-elasticsearch · rdf), RdfSqlResourceIT (mysql-elasticsearch · rdf), RdfStorageReadinessIT (mysql-elasticsearch · rdf), RdfTagsTierCertificationIT (mysql-elasticsearch · rdf), AlertBacklogMigrationIT (postgres-opensearch · parallel), ConfigResourceIT (postgres-opensearch · parallel), ContextMemoryStatusMigrationIT (postgres-opensearch · parallel), ContinuousMigrationIT (postgres-opensearch · parallel), CreationAuditMigrationIT (postgres-opensearch · parallel), DataProductDomainMigrationIT (postgres-opensearch · parallel), DataQualityDimensionMigrationIT (postgres-opensearch · parallel), DatabaseSmokeIT (postgres-opensearch · parallel), DbTuneIT (postgres-opensearch · parallel), FlattenedChildrenHighlightSearchIT (postgres-opensearch · parallel), GlossaryRdfImportIT (postgres-opensearch · parallel), GlossaryTermResourceIT (postgres-opensearch · parallel), LifeCycleCreatedSentinelMigrationIT (postgres-opensearch · parallel), OntologyAiResourceIT (postgres-opensearch · parallel), OntologyAxiomResourceIT (postgres-opensearch · parallel), OntologyBulkIT (postgres-opensearch · parallel), OntologyChangeSetIT (postgres-opensearch · parallel), OntologyEditLockResourceIT (postgres-opensearch · parallel), OntologyEffectiveAttributesIT (postgres-opensearch · parallel), OntologyGovernanceIT (postgres-opensearch · parallel), OntologyImpactIT (postgres-opensearch · parallel), OntologyModelingIT (postgres-opensearch · parallel), OntologyPackResourceIT (postgres-opensearch · parallel), OntologyPatternIT (postgres-opensearch · parallel), OntologyResourceIT (postgres-opensearch · parallel), OntologyStructureIT (postgres-opensearch · parallel), OntologySubsetIT (postgres-opensearch · parallel), OpenMetadataOperationsIT (postgres-opensearch · parallel), OverrideMetadataRestoreMigrationIT (postgres-opensearch · parallel), RdfScaleResourcesTest (postgres-opensearch · parallel), SampleDataStorageMigrationIT (postgres-opensearch · parallel), SavedSparqlQueryResourceIT (postgres-opensearch · parallel), SeedDataPresenceIT (postgres-opensearch · parallel), ServiceLineagePipelineRoutingMigrationIT (postgres-opensearch · parallel), TableResourceIT (postgres-opensearch · parallel), UserResourceIT (postgres-opensearch · parallel), ConversationSchemaMigrationIT (postgres-opensearch · isolated), GlossaryOntologyExportIT (postgres-opensearch · isolated), MetricMigrationIT (postgres-opensearch · isolated), PatchTableEmbeddingIT (postgres-opensearch · isolated), AgentSparqlResourceIT (postgres-opensearch · rdf), LodResourceIT (postgres-opensearch · rdf), RdfBatchFieldsIT (postgres-opensearch · rdf), RdfBlueGreenRebuildIT (postgres-opensearch · rdf), RdfConceptRealizationIT (postgres-opensearch · rdf), RdfFusekiAuthorizationIT (postgres-opensearch · rdf), RdfGlossaryGraphIT (postgres-opensearch · rdf), RdfGovernanceRulesIT (postgres-opensearch · rdf), RdfGraphExploreIT (postgres-opensearch · rdf), RdfIndexAppScaleIT (postgres-opensearch · rdf), RdfIndexRunRecoveryIT (postgres-opensearch · rdf), RdfInferenceMaterializationIT (postgres-opensearch · rdf), RdfLiveProjectionIT (postgres-opensearch · rdf), RdfLiveWriteRecoveryIT (postgres-opensearch · rdf), RdfReindexFailuresIT (postgres-opensearch · rdf), RdfReindexInsertOnlyIT (postgres-opensearch · rdf), RdfReindexRunLockIT (postgres-opensearch · rdf), RdfRelationExclusionsIT (postgres-opensearch · rdf), RdfResourceIT (postgres-opensearch · rdf), RdfRoundTripFidelityIT (postgres-opensearch · rdf), RdfSemanticSearchIT (postgres-opensearch · rdf), RdfSqlResourceIT (postgres-opensearch · rdf), RdfStorageReadinessIT (postgres-opensearch · rdf), RdfTagsTierCertificationIT (postgres-opensearch · rdf)

Tests run locally

  • unit · openmetadata-mcp (6 classes), openmetadata-service (55 classes): 108 classes, 621 tests executed (listed below)
  • integration · mysql-elasticsearch · parallel: every lane class, in this CI run
  • integration · mysql-elasticsearch · isolated: every lane class, in this CI run
  • integration · mysql-elasticsearch · rdf: every lane class, in this CI run
  • integration · cache-tests · parallel: AlertStateIT (21 passed), BundleWarmupCertificationIT (1 passed), ContainerCacheCorrectnessIT (1 passed), EntityCacheWriteOrderIT (2 passed), OneTransactionFlushAtomicityIT (8 passed, 1 skipped), RelationshipCacheInvalidationIT (1 passed), TagRenameCacheIT (1 passed), UncachedReadIT (3 passed)
  • integration · cache-tests · isolated: SessionRedisMultiNodeIT (8 passed), TokenRevocationRedisMultiNodeIT (3 passed)
  • integration · postgres-opensearch · parallel: every lane class, in this CI run
  • integration · postgres-opensearch · isolated: every lane class, in this CI run
  • integration · postgres-opensearch · rdf: every lane class, in this CI run
  • integration · postgres-opensearch · search-it: ColumnIndexingToggleIT (1 passed), CustomPropertyAggregationIT (2 passed), DbToEsCountReconciliationIT (1 passed), ExtensionHighlightSearchIT (1 passed), FieldNamesAggregationIT (5 passed), HighlightFieldSaveValidationIT (4 passed), IndexFieldExplosionIT (2 passed), IndexMappingTemplatesIT (1 passed), LiveIndexRetryIT (1 passed), LiveSearchSettingsChangeIT (1 passed), NestedHierarchyIndexIT (1 passed), NoDuplicatesDuringReindexIT (1 passed), OwnersNestedMappingIT (1 passed), PerEntitySearchDefaultsIT (1 passed), ReindexAliasSwapIT (1 passed), ReindexDocSurvivalIT (4 passed), ReindexOutageRecoveryIT (1 passed), ReindexStatsIT (2 passed), ReindexStopUnderLoadIT (1 passed), SearchClusterFitnessReindexE2EIT (2 passed), SearchCountConsistencyIT (6 passed), SearchEntityRankingIT (14 passed), SearchRelevancyPreviewIT (8 passed), SearchScoringIT (4 passed), StagedIndexUnrefreshedCountIT (1 passed), TestCaseStaleDefinitionReindexIT (1 passed), UnsafeReindexConfigIT (1 passed)

Per-class counts come from failsafe's reports, which can credit a test to the wrong class when classes run concurrently; the step totals above are exact.

unit · openmetadata-mcp (6 classes), openmetadata-service (55 classes): 108 classes

AgentSparqlServiceTest (18 passed), AgentSparqlTransportTest (11 passed), CentralityComputationTest (0 passed), CentralityComputationTest$EndToEnd (6 passed), CentralityComputationTest$GraphParsing (6 passed), CentralityComputationTest$PredicateWeights (1 passed), CollectionDAOCompositionTest (2 passed), CommunityComputationTest (0 passed), CommunityComputationTest$EndToEnd (6 passed), CommunityComputationTest$GraphParsing (6 passed), CommunityComputationTest$GraphTypeParsing (3 passed), CommunityComputationTest$WellFormed (4 passed), CustomOntologyRepositoryTest (5 passed), EntityNeighborhoodToolTest (9 passed), FindByTagToolTest (9 passed), FixedPointRuleCheckTest (1 passed), InferenceMaterializationQueryBuilderTest (3 passed), InferenceMaterializerTest (14 passed), InferenceRuleRepositoryTest (20 passed), InferenceRuleServiceTest (6 passed), InferenceRuleStarterPackTest (5 passed), InferenceRuleValidatorTest (0 passed), InferenceRuleValidatorTest$FixedPointSafety (15 passed), InferenceRuleValidatorTest$HappyPath (1 passed), InferenceRuleValidatorTest$PriorityBounds (2 passed), InferenceRuleValidatorTest$RequiredFields (4 passed), InferenceRuleValidatorTest$RuleTypeHandling (1 passed), InferenceRuleValidatorTest$ServiceRejection (2 passed), InferenceRuleValidatorTest$SparqlBodyShape (7 passed), InferenceRuleValidatorTest$StarterPackValidation (1 passed), InferenceRunLockTest (4 passed), LineagePathFinderTest (0 passed), LineagePathFinderTest$EndToEnd (12 passed), LineagePathFinderTest$FrontierParsing (4 passed), LineagePathFinderTest$TypesParsing (2 passed), LodResourceTest (2 passed), OntologyAnnexServiceTest (1 passed), OntologyDescribeToolTest (5 passed), OntologyEditLeasePolicyTest (6 passed), RdfAutoTuneTest (7 passed), RdfBatchProcessorTest (23 passed), RdfBlueGreenDatasetTest (0 passed), RdfBlueGreenDatasetTest$AlternationTests (3 passed), RdfBlueGreenDatasetTest$RepositoryRoutingTests (5 passed), RdfBulkSinkTest (9 passed), RdfCustomPropertyProjectionTest (5 passed), RdfExtensionProjectionTest (2 passed), RdfGlossaryRelationCleanupQueryTest (1 passed), RdfGlossaryTermGraphFilterTest (6 passed), RdfGraphHelpersTest (17 passed), RdfGraphServiceTest (9 passed), RdfIndexAppTest (0 passed), RdfIndexAppTest$AdmissionTests (3 passed), RdfIndexAppTest$BlueGreenLifecycleTests (5 passed), RdfIndexAppTest$EntityRelationshipConversionTests (3 passed), RdfIndexAppTest$EntitySelectionTests (5 passed), RdfIndexAppTest$InitializationTests (2 passed), RdfIndexAppTest$PromotionRatioGateTests (4 passed), RdfIndexAppTest$RunLockTests (4 passed), RdfIndexAppTest$RunRecordUpdateTests (7 passed), RdfIndexAppTest$StopFunctionalityTests (2 passed), RdfIndexAppTest$ValidationTests (1 passed), RdfIndexingFieldsTest (2 passed), RdfInferenceGuardrailTest (9 passed), RdfInferenceRuleRowMapperTest (3 passed), RdfInsightsServiceTest (11 passed), RdfJenaBootstrapTest (1 passed), RdfLineageBatchingTest (5 passed), RdfLineageOntologyTest (10 passed), RdfLiveWriteTest (14 passed), RdfLiveWriterTest (5 passed), RdfMutationUpdateShapeTest (3 passed), RdfOntologyContractTest (10 passed), RdfParserHelpersTest (6 passed), RdfPredicatePartitionTest (3 passed), RdfPropertyMapperTest (0 passed), RdfPropertyMapperTest$AddTypedPropertyBlankString (4 passed), RdfPropertyMapperTest$ChangeDescriptionTests (2 passed), RdfPropertyMapperTest$ColumnResourceTests (9 passed), RdfPropertyMapperTest$DedicatedMapperFieldTests (2 passed), RdfPropertyMapperTest$ExtensionTests (1 passed), RdfPropertyMapperTest$GeneralPropertyMappingTests (12 passed), RdfPropertyMapperTest$LifeCycleTests (1 passed), RdfPropertyMapperTest$LineageTests (3 passed), RdfPropertyMapperTest$TestCaseResultTests (1 passed), RdfPropertyMapperTest$TranslatorManagedPredicatesTests (2 passed), RdfPropertyMapperTest$VotesTests (1 passed), RdfRealizationProjectionTest (4 passed), RdfReindexResourceTest (11 passed), RdfRelationPredicateValidationTest (35 passed), RdfRepositoryBulkChunkingTest (11 passed), RdfRepositoryProjectionHealthTest (1 passed), RdfResourceTest (21 passed), RdfRuleInputProjectionTest (6 passed), RdfSparqlServiceTest (11 passed), RdfToolGatingTest (3 passed), RdfUpdaterTest (11 passed), RdfValidationServiceTest (6 passed), ShaclValidateToolTest (8 passed), SparqlBuilderNestedFieldsTest (0 passed), SparqlBuilderNestedFieldsTest$ColumnMappingTests (2 passed), SparqlBuilderNestedFieldsTest$LineageTableMappingTests (7 passed), SparqlBuilderNestedFieldsTest$MappingContextTests (2 passed), SparqlBuilderNestedFieldsTest$NestedFieldDetectionTests (2 passed), SparqlBuilderNestedFieldsTest$PrefixTests (5 passed), SparqlBuilderNestedFieldsTest$SqlTranslationTests (6 passed), SparqlQueryToolTest (12 passed), SqlToSparqlTranslatorTest (10 passed)

Why these tests
  • full suite ← 337 of the 376 merge-queue ITs were selected
  • area apps-jobs ← openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/rdf/RdfInferenceApp.java, openmetadata-spec/src/main/resources/json/schema/entity/applications/configuration/internal/rdfInferenceAppConfig.json
  • area it-harness ← openmetadata-integration-tests/src/test/java/org/openmetadata/it/util/RdfInferenceRuns.java
  • area migrations-seed-data ← bootstrap/sql/migrations/native/2.1.0/mysql/postDataMigrationSQLScript.sql, bootstrap/sql/migrations/native/2.1.0/mysql/schemaChanges.sql, bootstrap/sql/migrations/native/2.1.0/postgres/postDataMigrationSQLScript.sql, bootstrap/sql/migrations/native/2.1.0/postgres/schemaChanges.sql
  • area rdf ← openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/rdf/RdfInferenceApp.java, openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/RdfInfraDAOs.java, openmetadata-service/src/main/java/org/openmetadata/service/rdf/GlossaryOntologyExporter.java, openmetadata-service/src/main/java/org/openmetadata/service/rdf/RdfLiveWrite.java, openmetadata-service/src/main/java/org/openmetadata/service/rdf/RdfProjectionLoaders.java (+18 more)
  • called from entity Glossary ← openmetadata-service/src/main/java/org/openmetadata/service/rdf/GlossaryOntologyExporter.java
  • called from entity Lod ← openmetadata-service/src/main/java/org/openmetadata/service/resources/rdf/RdfResource.java
  • called from entity Pipeline ← openmetadata-service/src/main/java/org/openmetadata/service/rdf/RdfRepository.java
  • called from entity Rdf ← openmetadata-service/src/main/java/org/openmetadata/service/rdf/GlossaryOntologyExporter.java, openmetadata-service/src/main/java/org/openmetadata/service/rdf/RdfProjectionLoaders.java, openmetadata-service/src/main/java/org/openmetadata/service/rdf/RdfRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/rdf/inference/InferenceRuleRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/rdf/inference/InferenceRuleService.java (+2 more)
  • called from entity RdfReindex ← openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/RdfInfraDAOs.java
  • changed test ← openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/RdfBlueGreenRebuildIT.java, openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/RdfConceptRealizationIT.java, openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/RdfGovernanceRulesIT.java, openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/RdfInferenceMaterializationIT.java, openmetadata-service/src/test/java/org/openmetadata/service/jdbi3/RdfInferenceRuleRowMapperTest.java (+12 more)
  • entity Rdf ← openmetadata-service/src/main/java/org/openmetadata/service/rdf/RdfRepository.java, openmetadata-service/src/main/java/org/openmetadata/service/resources/rdf/RdfResource.java
  • smoke ← code other than a test class changed
Impacted, not run locally (13)
  • RdfCatalogScaleIT → only with -DrdfCatalogScale=true, which no CI lane sets
  • OntologyScaleIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • GoogleSsoSignInUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • EntityLoaderSmokeUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • LongCompoundNameSearchUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • PipelineOwnerIndexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • DistributedAutoTuneReindexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • SearchAvailableAllKindsDuringReindexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • SearchAvailableDuringReindexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • SelectiveFieldReindexUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • SimpleReindexTriggerUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • GoogleSsoBootstrapUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
  • MockIdpSmokeUIIT → nightly: openmetadata-nightly k8s-java-it (ui-it + embedded JavaUIIT)
Commands
mvn -B package -pl openmetadata-mcp,openmetadata-service -am -Dspring-boot.repackage.skip=true -Dtest=AgentSparqlServiceTest,AgentSparqlTransportTest,CentralityComputationTest,CollectionDAOCompositionTest,CommunityComputationTest,CustomOntologyRepositoryTest,EntityNeighborhoodToolTest,FindByTagToolTest,FixedPointRuleCheckTest,InferenceMaterializationQueryBuilderTest,InferenceMaterializerTest,InferenceRuleRepositoryTest,InferenceRuleServiceTest,InferenceRuleStarterPackTest,InferenceRuleValidatorTest,InferenceRunLockTest,LineagePathFinderTest,LodResourceTest,OntologyAnnexServiceTest,OntologyDescribeToolTest,OntologyEditLeasePolicyTest,RdfAutoTuneTest,RdfBatchProcessorTest,RdfBlueGreenDatasetTest,RdfBulkSinkTest,RdfCustomPropertyProjectionTest,RdfExtensionProjectionTest,RdfGlossaryRelationCleanupQueryTest,RdfGlossaryTermGraphFilterTest,RdfGraphHelpersTest,RdfGraphServiceTest,RdfIndexAppTest,RdfIndexingFieldsTest,RdfInferenceGuardrailTest,RdfInferenceRuleRowMapperTest,RdfInsightsServiceTest,RdfJenaBootstrapTest,RdfLineageBatchingTest,RdfLineageOntologyTest,RdfLiveWriteTest,RdfLiveWriterTest,RdfMutationUpdateShapeTest,RdfOntologyContractTest,RdfParserHelpersTest,RdfPredicatePartitionTest,RdfPropertyMapperTest,RdfRealizationProjectionTest,RdfReindexResourceTest,RdfRelationPredicateValidationTest,RdfRepositoryBulkChunkingTest,RdfRepositoryProjectionHealthTest,RdfResourceTest,RdfRuleInputProjectionTest,RdfSparqlServiceTest,RdfToolGatingTest,RdfUpdaterTest,RdfValidationServiceTest,ShaclValidateToolTest,SparqlBuilderNestedFieldsTest,SparqlQueryToolTest,SqlToSparqlTranslatorTest -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=parallel '-Dit.test=<325 classes>' -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=global-state -Dit.test=AppsResourceIT,ConversationSchemaMigrationIT,CsvExportMultiNodeIT,DataContractValidationAppIT,EntityShapeIT,GlossaryOntologyExportIT,MetricMigrationIT,SearchIndexRetryQueueIT,SessionMultiNodeIT,SystemResourceIT,TagRecognizerFeedbackIT,TestSuiteReindexIT,UserMetricsResourceIT,VectorEmbeddingIntegrationIT,WorkflowDefinitionResourceIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=rdf -Dit.test=AgentSparqlResourceIT,LodResourceIT,RdfBatchFieldsIT,RdfBlueGreenRebuildIT,RdfConceptRealizationIT,RdfFusekiAuthorizationIT,RdfGlossaryGraphIT,RdfGovernanceRulesIT,RdfGraphExploreIT,RdfIndexAppScaleIT,RdfIndexRunRecoveryIT,RdfInferenceMaterializationIT,RdfLiveProjectionIT,RdfLiveWriteRecoveryIT,RdfReindexFailuresIT,RdfReindexInsertOnlyIT,RdfReindexRunLockIT,RdfRelationExclusionsIT,RdfResourceIT,RdfRoundTripFidelityIT,RdfSemanticSearchIT,RdfSqlResourceIT,RdfStorageReadinessIT,RdfTagsTierCertificationIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pcache-tests -DintegrationTests.lane=parallel -Dit.test=AlertStateIT,BundleWarmupCertificationIT,ContainerCacheCorrectnessIT,EntityCacheWriteOrderIT,OneTransactionFlushAtomicityIT,RelationshipCacheInvalidationIT,TagRenameCacheIT,UncachedReadIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pcache-tests -DintegrationTests.lane=global-state -Dit.test=SessionRedisMultiNodeIT,TokenRevocationRedisMultiNodeIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Ppostgres-opensearch -DintegrationTests.lane=parallel '-Dit.test=<36 classes>' -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Ppostgres-opensearch -DintegrationTests.lane=global-state -Dit.test=ConversationSchemaMigrationIT,GlossaryOntologyExportIT,MetricMigrationIT,PatchTableEmbeddingIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Ppostgres-opensearch -DintegrationTests.lane=rdf -Dit.test=AgentSparqlResourceIT,LodResourceIT,RdfBatchFieldsIT,RdfBlueGreenRebuildIT,RdfConceptRealizationIT,RdfFusekiAuthorizationIT,RdfGlossaryGraphIT,RdfGovernanceRulesIT,RdfGraphExploreIT,RdfIndexAppScaleIT,RdfIndexRunRecoveryIT,RdfInferenceMaterializationIT,RdfLiveProjectionIT,RdfLiveWriteRecoveryIT,RdfReindexFailuresIT,RdfReindexInsertOnlyIT,RdfReindexRunLockIT,RdfRelationExclusionsIT,RdfResourceIT,RdfRoundTripFidelityIT,RdfSemanticSearchIT,RdfSqlResourceIT,RdfStorageReadinessIT,RdfTagsTierCertificationIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Psearch-it -DdatabaseType=postgres -DsearchType=opensearch -Djpw.data.mode=ingest -Dit.test=ColumnIndexingToggleIT,CustomPropertyAggregationIT,DbToEsCountReconciliationIT,ExtensionHighlightSearchIT,FieldNamesAggregationIT,HighlightFieldSaveValidationIT,IndexFieldExplosionIT,IndexMappingTemplatesIT,LiveIndexRetryIT,LiveSearchSettingsChangeIT,NestedHierarchyIndexIT,NoDuplicatesDuringReindexIT,OwnersNestedMappingIT,PerEntitySearchDefaultsIT,ReindexAliasSwapIT,ReindexDocSurvivalIT,ReindexOutageRecoveryIT,ReindexStatsIT,ReindexStopUnderLoadIT,SearchClusterFitnessReindexE2EIT,SearchCountConsistencyIT,SearchEntityRankingIT,SearchRelevancyPreviewIT,SearchScoringIT,StagedIndexUnrefreshedCountIT,TestCaseStaleDefinitionReindexIT,UnsafeReindexConfigIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false

Ingestion integration tests

  • Not applicable — no ingestion changes.

Playwright (UI) tests

  • Not applicable — the only UI files are regenerated TypeScript types whose doc comments changed.

Manual testing performed

No manual server testing. Steps for a deployment with RDF on Fuseki and RDF_MATERIALIZED_INFERENCE_ENABLED=true:

  1. Tag a table PII.Sensitive, and add column lineage from its column to a second table and on to a third.
  2. POST /api/v1/rdf/rules/materialize?force=true returns every rule as successful.
  3. GET /api/v1/rdf/rules/pii-propagation-via-lineage reports a non-zero tripleCount; a SPARQL ASK with inference: custom finds the PII tag on the third table's column.
  4. Remove the tag, materialize again, and the ASK returns false.
  5. Start a second materialization while one runs: it returns 409.

UI screen recording / screenshots:

Not applicable — no UI behavior changes.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: only the rdfInferenceAppConfig.json descriptions changed; the dirtyVersion column has its migration above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • I have added a test that covers the exact scenario we are fixing (RdfGovernanceRulesIT, InferenceMaterializerTest).

SPARQL inference built a Jena inference model inside the OpenMetadata JVM by
copying the whole Fuseki store into the heap with CONSTRUCT { ?s ?p ?o }. With
rdf.inferenceEnabled set, every internal caller of executeSparqlQuery did the
same. Past maxInMemoryInferenceTriples a request silently returned asserted-only
results, and OWL_LITE/OWL_DL defaults never applied inference at all.

Delete InferenceEngine with the in-memory model, its cache and the triple limit.
Requests for rdfs or owl now fail with 503 and say why; custom reads the rule
graphs materialized in Fuseki and needs materializedInferenceEnabled. Internal
queries, including the complete-lineage endpoint, run against the stored graph.

GET /v1/rdf/status advertises only the levels the server can answer, and the
SPARQL console offers only those. Mark inferenceEnabled, defaultInferenceLevel,
cacheInferredTriples and maxInMemoryInferenceTriples deprecated; the server
ignores them and warns at startup when inferenceEnabled is set.
Describe how OpenMetadata moves all RDF and OWL inference out of its own
JVM into reasoner worker processes inside the openmetadata/fuseki image:
the engines (an owned HermiT build for OWL 2 DL, ELK for EL closures, and
Jena ARQ for governance rules), the memory budget that keeps a worker
out-of-memory away from Fuseki, snapshots and freshness, the HTTP and MCP
contract, and nine implementation phases. The commits that follow
implement phase 0.
The starter inference rules matched nothing on a real graph:

- Column lineage endpoints were FQN string literals, so the PII rule could
  never join them with column tags, and live lineage writes projected no
  column lineage at all. Endpoints now reference the column IRIs the table
  projection mints, keeping the FQN in om:fromColumnFqn and om:toColumnFqn,
  and live UPSTREAM writes project the edge's stored details, as a reindex
  does.
- Entity domains were projected as om:domains while the domain rule reads
  om:belongsToDomain. Domains now use om:belongsToDomain; om:domains is
  deprecated and removed on each entity's next projection.
- Concept realizations were a JSON literal. Each one now names the asset's
  role with om:hasPrimaryStore, om:hasDerivedAsset or om:hasReplica beside
  the om:mappedTo edge, in the live projection as in the ontology export.
- The ontology now matches what the projection writes: om:ColumnLineage is
  declared, om:fromColumn and om:toColumn take it as their domain, and
  om:hasChildColumn is marked as stored.

Existing graphs pick up the new triples on the next write of each entity or
lineage edge, or on a rebuild.
Each rule cleared and refilled its own graph once per run, in priority
order, reading the other rules' output from the previous run. PII spread one
lineage hop per run, a deleted premise kept its conclusions alive, and
markMaterialized cleared the dirty flag even when changes arrived during the
run.

A run now empties every rule graph and applies the enabled rules in passes
until a pass derives nothing new, failing after 64 passes. The dirty flag
clears only if the rule's new dirtyVersion column still holds the value the
run read, so changes made during a run stay pending. A cluster-wide lease
keeps runs from interleaving: a manual run gets 409 and a scheduled run ends
STOPPED. Deleting a rule never waits for a run; the next run empties the
graph of every rule ever stored.

The validator rejects rules that cannot converge (OPTIONAL, MINUS, NOT
EXISTS, BOUND, subqueries, blank nodes, computed head values and
nondeterministic functions), and stored rules that fail it are disabled with
the reason in lastError. transitive-lineage-closure, which stores every
ancestor/descendant pair, now ships disabled. A requested rule name only has
to exist; the whole rule set always runs.
Exercise LET assignments, graph-name variables, three-argument functions and
a triples block built in code, so every branch of FixedPointRuleCheck is
tested.
@harshach harshach self-assigned this Oct 8, 2026
@github-actions github-actions Bot added the safe to test Add this label to run secure Github workflows on PRs label Oct 8, 2026
A blue/green promotion marked every rule dirty without bumping
dirtyVersion, so a materialization run that read the old dataset and
finished after the flip still cleared the flag. The rules looked clean
while the new serving dataset lacked their output until the next write.
Promotion now bumps dirtyVersion like every other invalidation.

The rebuild ITs' database now applies every 2.1.0 statement for
rdf_inference_rule, not only its CREATE TABLE, so it has the
dirtyVersion column the server writes.
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 76%
76.34% (120482/157817) 62.33% (74614/119700) 63.74% (24939/39123)

Base automatically changed from refactor/rdf-remove-in-process-reasoner to main October 10, 2026 01:45
…e-correctness

Main squash-merged #34963, the reasoner removal this branch was stacked
on, with review edits to the SPARQL console. Take main's copy of those
UI files; keep this branch's InferenceMaterializer and production-setup
doc, which already hold #34963's change plus the fixed-point work.
A materialization run renews its cluster-wide lock in the background while it
holds it, so one slow update cannot outlive the lock while the run waits on it.
A run that stops waiting for an update at the request timeout keeps the lock
until it expires instead of releasing it: Fuseki may still be applying that
update, and the next run, on any server, must not clear the rule graphs under it.

RdfInferenceMultiServerIT runs two servers' materializers against the real lock
and rule tables and Fuseki: a second server is refused mid-run, a rule edited on
another server during a run stays dirty, and a run that gave up on an update
holds other servers off until its lock expires.
Each test holds the real materialization lock for its duration, so the
server's scheduled RdfInferenceApp run stops instead of clearing the dirty
flag or the rule graphs between a run and the test's assertions. The two
simulated servers still contend for a lock key of their own.
@harshach

Copy link
Copy Markdown
Collaborator Author

Addressed the RdfInferenceMultiServerIT finding in d6231b7.

Moving the two simulated servers to the real key would not close the window on its own: after server A releases the lock, the scheduled run can take it and clear the edited rule's dirty flag before the assertion. Instead, each test now holds the real RDF_INFERENCE_MATERIALIZATION_LOCK for its whole duration under a guard holder, after waiting out any scheduled run already in progress. A scheduled run that fires during the test ends STOPPED. Servers A and B still contend for a key of their own, so the two-server behaviour under test is unchanged. The key is now the shared InferenceRunLock.MATERIALIZATION_LOCK_KEY constant.

RdfInferenceMultiServerIT + RdfInferenceMaterializationIT: 18/18 on MySQL + Elasticsearch and 18/18 on Postgres + OpenSearch.

@gitar-bot

gitar-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🔴 High risk · Recomputing every RDF rule graph and migrating dirtyVersion could change or temporarily remove governance conclusions consumed by catalog queries.

Materializes inference rules to a fixed point with corrected rule inputs, a cluster-wide run lease, and dirty-version tracking so promotions during a run stay pending. The per-test lock key that left the integration test exposed to the scheduled run has been addressed. No open issues remain.

✅ 1 closed
✅ Edge Case: Per-test lock key leaves the IT exposed to the scheduled inference run

📄 openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/RdfInferenceMultiServerIT.java:48-52 📄 openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/RdfInferenceMultiServerIT.java:113-123 📄 openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/RdfInferenceMultiServerIT.java:145-149
The IT gives each test its own lock key, so its materializers never contend with the server's scheduled RdfInferenceApp. That app runs every 5 minutes (*/5 * * * *) on the real RDF_INFERENCE_MATERIALIZATION_LOCK and reads the same rdf_inference_rule table. The class comment says the private key means the scheduled run "cannot hold the lease these servers contend for". That is true, but it also means the scheduled run is not excluded at all. In aRuleEditedOnAnotherServerDuringARunStaysDirtyForTheNextRun, a scheduled run can start after the in-run edit bumps dirtyVersion and before line 119. It reads the new version, recomputes, and clears the dirty flag, so assertTrue(rules.get(ruleName).getDirty()) fails. It can also clear rule graphs while these runs are writing them. The window is small, so this shows up as an occasional CI flake. Fix: use the real lock key so the scheduled run is excluded, and wrap these runs with RdfInferenceRuns.materializeWhenIdle. Alternatively, pause or disable the RdfInferenceApp schedule for this class.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
test — d6231b71 Deployed Oct 10, 2026 by harshach via RDF Playwright execution #28572
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

1 participant