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
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Run context misranking harness
run: |
mkdir -p tmp
cargo make e2e
cargo make test-e2e

- name: Upload harness outputs
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ jobs:
exit 1

- name: Run integration tests
run: cargo make test-all
run: cargo make test-rust-all
35 changes: 4 additions & 31 deletions .github/workflows/language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
rust:
name: Rust checks
repo:
name: Repository checks
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
Expand Down Expand Up @@ -72,37 +72,10 @@ jobs:
with:
tool: nextest

- name: Run lint
run: cargo make lint

- name: Run Rust format checks
run: cargo make fmt-rust-check

- name: Run tests
run: cargo make test-rust

toml:
name: TOML checks
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10

- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6
with:
cache: true
rustflags: ''

- name: Install cargo-make
uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595
with:
tool: cargo-make

- name: Install taplo
uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595
with:
tool: taplo

- name: Run TOML format checks
run: cargo make fmt-toml-check
- name: Run repository checks
run: cargo make check
38 changes: 6 additions & 32 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ jobs:
cache: true
rustflags: ''

- name: Install cargo-make
uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595
with:
tool: cargo-make

- name: Install Postgres client
run: |
sudo apt-get update
Expand All @@ -73,39 +78,8 @@ jobs:
echo "Postgres did not become ready in time."
exit 1

- name: Create schema
run: |
python3 - <<'PY' > tmp.schema.sql
from pathlib import Path

vector_dim = 4
root = Path(".")
sql_dir = root / "sql"

out = []
for raw_line in (sql_dir / "init.sql").read_text(encoding="utf-8").splitlines():
line = raw_line.strip()
if line.startswith(r"\ir "):
rel = line[len(r"\ir ") :].strip()
out.append((sql_dir / rel).read_text(encoding="utf-8"))
else:
out.append(raw_line)

expanded = "\n".join(out) + "\n"
print(expanded.replace("<VECTOR_DIM>", str(vector_dim)), end="")
PY

psql "${PG_DSN}" -v ON_ERROR_STOP=1 -f tmp.schema.sql

- name: Load trace gate fixture
run: psql "${PG_DSN}" -v ON_ERROR_STOP=1 -f .github/fixtures/trace_gate/fixture.sql

- name: Run trace regression gate
run: |
cargo run -p elf-eval --bin trace_regression_gate -- \
--config .github/fixtures/trace_gate/config.toml \
--gate .github/fixtures/trace_gate/gate.json \
--out trace_gate.report.json
run: TRACE_GATE_REPORT_PATH=trace_gate.report.json cargo make check-trace-gate

- name: Upload trace gate report
if: always()
Expand Down
Loading