Skip to content
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

Incrementally remove resources from workflow state during deprovisioning #898

Merged

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Oct 3, 2024

Description

Removes resources from the workflow state list during deprovision incrementally. Retains the existing full-list update as a backup option.

Related Issues

Resolves #780
Resolves #691

Check List

  • New functionality includes testing.
  • Commits are signed per the DCO using --signoff.

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.

@github-actions github-actions bot added the backport 2.x backport PRs to 2.x branch label Oct 3, 2024
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 82.35294% with 6 lines in your changes missing coverage. Please review.

Project coverage is 78.01%. Comparing base (7a93d6c) to head (86ac8ea).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../transport/DeprovisionWorkflowTransportAction.java 40.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #898      +/-   ##
============================================
- Coverage     78.04%   78.01%   -0.03%     
- Complexity      977      982       +5     
============================================
  Files            97       97              
  Lines          4554     4576      +22     
  Branches        423      426       +3     
============================================
+ Hits           3554     3570      +16     
- Misses          823      829       +6     
  Partials        177      177              

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

@dbwiddis dbwiddis force-pushed the incremental-deprovision-state branch from 55fd673 to 86ac8ea Compare October 7, 2024 19:45
@dbwiddis dbwiddis merged commit 2f52b7e into opensearch-project:main Oct 9, 2024
20 checks passed
@dbwiddis dbwiddis deleted the incremental-deprovision-state branch October 9, 2024 04:03
@dbwiddis dbwiddis restored the incremental-deprovision-state branch October 9, 2024 04:04
@dbwiddis dbwiddis deleted the incremental-deprovision-state branch October 9, 2024 04:04
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 9, 2024
…ing (#898)

* Add method to delete a resource from the resources_created field

Signed-off-by: Daniel Widdis <[email protected]>

* Update deprovisioned resources incrementally

Signed-off-by: Daniel Widdis <[email protected]>

* Use Log4j ParameterizedMessage for string substitutions

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 2f52b7e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Oct 9, 2024
…ing deprovisioning (#910)

Incrementally remove resources from workflow state during deprovisioning (#898)

* Add method to delete a resource from the resources_created field



* Update deprovisioned resources incrementally



* Use Log4j ParameterizedMessage for string substitutions



---------


(cherry picked from commit 2f52b7e)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
3 participants