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

Add checks to plugin undeploy #986

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Add checks to plugin undeploy #986

merged 1 commit into from
Dec 18, 2023

Conversation

ryanmelt
Copy link
Member

No description provided.

@ryanmelt ryanmelt requested a review from jmthomas December 17, 2023 23:09
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented Dec 17, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (33fffc3) 75.42% compared to head (deb694d) 75.40%.
Report is 2 commits behind head on main.

Files Patch % Lines
openc3/lib/openc3/models/plugin_model.rb 45.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #986      +/-   ##
==========================================
- Coverage   75.42%   75.40%   -0.03%     
==========================================
  Files         589      589              
  Lines       42784    42800      +16     
  Branches      746      746              
==========================================
+ Hits        32271    32272       +1     
- Misses      10435    10450      +15     
  Partials       78       78              
Flag Coverage Δ
python 84.03% <ø> (-0.05%) ⬇️
ruby-api 48.62% <ø> (ø)
ruby-backend 80.51% <45.00%> (-0.04%) ⬇️

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.

Copy link
Member

@jmthomas jmthomas left a comment

Choose a reason for hiding this comment

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

Is this just a best effort with capturing possible errors? So on an upgrade if you get an error on uninstall the new install will not proceed.

@ryanmelt
Copy link
Member Author

I was thinking the error before we had was with people constantly upgrading the same plugin and sometimes having errors during the upgrade. A partial undeploy would leave a target behind. I wanted to better detect that situation, and make sure to cleanup as much as possible.

@ryanmelt ryanmelt merged commit b4c2afb into main Dec 18, 2023
23 of 24 checks passed
@ryanmelt ryanmelt deleted the plugin_undeploy_checks branch December 18, 2023 17:27
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.

2 participants