-
Notifications
You must be signed in to change notification settings - Fork 15
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 alias and '--all' option to checkpointctl show #46
Add alias and '--all' option to checkpointctl show #46
Conversation
995d6ab
to
6fd6177
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #46 +/- ##
==========================================
+ Coverage 77.73% 78.20% +0.46%
==========================================
Files 3 3
Lines 292 312 +20
==========================================
+ Hits 227 244 +17
- Misses 51 53 +2
- Partials 14 15 +1
☔ View full report in Codecov by Sentry. |
05d7be2
to
dd8f7aa
Compare
You should not replace |
@adrianreber Would it be required to have tests with |
So, we mark |
Yes, that would be my recommendation. |
Undecided. I would look at the existing code test coverage and decide using that data. If code is covered by tests then no need to introduce new tests. If it is not covered by tests, tests are needed.
Sounds good. |
97bdb5e
to
fb8eaa6
Compare
This patch adds an alias '--stats' for the '--print-stats' option, of the checkpointctl show command. Signed-off-by: Sankalp Acharya <[email protected]>
This patch adds '--all' option to checkpointctl chow command. The extended output for the same would look like: checkpointctl show checkpoint.tar.gz --all Displaying container checkpoint data from /tmp/checkpointctl1209302006 +----------------+--------------------------------+--------------+---------+---------------------------+--------+------------+-------------------+ | CONTAINER | IMAGE | ID | RUNTIME | CREATED | ENGINE | CHKPT SIZE | ROOT FS DIFF SIZE | +----------------+--------------------------------+--------------+---------+---------------------------+--------+------------+-------------------+ | cool_heyrovsky | docker.io/library/httpd:latest | 7fb253cbd7c0 | crun | 2023-04-14T04:46:00+05:30 | Podman | 5.3 MiB | 2.0 KiB | +----------------+--------------------------------+--------------+---------+---------------------------+--------+------------+-------------------+ Overview of Mounts +--------------------+--------+---------------------------+ | DESTINATION | TYPE | SOURCE | +--------------------+--------+---------------------------+ | /proc | proc | proc | | /dev | tmpfs | tmpfs | | /sys | sysfs | sysfs | | /dev/pts | devpts | devpts | | /dev/mqueue | mqueue | mqueue | | /etc/hostname | bind | ../userdata/hostname | | /run/.containerenv | bind | ../userdata/.containerenv | | /etc/resolv.conf | bind | ../userdata/resolv.conf | | /etc/hosts | bind | ../userdata/hosts | | /dev/shm | bind | ../userdata/shm | | /sys/fs/cgroup | cgroup | cgroup | +--------------------+--------+---------------------------+ CRIU dump statistics +---------------+-------------+--------------+---------------+---------------+---------------+ | FREEZING TIME | FROZEN TIME | MEMDUMP TIME | MEMWRITE TIME | PAGES SCANNED | PAGES WRITTEN | +---------------+-------------+--------------+---------------+---------------+---------------+ | 5333 us | 200318 us | 111941 us | 75612 us | 239777 | 45512 | +---------------+-------------+--------------+---------------+---------------+---------------+ Signed-off-by: Sankalp Acharya <[email protected]>
fb8eaa6
to
a4c85d7
Compare
Test Results19 tests +1 19 ✔️ +1 0s ⏱️ ±0s Results for commit 4866094. ± Comparison against base commit 15c560d. This pull request removes 4 and adds 5 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
@adrianreber Shall I add a shorthand for all the options of |
5b080af
to
181f656
Compare
This patch adds tests for the '--all' option for checkpointctl show. Signed-off-by: Sankalp Acharya <[email protected]>
62e89c7
to
4866094
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.
LGTM
No real opinion on this. I would not add it for now. Maybe later. |
Looks good, indeed. |
Happy to see so good test coverage. Nice. |
This pull request adds an alias for the
--print-stats
option, to be changed to--stats
to maintain consistency among option names ofcheckpointctl show
.Also, an
-all
option is added to display all additional information about the available checkpoints, which would extend the out to look like: