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

Fix network worker smoke test #33

Merged
merged 3 commits into from
Dec 16, 2024
Merged

Fix network worker smoke test #33

merged 3 commits into from
Dec 16, 2024

Conversation

erthalion
Copy link
Collaborator

Don't bother with stopping every process one by one, correct endpoints gathering from logs and test configuration.

Don't bother with stopping every process one by one, correct
endpoints gathering from logs and test configuration.
Comment on lines +25 to +27
# start the server before bpftrace, to skip first accept
echo "Starting the server..."
berserker tests/workers/network/workload.server.toml &> /tmp/server.log &
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] Launching in background ('&') does not guarantee the server will have completed initialization before bpftrace is started. This would require that berserker decides when to daemonize to give back control.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, I'll add some mechanisms to make sure it's fully initialized.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And it's there.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is not what I had imagined, but it is simple and should work. Thanks !

@erthalion erthalion requested a review from ovalenti December 13, 2024 11:04
Copy link
Contributor

@ovalenti ovalenti left a comment

Choose a reason for hiding this comment

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

I have been trying it locally successfully. Looks good to me !

tests/workers/network/smoke.sh Show resolved Hide resolved
Co-authored-by: Olivier Valentin <[email protected]>
@erthalion erthalion merged commit ada3cdd into main Dec 16, 2024
2 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.

2 participants