-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaudit.sh
More file actions
executable file
·39 lines (29 loc) · 820 Bytes
/
audit.sh
File metadata and controls
executable file
·39 lines (29 loc) · 820 Bytes
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
#!/bin/bash
set -e
echo " Running Structural Audit (mypy + ruff)..."
mypy . || exit 1
ruff check . || exit 1
echo " Running Unit & Contract Tests..."
pytest -q || exit 1
echo " Running Pipeline Smoke Test (inference)..."
python inference.py > /dev/null 2>&1 || {
echo " inference.py failed!!!"
exit 1
}
echo " Running Environment Execution Check..."
python - <<EOF
from env.environment import ASCDCEnvironment
env = ASCDCEnvironment(seed=42)
obs = env.reset()
for _ in range(10):
obs, reward, done, info = env.step({"type": "noop"})
print("Env OK")
EOF
echo " Checking for silent failures (grep)..."
grep -R "except Exception:" -n . && echo " Found unsafe exception handlers"
echo " Checking API integrity..."
python - <<EOF
from server.app import app
print("API OK")
EOF
echo " ALL AUDITS PASSED"