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.

diag(#1023): temporary workflow_dispatch triggers for the [DIAG2] run, WILL BE REVERTED

xerj-orgcbdf1385612c
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5e2d44f51..35d6a8510 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,6 +5,11 @@ on:
branches: [main]
pull_request:
branches: [main]
+ # diag(#1023): TEMPORARY, WILL BE REVERTED with the diag1023 workflow.
+ # PR #1023 is merge-dirty against main, so pull_request runs no longer
+ # create (no merge ref); this lets the full Build + Test shape be
+ # dispatched on the branch ref directly.
+ workflow_dispatch:
# Least-privilege by default for an OSS repo; jobs opt into more if needed.
permissions:
diff --git a/.github/workflows/diag1023.yml b/.github/workflows/diag1023.yml
new file mode 100644
index 000000000..08d855695
--- /dev/null
+++ b/.github/workflows/diag1023.yml
@@ -0,0 +1,60 @@
+# diag(#1023): TEMPORARY runner-side interleaving workflow, WILL BE REVERTED.
+#
+# PR #1023 is merge-dirty against main (es_compat.rs changed both sides), so
+# `pull_request` CI no longer creates runs for pushes to the branch — GitHub
+# cannot build refs/pull/1023/merge. This workflow is dispatched manually on
+# the BRANCH ref, replicating Build + Test's runner/toolchain/cache shape for
+# exactly one purpose: capture the [DIAG2] interleaving of
+# es_compat::scripted_update_publication_tests on the 4-vCPU / --test-threads=2
+# CI shape where the left:2 loss reproduces (280+ local runs never reproduce).
+#
+# Step 1 is the same suite slice Build + Test runs (xerj-api lib, threads=2);
+# step 2 hammers the single test with --nocapture for a second shot at the
+# interleaving. [DIAG2] eprintln fires from tokio worker threads, so it lands
+# in the job log whether the test passes or fails.
+name: diag1023
+on:
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: diag1023-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ diag:
+ name: diag1023 interleaving capture
+ runs-on: ubuntu-latest
+ timeout-minutes: 50
+ steps:
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
+
+ - name: Install Rust
+ uses: dtolnay/rust-toolchain@032958afbdc797a9164d3bc0b56325c1308924a5 # 1.97.1
+
+ - name: Cache
+ uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
+ with:
+ workspaces: engine
+ shared-key: ci-test-linux
+
+ - name: xerj-api lib suite, threads=2 (Build + Test shape)
+ working-directory: engine
+ run: cargo test --profile ci-test -p xerj-api --lib -- --test-threads=2
+
+ - name: isolated target test x40, nocapture
+ working-directory: engine
+ run: |
+ fail=0
+ for i in $(seq 1 40); do
+ echo "=== diag1023 iteration $i ==="
+ if ! cargo test --profile ci-test -p xerj-api --lib \
+ concurrent_scripted_update_by_query_preserves_every_increment \
+ -- --nocapture --test-threads=2; then
+ fail=1
+ echo "=== diag1023 iteration $i FAILED ==="
+ fi
+ done
+ exit $fail