You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit df55ca3
Browse filesBrowse the repository at this point in the historyBrowse files
test: add veryslow marker and comprehensive training integration tests
- Add @pytest.mark.veryslow for full training iteration tests, excluded by
default even from `make test-slow`
- Expand env tests from 4 instantiation-only to 7 envs with full
reset + step verification (dict obs keys, shapes, reward, done)
- Add RSL-RL PPO 1-iteration test for Go2 and G1 environments
- Add MLX PPO 1-iteration test on real Go2 env (macOS only)
- Mark SAC/TD3 learn tests as veryslow
- Fix APPO learn test: use real env instead of DummyFlatTest which is not
registered in the collector subprocess (mp.spawn), causing 60s timeout
per iteration instead of actual training
- Add early crash detection in APPORunner.learn() — fail fast when
collector subprocess dies instead of waiting through 60s timeouts
- Fix RSL-RL wrapper _obs_to_tensordict to include "privileged" key in
TensorDict so rsl_rl v5 resolve_obs_groups can find it
Copy file name to clipboardExpand all lines: CLAUDE.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ make check # make format && make type
35
35
make test# Run all non-slow tests (default)
36
36
make test-cov # Run non-slow tests with coverage report
37
37
make test-slow # Run slow integration tests (requires MuJoCo)
38
+
make test-veryslow # Run full training iteration tests (minutes per test)
38
39
make test-all # make check && make test-cov
39
40
```
40
41
@@ -56,7 +57,10 @@ uv run pytest -m "not slow"
56
57
uv run pytest -m "not slow" --cov=unilab --cov-report=term-missing
57
58
58
59
# Slow integration tests (need MuJoCo installed)
59
-
uv run pytest -m slow -v
60
+
uv run pytest -m "slow and not veryslow" -v
61
+
62
+
# Very slow: full training iteration tests (minutes per test)
63
+
uv run pytest -m veryslow -v
60
64
```
61
65
62
66
## Test Structure
@@ -91,6 +95,9 @@ tests/
91
95
Tests marked `@pytest.mark.slow` require a real MuJoCo environment and are excluded from CI
92
96
by default. Run them locally when working on runner/learner code.
93
97
98
+
Tests marked `@pytest.mark.veryslow` run full training iterations (minutes per test). They are
99
+
excluded by default even when running `make test-slow`. Run `make test-veryslow` explicitly.
100
+
94
101
## Testing
95
102
96
103
**New features must ship with tests.** When developing a new feature or refactoring, design and write comprehensive unit tests alongside the feature code — not as an afterthought. Tests should cover:
0 commit comments