-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
94 lines (72 loc) · 2.51 KB
/
justfile
File metadata and controls
94 lines (72 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# InferaDB Engine Justfile
# Run `just --list` to see available recipes
# Default recipe: run standard tests
default: test
# =============================================================================
# Test Tiers
# =============================================================================
# Run fast tests (PR checks, pre-commit)
# - 10 proptest cases
# - Fail-fast enabled
# - ~15 seconds
test-fast:
PROPTEST_CASES=10 cargo nextest run --profile fast --features test-fast
# Run standard tests (regular CI, local development)
# - 50 proptest cases (or PROPTEST_CASES env var)
# - ~30 seconds
test:
cargo nextest run --profile ci
# Run full tests (nightly, release validation)
# - 500 proptest cases
# - Includes ignored tests (load, scale, stress)
# - ~5 minutes
test-full:
PROPTEST_CASES=500 cargo nextest run --profile full --features test-full --run-ignored all
# =============================================================================
# Development Shortcuts
# =============================================================================
# Run tests for a specific package
test-pkg pkg:
cargo nextest run --profile ci -p {{pkg}}
# Run tests matching a pattern
test-filter filter:
cargo nextest run --profile ci -E 'test({{filter}})'
# Run doc tests only
test-doc:
cargo test --workspace --doc
# =============================================================================
# Build & Lint
# =============================================================================
# Build all workspace crates
build:
cargo build --workspace
# Run clippy linter
lint:
cargo clippy --workspace --all-targets -- -D warnings
# Format code with nightly rustfmt
fmt:
cargo +nightly fmt --all
# Check formatting without modifying
fmt-check:
cargo +nightly fmt --all -- --check
# =============================================================================
# CI Simulation
# =============================================================================
# Simulate PR CI checks locally
ci-pr: fmt-check lint test-fast
# Simulate main branch CI checks locally
ci-main: fmt-check lint test
# Simulate full nightly CI checks locally
ci-nightly: fmt-check lint test-full
# =============================================================================
# Utilities
# =============================================================================
# Clean build artifacts
clean:
cargo clean
# Update dependencies
update:
cargo update
# Generate and open documentation
doc:
cargo doc --workspace --no-deps --open