test(training): add reproducible verification target

This commit is contained in:
Josh Creek
2026-09-01 18:53:56 +01:00
parent e78f805c92
commit 066aee96cc
2 changed files with 15 additions and 1 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
.PHONY: verify-phase6 verify-enet-integration verify-steam-templates verify-supply-chain verify-kind-agones verify-allocated-compose verify-chaos-recovery verify-multiplayer-local verify-multiplayer-load verify-release-gate .PHONY: verify-phase6 verify-enet-integration verify-steam-templates verify-supply-chain verify-kind-agones verify-allocated-compose verify-chaos-recovery verify-multiplayer-local verify-multiplayer-load verify-release-gate verify-training
verify-multiplayer-local: verify-multiplayer-local:
bash scripts/verify_multiplayer_local.sh bash scripts/verify_multiplayer_local.sh
@@ -10,6 +10,10 @@ verify-release-gate:
@test -n "$(RELEASE_REPORT)" || (echo "RELEASE_REPORT=/path/to/report.json is required" >&2; exit 2) @test -n "$(RELEASE_REPORT)" || (echo "RELEASE_REPORT=/path/to/report.json is required" >&2; exit 2)
python3 scripts/verify_release_gate.py "$(RELEASE_REPORT)" python3 scripts/verify_release_gate.py "$(RELEASE_REPORT)"
verify-training:
@test -x training/.venv/bin/python || (echo "training/.venv/bin/python is required; see TRAINING.md" >&2; exit 2)
(cd training && .venv/bin/python -m unittest test_action_space.py test_evaluate.py test_generation5.py)
verify-phase6: verify-phase6:
bash scripts/verify_phase6.sh bash scripts/verify_phase6.sh
+10
View File
@@ -66,6 +66,16 @@ with `GODOT_BIN` or `--godot_bin` if yours lives elsewhere.)
## Run a training session ## Run a training session
Before starting a multi-hour curriculum run, execute the bounded policy and
orchestrator checks from the repository root:
```bash
make verify-training
```
The target changes into `training/` deliberately because the test modules
import sibling files such as `generation5.py` and `evaluate.py`.
```bash ```bash
cd training cd training
.venv/bin/python train.py --experiment run01 --timesteps 20000000 --n-parallel 6 --speedup 16 .venv/bin/python train.py --experiment run01 --timesteps 20000000 --n-parallel 6 --speedup 16