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
JeOS: expand image information #14873
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files |
|
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.
This is nice 😄
tests/jeos/image_info.pm
Outdated
record_info('GlobalReserve', "$globalreserve_mb MB"); | ||
|
||
# Get size of the root directories in KB (except /proc). | ||
my $dirs = script_output('du -d 1 --block-size=1K --exclude=/proc /'); |
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.
IMO not that useful, except maybe /usr
and /var
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.
Yeah, but as I'm running that in some loop way for all dirs, we can always chose to represent which data to display in the Graphs. Otherwise I would need to create a list of directories to analyze which may vary in the future. This way we just collect data for all directories under /
and later one we show what we want.
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.
You already exclude /proc
and you'd have to exclude some others anyway as the sizes are nonsensical (/sys
, /dev/
, /.snapshots
)...
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.
Would you prefer to collect only /usr
and /var
or do:
du -d 1 --block-size=1K --exclude=/proc --exclude=/sys --exclude=/dev /
?
Actually /.snapshots
is not empty when running this module (maybe due to firstboot)
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.
IMO just mentioning those two is simpler. Actually, there's also /tmp
, unlike on TW that's not a tmpfs yet.
/.snapshots
doesn't show up as empty, but the returned size is useless as it's backed by btrfs magic 🌈
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.
ok, will get the info of those 2 dirs then, thanks for the feedback!
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.
Actually, I also forgot about usr-merge only being in TW... For SLE we'd need /(s)bin
and /lib(64)
as well. I also forgot about /boot
... So excluding "special" mounts is probably the best idea.
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.
ok, moving back to my original idea :D
6e7a041
to
bc121e1
Compare
All suggestions have been addressed. |
2606f0d
to
8550f9c
Compare
Anyway, I'm gonna work on a small modification. |
753b85f
to
be6793d
Compare
With latest changes: https://openqa.opensuse.org/tests/2345457# |
@Vogtinator @mloviska any more feedback on this? |
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 neat picking comments :)
45dae97
to
f6e1a74
Compare
This PR breaks tests on RPi 2/3/4 on O3: https://progress.opensuse.org/issues/111362 |
Related tickets:
VR: https://openqa.opensuse.org/tests/2338516