-
Notifications
You must be signed in to change notification settings - Fork 165
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
wip: chore(userspace/libsinsp): move user group manager on container_id changed refresh to a RAII object #2192
Conversation
/milestone 0.20.0 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
0c9c8c6
to
93c0fb8
Compare
…anged refresh to a RAII object. Signed-off-by: Federico Di Pierro <[email protected]>
93c0fb8
to
d613b3e
Compare
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
Benchmarks diff from master
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2192 +/- ##
==========================================
+ Coverage 75.20% 75.22% +0.02%
==========================================
Files 259 259
Lines 33890 33901 +11
Branches 5801 5796 -5
==========================================
+ Hits 25487 25503 +16
+ Misses 8403 8398 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/close |
@FedeDP: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/reopen |
@FedeDP: Failed to re-open PR: state cannot be changed. The chore/user_grp_manager_parsers_raii branch was force-pushed or recreated. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area libsinsp
What this PR does / why we need it:
If a way similar to #2182, move logic to refresh user/group info upon container_id changes to a RAII object instantiated by
sinsp::next()
.This allows to take into consideration eventual "container_id" changes made by plugin parsers.
While right now there is no need for this, it will be mandatory for the container plugin, since it will be responsible to actually write the
container_id
state entry for threadinfo.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: