Skip to content

Pending reboot#56489

Merged
dwoz merged 8 commits intosaltstack:masterfrom
twangboy:pending_reboot
Apr 26, 2020
Merged

Pending reboot#56489
dwoz merged 8 commits intosaltstack:masterfrom
twangboy:pending_reboot

Conversation

@twangboy
Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a new pending_reboot grain for Windows systems.

This moves code from many functions in the salt.modules.win_system execution module to a new salt.utils.win_system salt util. This code used by the new grain to determine if the system needs to be rebooted and must be available on minion start.

Tests written?

Yes

Commits signed with GPG?

Yes

@twangboy twangboy requested a review from a team as a code owner March 31, 2020 20:31
@ghost ghost requested a review from Ch3LL March 31, 2020 20:31
@twangboy twangboy added ZRelease-Sodium retired label Feature new functionality including changes to functionality and code refactors, etc. Grains Has Testcase severity-critical top severity, seen by most users, serious issues Windows labels Mar 31, 2020
@Ch3LL Ch3LL self-assigned this Apr 1, 2020
Copy link
Copy Markdown
Contributor

@Ch3LL Ch3LL left a comment

Choose a reason for hiding this comment

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

Looks like there are a couple failing tests.
Also Can you update the changelog and the sodium release notes with this new feature?

I think there would be added value in adding an integration test here as well to coincide with the unit tests?

Ch3LL
Ch3LL previously approved these changes Apr 9, 2020
@Ch3LL
Copy link
Copy Markdown
Contributor

Ch3LL commented Apr 9, 2020

@twangboy looks like it needs to be rebased and run black against this PR. Unfortunately I cannot see the test results so we will see the results after the rebase

@xeacott
Copy link
Copy Markdown
Contributor

xeacott commented Apr 14, 2020

This also links here ...
https://github.com/saltstack/release-planning/issues/197

cmcmarrow
cmcmarrow previously approved these changes Apr 15, 2020
@twangboy twangboy dismissed stale reviews from cmcmarrow and Ch3LL via 09f112c April 23, 2020 23:34
Adds pending_reboot graint
Adds new win_system salt util
Adds tests for new grain
Adds tests for new salt util
These have been moved to the win_system salt util and are being tested
there
@dwoz dwoz merged commit adec0c8 into saltstack:master Apr 26, 2020
@twangboy twangboy deleted the pending_reboot branch May 26, 2020 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature new functionality including changes to functionality and code refactors, etc. Grains severity-critical top severity, seen by most users, serious issues Windows ZRelease-Sodium retired label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants