Repository navigation
fix(test): set _train_data_dump in the TROPD advantage-stage test - #4464
Merged
Merged
Conversation
#4347 made SingleControllerActor._advantage_stage read self._train_data_dump and set the attribute in every test that builds the controller with object.__new__. The TROPD test added by #4357 landed in between, so it never got the attribute and fails with AttributeError before its OPD assertions (L0_Unit_Tests_Other on main, run 37111913568). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yi-Fu Wu <[email protected]>
Contributor
Author
|
/ok to test ba53f99 |
terrykong
approved these changes
Oct 3, 2026
4 tasks done
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.
What does this PR do ?
Fixes the
L0_Unit_Tests_Otherfailure onmain(run 37111913568, commit fb8396a):#4347 made
SingleControllerActor._advantage_stagereadself._train_data_dump. It also setctrl._train_data_dump = Nonein every test that builds the controller withobject.__new__and so skips__init__. The TROPD test from #4357 merged before #4347 but wasn't in #4347's branch, so it never got the attribute. It fails before reaching its OPD assertions; the advantage math isn't wrong.This PR adds the same
ctrl._train_data_dump = Nonesetup line to that test. Production code is unchanged.Issues
None filed. This is the scheduled
mainCICD failure above.Testing
AttributeErroratsingle_controller.py:5460.tests/unit/single_controller/passes: 1076 passed.tests/unit/found no other test that builds the controller withobject.__new__, calls one of the methods that read_train_data_dump(_advantage_stage,_advantage_input_fields,_train_pump), and lacks the attribute.Before your PR is "Ready for review"
Pre checks:
🤖 Generated with Claude Code