-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset workflow state to initial state after successful deprovision #635
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #635 +/- ##
============================================
- Coverage 72.36% 72.33% -0.04%
Complexity 680 680
============================================
Files 82 82
Lines 3532 3528 -4
Branches 284 284
============================================
- Hits 2556 2552 -4
Misses 850 850
Partials 126 126 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
) Signed-off-by: Daniel Widdis <[email protected]> (cherry picked from commit 33ea800) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… deprovision (#643) Reset workflow state to initial state after successful deprovision (#635) (cherry picked from commit 33ea800) Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@@ -246,7 +242,7 @@ private void updateWorkflowState( | |||
Map.ofEntries( | |||
Map.entry(STATE_FIELD, State.COMPLETED), | |||
Map.entry(PROVISIONING_PROGRESS_FIELD, ProvisioningProgress.DONE), | |||
Map.entry(PROVISION_START_TIME_FIELD, Instant.now().toEpochMilli()), | |||
Map.entry(PROVISION_END_TIME_FIELD, Instant.now().toEpochMilli()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a new provision end time when we fail deprovisioning? Is the end time here not when the provisioning itself ends (last step is executed), unrelated to deprovisioning? cc: @dbwiddis
Description
On successful deprovision, resets the workflow state to its initial state, rather than simply updating the fields.
Issues Resolved
Fixes #578
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.