-
Notifications
You must be signed in to change notification settings - Fork 8
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
Respect user defined/default sizes on upgrade #587
Conversation
|
Copilot
AI
left a comment
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 suggestion.
Comments skipped due to low confidence (1)
pkg/config/spec.go:2
- The error returned by 'runner.Run' is being ignored. Consider handling the error to ensure any issues are properly logged or managed.
out, _ := runner.Run("cat", "/proc/cmdline")
a69eecf
to
f3e44c9
Compare
Copilot
AI
left a comment
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 suggestions.
f3e44c9
to
a3fbb50
Compare
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.
Comments skipped due to low confidence (2)
pkg/config/spec.go:432
- The units for size should be consistent. Ensure that both sizes are represented in the same unit (MB or Mb).
cfg.Logger.Debugf("Calculated size (%dMB) is less than specified/default size (%dMB)", size, originalSize)
pkg/config/spec.go:431
- There is a potential type mismatch between
originalSize
(uint) andsize
(int64). Consider using the same type for both variables to avoid unexpected behavior.
if uint(size) < originalSize {
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #587 +/- ##
==========================================
+ Coverage 48.23% 48.34% +0.11%
==========================================
Files 48 48
Lines 6002 6017 +15
==========================================
+ Hits 2895 2909 +14
- Misses 2831 2833 +2
+ Partials 276 275 -1 ☔ View full report in Codecov by Sentry. |
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.
Copilot reviewed 5 out of 7 changed files in this pull request and generated no suggestions.
Files not reviewed (2)
- pkg/config/config_test.go: Evaluated as low risk
- pkg/action/upgrade_test.go: Evaluated as low risk
We were ignoring if the user set any values in there and just overwriting it with our calculated size Signed-off-by: Itxaka <[email protected]>
4a21f59
to
c8bf3f3
Compare
We were ignoring if the user set any values in there and just overwriting it with our calculated size
Fixes kairos-io/kairos#2985