Skip to content

Commit 3ba78bc

Browse files
committed
fix(ci,bench): cross-compile abi3, Windows fcntl import, pre-commit cargo
- diffctx/Cargo.toml: enable pyo3 abi3-py310 — arm64 cross-compile no longer needs a target python interpreter (was blocking bench-image build at maturin --interpreter python3 lookup) - benchmarks/common.py: defer fcntl import into _bare_repo_lock so Windows test matrix can import patch_files without ModuleNotFoundError - .pre-commit-config.yaml: split cargo test the same way CI does (lib in dev, yaml_cases in release) — release+abort+test harness conflict surfaces here too - QA.md: document panic=abort/cargo-test interaction, abi3 cross-compile, SonarCloud Bearer auth, recurring rule patterns
1 parent fe4d217 commit 3ba78bc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,13 @@ repos:
274274
- id: cargo-test
275275
name: cargo test (Rust unit tests)
276276
language: system
277-
entry: bash -c 'cd diffctx && DIFFCTX_YAML_CASES_LIMIT=20 cargo test --release'
277+
# Two-step: lib unit tests in dev profile (panic=unwind harness),
278+
# yaml_cases integration test in release (harness=false, abort-safe).
279+
entry: |
280+
bash -c '
281+
cd diffctx &&
282+
cargo test --lib &&
283+
DIFFCTX_YAML_CASES_LIMIT=20 cargo test --release --test yaml_cases'
278284
pass_filenames: false
279285
files: ^diffctx/.*\.rs$
280286
types: [file]

0 commit comments

Comments
 (0)