Skip to content

Conversation

@chrisgalanis
Copy link
Contributor

@chrisgalanis chrisgalanis commented Dec 9, 2025

This pull request updates the device reboot logic in the OTA command implementation to use a new, centralized reboot function and improves error handling during the reboot process.

Device reboot logic update:

  • Replaces the previous system::reboot_orb call with the new reboot function, providing a more consistent and maintainable approach for device reboots. (hil/src/commands/ota/mod.rs)
  • Adds imports for the new reboot function and supporting modules, ensuring all dependencies for the updated reboot logic are included. (hil/src/commands/ota/mod.rs)

Error handling improvements:

  • Enhances error reporting by wrapping the reboot call with additional context using wrap_err_with, making failures easier to diagnose. (hil/src/commands/ota/mod.rs)

@chrisgalanis chrisgalanis requested a review from a team as a code owner December 9, 2025 23:14
Copy link
Contributor

@AlexKaravaev AlexKaravaev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, should be more stable

info!("Overlays wiped successfully, rebooting device");

system::reboot_orb(&session).await?;
reboot(false, None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we call this function hard_reboot_button to show that it's a long button press 🤔

i would prefer that the reboot_orb function work (and it should, otherwise it means we have a bug that should be fixed)

@AlexKaravaev AlexKaravaev merged commit 2b6c9dd into main Dec 25, 2025
24 checks passed
@AlexKaravaev AlexKaravaev deleted the chris/ota-hil branch December 25, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants