Skip to content
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

feat(crit): add crit x sk for sockets #138

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

snprajwal
Copy link
Member

@snprajwal snprajwal commented Jul 18, 2023

This is useful for implementing socket views in checkpointctl, going forward.

@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Patch coverage: 31.21% and project coverage change: -0.99% ⚠️

Comparison is base (d427e0c) 50.48% compared to head (3591115) 49.49%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
- Coverage   50.48%   49.49%   -0.99%     
==========================================
  Files          24       24              
  Lines        2601     2760     +159     
==========================================
+ Hits         1313     1366      +53     
- Misses       1104     1203      +99     
- Partials      184      191       +7     
Files Changed Coverage Δ
crit/crit.go 77.77% <ø> (ø)
crit/utils.go 38.58% <26.66%> (-3.39%) ⬇️
crit/explore.go 61.19% <33.33%> (-9.10%) ⬇️
crit/cli/cli.go 66.83% <80.00%> (+0.34%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

crit/cli/cli.go Outdated Show resolved Hide resolved
crit/Makefile Outdated Show resolved Hide resolved
crit/Makefile Outdated Show resolved Hide resolved
crit/Makefile Outdated Show resolved Hide resolved
crit/explore.go Show resolved Hide resolved
@snprajwal snprajwal force-pushed the explore-sk branch 2 times, most recently from c24d39f to 5ee0454 Compare August 1, 2023 10:31
crit/explore.go Outdated Show resolved Hide resolved
crit/explore.go Outdated Show resolved Hide resolved
crit/explore.go Outdated Show resolved Hide resolved
crit/utils.go Show resolved Hide resolved
crit/utils.go Outdated Show resolved Hide resolved
The options for `crit x` were using mix of plural and singular forms.
This now fixes it to use singular only.

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
The `countBytes()` utility was using SCREAMING_SNAKE_CASE for constants.
This has now been changed to use camelCase as per the Go convention.

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
Using `crit x fd` to list file descriptors now skips processes that have
no associated FDs.

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
@snprajwal snprajwal force-pushed the explore-sk branch 2 times, most recently from 179c833 to 0c11d9c Compare August 4, 2023 16:07
crit/utils.go Show resolved Hide resolved
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
Copy link
Member

@rst0git rst0git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rst0git rst0git merged commit 2210c02 into checkpoint-restore:master Aug 7, 2023
12 of 14 checks passed
@snprajwal snprajwal deleted the explore-sk branch August 8, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants