-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstack.env
More file actions
64 lines (55 loc) · 1.73 KB
/
stack.env
File metadata and controls
64 lines (55 loc) · 1.73 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
# Codetriever Development Environment Stack
# Purpose: Ensure consistent development environment for native + Docker deployments
# Usage: source stack.env && just validate-stack
# Rust Toolchain
RUST_TOOLCHAIN=stable
RUST_EDITION=2024
CARGO_RESOLVER=3
# Build Configuration
BUILD_FLAGS="--strict --warnings-as-errors"
CARGO_TERM_COLOR=always
# Development Tools
JUST_VERSION=1.35.0
RUSTFMT_VERSION=stable
CLIPPY_VERSION=stable
# Platform Requirements (enforced by validate-stack)
MIN_MACOS_VERSION=12.0
MIN_UBUNTU_VERSION=20.04
# Note: Windows requires WSL2 (Windows 10+)
# CI Environment Specification
CI_ENV=gh-actions
CI_RUST_TOOLCHAIN=stable
CI_CACHE_VERSION=v2
# Codetriever Configuration
export CODETRIEVER_ENV="${CODETRIEVER_ENV:-development}"
export EMBEDDING_BACKEND="${EMBEDDING_BACKEND:-native}"
export QDRANT_URL="${QDRANT_URL:-http://localhost:6334}"
export USE_METAL="${USE_METAL:-true}"
export EMBEDDING_MODEL="${EMBEDDING_MODEL:-jina-embeddings-v2-base-code}"
# Test Configuration
# Test profiles: fast (dev), thorough (pre-commit), ci (GitHub Actions)
TEST_PROFILE="${TEST_PROFILE:-fast}"
# Test environment variables based on profile
case "$TEST_PROFILE" in
fast)
export TEST_TIMEOUT_MS=5000
export TEST_ITERATIONS=10
;;
thorough)
export TEST_TIMEOUT_MS=10000
export TEST_ITERATIONS=100
;;
ci)
export TEST_TIMEOUT_MS=120000 # 2 minutes for CI
export TEST_ITERATIONS=1000
;;
*)
echo "⚠️ Unknown test profile: $TEST_PROFILE (using 'fast' defaults)"
export TEST_TIMEOUT_MS=5000
export TEST_ITERATIONS=10
;;
esac
# Validation Commands:
# > source stack.env
# > just validate-stack
# > MAOS_TEST_PROFILE=thorough just test