Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
fix: gate embedding/postgres tests behind feature flags, fix flaky test
FABIOTESS30807f8b2cb4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 762f6e5e..b6341e1e 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -23,8 +23,6 @@ jobs:with:components: clippy- uses: Swatinem/rust-cache@v2- - name: Install system dependencies- run: sudo apt-get update && sudo apt-get install -y libpq-dev- name: Buildrun: cargo build- name: Testdiff --git a/tests/embedding_e2e_test.rs b/tests/embedding_e2e_test.rsindex 0f13b1f5..d4792633 100644--- a/tests/embedding_e2e_test.rs+++ b/tests/embedding_e2e_test.rs@@ -1,3 +1,4 @@+#![cfg(feature = "embeddings")]//! End-to-end test: load ontology → embed → search → align with embeddings.//! Only runs if the ONNX model is available.diff --git a/tests/lineage_test.rs b/tests/lineage_test.rsindex cdba8808..acdcc0f5 100644--- a/tests/lineage_test.rs+++ b/tests/lineage_test.rs@@ -29,15 +29,15 @@ fn test_lineage_session_isolation() {let s1 = log.new_session();let s2 = log.new_session();- log.record(&s1, "L", "load", "100");- log.record(&s2, "L", "load", "200");+ log.record(&s1, "L", "load", "alpha_unique_val");+ log.record(&s2, "L", "load", "beta_unique_val");let e1 = log.get_compact(&s1);let e2 = log.get_compact(&s2);- assert!(e1.contains("100"));- assert!(!e1.contains("200"));- assert!(e2.contains("200"));- assert!(!e2.contains("100"));+ assert!(e1.contains("alpha_unique_val"));+ assert!(!e1.contains("beta_unique_val"));+ assert!(e2.contains("beta_unique_val"));+ assert!(!e2.contains("alpha_unique_val"));}#[test]diff --git a/tests/poincare_stability_test.rs b/tests/poincare_stability_test.rsindex 842f9049..dcb19947 100644--- a/tests/poincare_stability_test.rs+++ b/tests/poincare_stability_test.rs@@ -1,3 +1,4 @@+#![cfg(feature = "embeddings")]//! Numerical stability tests for Poincaré ball geometry.//! Tests edge cases: zero vectors, near-boundary points, identical points,//! very high dimensions, and NaN/infinity propagation.diff --git a/tests/poincare_test.rs b/tests/poincare_test.rsindex 675d8f99..0bc393cf 100644--- a/tests/poincare_test.rs+++ b/tests/poincare_test.rs@@ -1,3 +1,5 @@+#![cfg(feature = "embeddings")]+use open_ontologies::poincare::*;#[test]diff --git a/tests/schema_test.rs b/tests/schema_test.rsindex afd0da0f..2c319da3 100644--- a/tests/schema_test.rs+++ b/tests/schema_test.rs@@ -1,3 +1,5 @@+#![cfg(feature = "postgres")]+use open_ontologies::schema::{TableInfo, ColumnInfo, ForeignKey, SchemaIntrospector};#[test]diff --git a/tests/structembed_test.rs b/tests/structembed_test.rsindex 5ff9fb81..d007058a 100644--- a/tests/structembed_test.rs+++ b/tests/structembed_test.rs@@ -1,3 +1,5 @@+#![cfg(feature = "embeddings")]+use open_ontologies::structembed::StructuralTrainer;use open_ontologies::graph::GraphStore;use std::sync::Arc;diff --git a/tests/vecstore_test.rs b/tests/vecstore_test.rsindex 71f2ffd3..bbca46c3 100644--- a/tests/vecstore_test.rs+++ b/tests/vecstore_test.rs@@ -1,3 +1,5 @@+#![cfg(feature = "embeddings")]+use open_ontologies::vecstore::VecStore;use open_ontologies::state::StateDb;