-
Notifications
You must be signed in to change notification settings - Fork 24
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 tcpdump wrapper #873
base: main
Are you sure you want to change the base?
add tcpdump wrapper #873
Conversation
7e73f4b
to
79a26af
Compare
79a26af
to
5c23d78
Compare
5c23d78
to
7eca67a
Compare
7eca67a
to
6a1e004
Compare
ee1b2cb
to
4763432
Compare
58972bf
to
6c67199
Compare
6874c3b
to
e973bdf
Compare
0582d52
to
f9eb323
Compare
@@ -4,12 +4,16 @@ echo "Executing natlab process cleanup script" | |||
|
|||
for pid in $(ps -e -o pid=); do | |||
# Skip non-testing processes | |||
if ! grep --null-data --text KILL_ID /proc/${pid}/environ; then | |||
if ! grep --null-data --text "KILL_ID" /proc/${pid}/environ; then |
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.
🤔 Maybe it would be worth simply skipping KILL_ID
instead of adding KILL_ID
and then separately adding DO_NOT_KILL
?
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.
Note this is rather a nitpick, so it is up to you to decide whether this is relevant enough to fix.
if not isinstance(connections[0], DockerConnection): | ||
raise Exception("Not docker connection") | ||
|
||
async with make_tcpdump(connections): |
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.
I am thinking, maybe it would make sense to combine packet capture started in setup_check_interderp()
with the general one started in pytest_sessionstart
? Or are those non-overlapping in time? E.g. by adding DERP servers to the list here: https://github.com/NordSecurity/libtelio/pull/873/files#diff-0433c1e25b1d0e1b02e84b811ebf3db74a6d26d59f6439e210b242377d92836aR421
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.
Note this is rather a nitpick, so it is up to you to decide whether this is relevant enough to fix.
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.
+1.0
Description
DO_NOT_KILL
prefix to process kill_id, so it won't be killed during cleanup before each testGITLAB_CI
usage between code, previously wasGITLAB_CI
andCUSTOM_ENV_GITLAB_CI
☑️ Definition of Done checklist