Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

fix(es-yaml-runner): exit non-zero when any conformance case fails

xerj-orgdec622bb0b9b
diff --git a/engine/tests/es-compat-yaml/src/main.rs b/engine/tests/es-compat-yaml/src/main.rs
index 374910f79..76f1467a9 100644
--- a/engine/tests/es-compat-yaml/src/main.rs
+++ b/engine/tests/es-compat-yaml/src/main.rs
@@ -89,6 +89,12 @@ fn main() {
format!("{}", total.skipped).yellow(),
total.passed + total.failed + total.skipped,
);
+ // CI's "0 failures required" gate consumes this exit code — without it a
+ // regressing PR shows a green conformance check (bit us on PR #23, which
+ // went 1360→1345 passing with the job still SUCCESS).
+ if total.failed > 0 {
+ std::process::exit(1);
+ }
}
fn collect_files(cli: &Cli) -> Vec<PathBuf> {