Repository navigation
[CI fix] Call Trainer.train directly in the profiler-close test - #6358
Merged
Merged
Conversation
acisseJZhong
marked this pull request as ready for review
November 24, 2026 16:54
acisseJZhong
requested review from
fegin,
felipemello1,
shuhuayu,
tianyu-l and
wwwjn
as code owners
November 24, 2026 16:54
#6336 removed `@record` from `Trainer.train`, so `Trainer.train.__wrapped__` no longer exists and `test_train_passes_failure_to_profiler_close` (added in #5679) fails with `AttributeError: 'function' object has no attribute '__wrapped__'`, breaking CPU Unit Test on main. The test only used `__wrapped__` to bypass `@record`; call `Trainer.train` directly. Test plan: ``` pytest tests/unit_tests/cpu/test_trainer.py tests/unit_tests/cpu/test_train_main.py ``` Before: 3 failed. After: 59 passed. This PR was authored with an AI assistant.
acisseJZhong
force-pushed
the
acisseJZhong/fix-trainer-train-wrapped
branch
from
November 24, 2026 16:55
3973935 to
75076e4
Compare
tianyu-l
approved these changes
Nov 24, 2026
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.
Summary (human-written)
fix CI failing test
Agent details (AI-generated, to be reviewed by @acisseJZhong)