Skip to content

Commit d539327

Browse files
authored
Merge branch 'trunk' into fix/setup-action-no-cleanup
2 parents b63e7ff + 9dc5609 commit d539327

12 files changed

Lines changed: 953 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ jobs:
8080
SPICEIO_REGION: ${{ vars.SPICEIO_REGION || 'us-west-1' }}
8181
run: ./scripts/test-sccache.sh
8282

83+
- name: Compile benchmarks
84+
run: cargo bench --locked --no-run
85+
8386
- name: Build release artifact
8487
run: cargo build --release --locked --bin spiceio
8588

CLAUDE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,27 @@ make release # optimized release build
2121
make lint # fmt-check + check + strict clippy + rustdoc warnings
2222
make test # sccache integration test (requires SPICEIO_SMB_USER/PASS)
2323
make fmt # auto-format
24+
make bench # criterion benchmarks (crypto + protocol)
25+
make bench-live # live throughput benchmarks against NAS
2426
make clean # cargo clean
2527
```
2628

29+
## Pre-PR checklist
30+
31+
Always run these before creating a PR — they mirror what CI checks:
32+
33+
```bash
34+
cargo fmt --all # auto-format first
35+
cargo fmt --all --check # verify no formatting diff remains
36+
cargo clippy --locked --all-targets --all-features -- -D warnings -D clippy::all -D clippy::cargo -A clippy::cargo-common-metadata
37+
RUSTDOCFLAGS="-D warnings" cargo doc --locked --workspace --no-deps --document-private-items
38+
cargo test --locked # unit tests must pass
39+
```
40+
41+
Or simply: `make lint && cargo test --locked`
42+
43+
The CI also runs `./scripts/test-sccache.sh` (sccache integration test) when SMB credentials are available.
44+
2745
The binary requires these environment variables:
2846
- `SPICEIO_SMB_SERVER` (required) — SMB server hostname or IP
2947
- `SPICEIO_SMB_USER` (required) — SMB username

0 commit comments

Comments
 (0)