tmt: remove default reboot_cmd which causes issues with some tmt versions#710
tmt: remove default reboot_cmd which causes issues with some tmt versions#710
Conversation
✅ Deploy Preview for jumpstarter-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughThe TMT driver's dataclass default for the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/jumpstarter-driver-tmt/jumpstarter_driver_tmt/driver.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: Redirect rules - jumpstarter-docs
- GitHub Check: Header rules - jumpstarter-docs
- GitHub Check: Pages changed - jumpstarter-docs
- GitHub Check: build
- GitHub Check: pytest-matrix (ubuntu-24.04, 3.13)
- GitHub Check: pytest-matrix (macos-15, 3.11)
- GitHub Check: pytest-matrix (macos-15, 3.13)
- GitHub Check: pytest-matrix (ubuntu-24.04, 3.11)
- GitHub Check: pytest-matrix (macos-15, 3.12)
- GitHub Check: pytest-matrix (ubuntu-24.04, 3.12)
- GitHub Check: e2e
54c2b9e to
dfd52bc
Compare
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/jumpstarter-driver-tmt/jumpstarter_driver_tmt/driver.py (1)
11-11: Add docstring clarifying emptyreboot_cmdsemantics.Tests have been updated to reflect the new default (good!), but the TMT dataclass still lacks documentation explaining what an empty
reboot_cmdmeans. Based on the testtest_replace_provision_args_without_hard_rebootin driver_test.py, it appears an empty string skips the--hard-rebootflag in TMT provisioning.Consider adding a docstring or inline comment:
@dataclass(kw_only=True) class TMT(Driver): - """ driver for Jumpstarter""" + """Driver for Jumpstarter TMT integration. + + Attributes: + reboot_cmd: Command for hard reboots during TMT provisioning. + Empty string (default) omits --hard-reboot flag. + default_username: Default SSH username for TMT connections. + default_password: Default SSH password for TMT connections. + """ reboot_cmd: str = ""
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
uv.lockis excluded by!**/*.lock
📒 Files selected for processing (2)
packages/jumpstarter-driver-tmt/jumpstarter_driver_tmt/driver.py(1 hunks)packages/jumpstarter-driver-tmt/jumpstarter_driver_tmt/driver_test.py(4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: Redirect rules - jumpstarter-docs
- GitHub Check: Header rules - jumpstarter-docs
- GitHub Check: Pages changed - jumpstarter-docs
- GitHub Check: build
- GitHub Check: pytest-matrix (macos-15, 3.13)
- GitHub Check: pytest-matrix (ubuntu-24.04, 3.13)
- GitHub Check: pytest-matrix (macos-15, 3.12)
- GitHub Check: pytest-matrix (ubuntu-24.04, 3.11)
- GitHub Check: pytest-matrix (macos-15, 3.11)
- GitHub Check: pytest-matrix (ubuntu-24.04, 3.12)
- GitHub Check: e2e
🔇 Additional comments (2)
packages/jumpstarter-driver-tmt/jumpstarter_driver_tmt/driver_test.py (2)
137-137: LGTM! Test assertions updated correctly.These mock call assertions now correctly expect the new default
reboot_cmdvalue of""instead of"j power cycle". The changes align with the driver.py update.Also applies to: 151-151, 171-171
239-239: LGTM! Default value test updated correctly.The test now correctly asserts the new default
reboot_cmdvalue of"". This aligns with the driver.py change.
|
Successfully created backport PR for |
Summary by CodeRabbit