Skip to content

test(mcts): disable the wall-clock cap in seeded MCTS tests - #81

Merged
bsbodden merged 1 commit into
mainfrom
test/mcts-deterministic-budget
Nov 15, 2026
Merged

bsbodden merged 1 commit into
mainfrom
test/mcts-deterministic-budget

Conversation

@bsbodden

@bsbodden bsbodden commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Removes a runner-dependent flake from the seeded MCTS tests.

What changed

MCTSExploration defaults to wall_clock_ms=200, so a test that fixes seed and iterations and asserts a plan exists could still get None when the runner is slow: the Python 3.11 macOS job of #77 failed test_strategy_accepts_scalar_heuristic_kwarg that way while the other 14 jobs passed, and a rerun was green. The 29 seeded MCTSExploration(...) configurations in the unit and integration tests now pass wall_clock_ms=0 (documented as disabling the wall-clock check), so their outcome depends only on the seed and the iteration budget. The tests that exercise the wall-clock budget itself (test_mcts_strategy.py, test_strategy_router.py, test_stochastic_rollout.py, test_mcts_tree_reuse_episode.py) already set it explicitly and are unchanged; the benchmark harness is untouched.

Verification

  • Full non-API suite: 1987 passed, 1 skipped; the 97 tests of the MCTS modules pass. No library code changes; black and isort clean.

No Fixes line: there is no issue for this flake.

MCTSExploration defaults to wall_clock_ms=200, so a seeded,
iteration-bounded test could still return no plan on a slow runner: the
Python 3.11 macOS job of #77 failed
test_strategy_accepts_scalar_heuristic_kwarg that way while the other 14
jobs passed. The 29 seeded configurations in the unit tests now pass
wall_clock_ms=0, which the docstring defines as "no wall-clock check",
so their outcome depends only on the seed and the iteration budget. The
tests that exercise the wall-clock budget itself already set it
explicitly and are unchanged.
@github-actions

Copy link
Copy Markdown

✅ Code Quality Report

Metric Score Status
MFCQI Score 0.8112487607087051 ✅ Good
Test Coverage 94% ✅ Good
Security Issues 0 ✅ Clean

Quality Gates

  • MFCQI Score: ✅ Minimum 0.75 (Current: 0.8112487607087051)
  • Test Coverage: ✅ Minimum 80% (Current: 94%)
  • Security: ✅ Zero vulnerabilities (Current: 0)

🎉 All quality gates passed! This PR maintains high code quality standards.

📊 View detailed MFCQI breakdown

Run uv run python -m mfcqi analyze langgoap locally to see detailed metrics breakdown.

@bsbodden
bsbodden merged commit 809bd2e into main Nov 15, 2026
19 checks passed
@bsbodden bsbodden added the maintenance CI/build/tooling maintenance label Nov 15, 2026
@bsbodden
bsbodden deleted the test/mcts-deterministic-budget branch November 15, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance CI/build/tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant