-
Notifications
You must be signed in to change notification settings - Fork 4
Add colima VM diskspace check #218
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
Conversation
bd3355a to
7ff5777
Compare
| @checker | ||
| def check() -> tuple[bool, str]: | ||
| status = colima.check() | ||
| if status != colima.ColimaStatus.UP: |
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.
I'm not sure what the Colima status was when this happened. I assume this exits early if colima reports that it is up?
runningcode
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.
LGTM, just had one question on the PR
7ff5777 to
68e62b3
Compare
joshuarli
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.
colima VM's disk is copy-on-write, so even if you resize the disk to some higher amount it's likely the host disk runs out before your VM disk free % detection works
it'll be better to initially provision a large disk equal to the host's disk then simply check the host's disk free rather than the VM's
i'll rework this PR!
|
superseded by #219 |
An error at least @runningcode and I have encountered is colima running out of disk space.
This adds a
devenv doctorcheck to suggest a resolution to the dev.