Repository navigation
test(mcts): disable the wall-clock cap in seeded MCTS tests - #81
Merged
Merged
Conversation
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.
✅ Code Quality Report
Quality Gates
🎉 All quality gates passed! This PR maintains high code quality standards. 📊 View detailed MFCQI breakdownRun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes a runner-dependent flake from the seeded MCTS tests.
What changed
MCTSExplorationdefaults towall_clock_ms=200, so a test that fixesseedanditerationsand asserts a plan exists could still getNonewhen the runner is slow: the Python 3.11 macOS job of #77 failedtest_strategy_accepts_scalar_heuristic_kwargthat way while the other 14 jobs passed, and a rerun was green. The 29 seededMCTSExploration(...)configurations in the unit and integration tests now passwall_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
No
Fixesline: there is no issue for this flake.