Skip to content

Conversation

feng-j678
Copy link
Contributor

@feng-j678 feng-j678 commented May 12, 2025

[x] explicit set the parameters
[x] correct the type error:
image

@Copilot Copilot AI review requested due to automatic review settings May 12, 2025 05:59
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

The purpose of this PR is to fix the parameter passing for the reboot management functions that were causing test failures.

  • Updated keyword parameters for the __reboot_wait_pulse call
  • Corrected the parameter name from maintenance_window_allowable_limit_remaining_in_minutes to maintenance_window_allowable_limit_remaining
Comments suppressed due to low confidence (1)

src/core/src/core_logic/RebootManager.py:145

  • Ensure that the __reboot_wait_pulse method's signature is updated to accept the new keyword parameter names, particularly the change from 'maintenance_window_allowable_limit_remaining_in_minutes' to 'maintenance_window_allowable_limit_remaining'.
self.__reboot_wait_pulse(elapsed_time_in_minutes = int(elapsed_time_in_minutes), max_allowable_time_to_reboot_in_minutes = int(max_allowable_time_to_reboot_in_minutes), maintenance_window_allowable_limit_remaining = int(maintenance_window_available_time_in_minutes - elapsed_time_in_minutes))

Copy link

codecov bot commented May 12, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.77%. Comparing base (0086d72) to head (65a9379).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/core/src/core_logic/RebootManager.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #322   +/-   ##
=======================================
  Coverage   93.77%   93.77%           
=======================================
  Files         103      103           
  Lines       17925    17925           
=======================================
  Hits        16810    16810           
  Misses       1115     1115           
Flag Coverage Δ
python27 93.77% <0.00%> (ø)
python312 93.77% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kjohn-msft kjohn-msft changed the title Bugfix/correct reboot mgm parms Bugfix: Correct reboot management parameters May 12, 2025
@feng-j678 feng-j678 merged commit e67d117 into master May 12, 2025
7 of 8 checks passed
@feng-j678 feng-j678 deleted the Bugfix/correct_reboot_mgm_parms branch May 12, 2025 16:39
@feng-j678 feng-j678 mentioned this pull request May 12, 2025
kjohn-msft pushed a commit that referenced this pull request May 12, 2025
this release includes:
[x] Bugfix: Restore patch mode config on Image Default
(#301)
[x] Clean-up: Envlayer dead-code clean-up for Environment Recorder and
Emulator ( #304)
[x] Bugfix: Reboot Manager behavior - multiple bugfixes & error rate
reduction (#310)
[x] Bugfix: Fix sudo check logs and wordings
(#315)
[x] Bugfix: Mitigation for environments with Python Unbuffered I/O 
 (#320)
[x] Bugfix: Correct reboot management
parameters(#322)
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.

3 participants