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

ci: minimal testing workflow #9

Merged
merged 3 commits into from
Jan 23, 2025
Merged

Conversation

theihor
Copy link
Contributor

@theihor theihor commented Jan 23, 2025

No description provided.

tests/run_test.sh Outdated Show resolved Hide resolved
@theihor theihor force-pushed the ci-setup-initial branch 3 times, most recently from f5d6b50 to d5748fe Compare January 23, 2025 22:26
Change run_test.sh and .bt script such that bpftrace terminates at the
end of target test program. Compare the test output after bpftrace has
terminated.

Using kill -INT to stop bpftrace may interfere with CI environment,
because this signal may be interpreted as a job failure.

I tried bpftrace -c [1] to work around this, however it turned out to
not work for these tests when there are tracepoints refering to
dynamic libraries. This is because the .so is not loaded yet when
bpftrace attempts to attach to the child process.

[1] https://docs.bpftrace.org/latest#-c-command

Signed-off-by: Ihor Solodrai <[email protected]>
.github/scripts/setup.sh installs dependencies necessary to build and
run the tests, assuming Ubuntu-like environment.

libfuse2t64 is a runtime dependency for appimages [1], and bpftrace
binary is distributed as an appimage.

[1] https://github.com/appimage/appimagekit/wiki/fuse

Signed-off-by: Ihor Solodrai <[email protected]>
@anakryiko anakryiko merged commit 7c158fe into libbpf:main Jan 23, 2025
1 check 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