-
Notifications
You must be signed in to change notification settings - Fork 59
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
fix: Do not remove swap at every run #396
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #396 +/- ##
==========================================
+ Coverage 13.67% 13.69% +0.01%
==========================================
Files 8 8
Lines 1733 1731 -2
Branches 79 79
==========================================
Hits 237 237
+ Misses 1496 1494 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
[citest] |
well, the swap tests pass on el8 and el9 - as far as correctness I'll have to defer to @vojtechtrefny and @japokorn |
Just to be clear, the blivet module removes the swap on the live system and then re-adds it back in the subsequent one, which means if a system is using swap heavily there might be some serious issues. The swap is removed anyway correctly if people specify it as absent in the variables. |
Sadly I do not have any record or memory of why to do that, but I think that if all the tests are passing this change is probably good. |
Ok, I think we can merge this. The tests are passing and we definitely don't want to always remove and then re-add the swap entry and I don't see another reason for having this condition. |
Enhancement: The role is not idempotent if the system has swap. At every execution, the swap entries are remove and re-added in the next task.
Reason: There is specific code that deletes swap unconditionally. I could not find any apparent real reason for this piece of code to exist.
Result: Role is idempotent.