Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/test-suite-registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,15 @@
"pkgs/atlas-search/crates/**/src/**"
],
"invocation": "cd pkgs/atlas-search && cargo test --workspace --all-targets",
"venue": null,
"status": "uncovered",
"venue": {
"workflow": ".github/workflows/atlas-search-pr.yml",
"job_step": "atlas-search / Test atlas-search, Test atlas-core, Test atlas-proto, Test atlas-embed",
"state": "active",
"dispatchable": true
},
"status": "mapped",
"phase2_issue": 6185,
"reason": "Flake checks.default exists, but no workflow invocation was confirmed; Phase 2 follow-up must be filed."
"reason": "Wired by #7825: atlas-search-pr.yml runs all four crates with --all-targets on pull_request, push to main, and workflow_dispatch. gate_a's model test remains #[ignore]d (requires ATLAS_ORT_LIB and the pinned model snapshot)."
},
{
"id": "fleet.rust",
Expand Down
26 changes: 22 additions & 4 deletions .github/workflows/atlas-search-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,45 @@ on:
paths:
- "pkgs/atlas-search/**"
- ".github/workflows/atlas-search-pr.yml"
push:
branches: [main]
paths:
- "pkgs/atlas-search/**"
- ".github/workflows/atlas-search-pr.yml"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: atlas-search-${{ github.ref }}
# Push-to-main runs are keyed by run_id so every merged tree gets its
# own completed run (the scripts-test/nix-ci contract); pull-request
# runs share a per-ref group so a new push supersedes the stale one.
group: atlas-search-${{ github.event_name == 'push' && github.run_id || github.ref }}
cancel-in-progress: true

jobs:
atlas-search:
name: "basic: atlas-search Rust checks"
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 30
steps:
- uses: actions/checkout@v7

- name: Install Rust toolchain
run: rustup toolchain install 1.99.0 --profile minimal

- name: Test atlas-search
run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-search
run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-search --all-targets

- name: Test atlas-core
run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core
run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --all-targets

- name: Test atlas-proto
run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-proto --all-targets

# gate_a's model test stays #[ignore]d here: it requires
# ATLAS_ORT_LIB and the pinned model snapshot (see the test's
# file docs) — the venue runs the crate's remaining targets.
- name: Test atlas-embed
run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-embed --all-targets
19 changes: 15 additions & 4 deletions pkgs/atlas-search/crates/atlas-search/tests/cli_parity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,21 @@ fn build_fixture_db(tag: &str) -> PathBuf {
}

fn qvec_file() -> PathBuf {
let exp = expectations();
let p = std::env::temp_dir().join(format!("atlas-cli-qvec-{}.json", std::process::id()));
std::fs::write(&p, serde_json::to_string(&exp["qvec_raw"]).unwrap()).expect("write qvec");
p
// Written once per test-binary run. The path is named by pid and
// shared by every test in this binary, and the tests run in
// parallel: rewriting the file on every call let one test's CLI
// read it mid-truncate from another test's rewrite and fail with
// an empty-JSON error (seen under `cargo test --all-targets`,
// where the extra load widens the race window). The content is
// the shared golden fixture, identical for every caller.
static QVEC: std::sync::OnceLock<PathBuf> = std::sync::OnceLock::new();
QVEC.get_or_init(|| {
let exp = expectations();
let p = std::env::temp_dir().join(format!("atlas-cli-qvec-{}.json", std::process::id()));
std::fs::write(&p, serde_json::to_string(&exp["qvec_raw"]).unwrap()).expect("write qvec");
p
})
.clone()
}

fn run_bin(db: &Path, args: &[&str]) -> std::process::Output {
Expand Down
Loading