From 066aee96cc6127052688b97d53095b0ed4b471a6 Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 1 Sep 2026 18:53:56 +0100 Subject: [PATCH] test(training): add reproducible verification target --- Makefile | 6 +++++- TRAINING.md | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 21b36edf..69c7d10c 100644 --- a/Makefile +++ b/Makefile @@ -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: 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) 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: bash scripts/verify_phase6.sh diff --git a/TRAINING.md b/TRAINING.md index 0421607d..afb8e955 100644 --- a/TRAINING.md +++ b/TRAINING.md @@ -66,6 +66,16 @@ with `GODOT_BIN` or `--godot_bin` if yours lives elsewhere.) ## 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 cd training .venv/bin/python train.py --experiment run01 --timesteps 20000000 --n-parallel 6 --speedup 16