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

crit: add FindPs method on PsTree #145

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

behouba
Copy link
Contributor

@behouba behouba commented Aug 3, 2023

This commit introduces a new method FindPs on PsTree. This method uses a depth-first search algorithm to find a process within a process tree. This addition will be beneficial for checkpointctl as it allows us to easily verify the existence of a given process ID when needed.

@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.17% 🎉

Comparison is base (7e6c665) 50.30% compared to head (1cd3730) 50.48%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #145      +/-   ##
==========================================
+ Coverage   50.30%   50.48%   +0.17%     
==========================================
  Files          24       24              
  Lines        2592     2601       +9     
==========================================
+ Hits         1304     1313       +9     
  Misses       1104     1104              
  Partials      184      184              
Files Changed Coverage Δ
crit/utils.go 41.97% <100.00%> (+3.41%) ⬆️

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

crit/explore.go Outdated Show resolved Hide resolved
This commit introduces a new method `FindPs` on `PsTree`. This method
uses a depth-first search algorithm to find a process within a process
tree. This addition will be beneficial for `checkpointctl` as it allows
us to easily verify the existence of a given process ID when needed.

Signed-off-by: Kouame Behouba Manasse <behouba@gmail.com>
Copy link
Member

@snprajwal snprajwal 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 a74ef62 into checkpoint-restore:master Aug 3, 2023
14 checks passed
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.

None yet

3 participants