bpftime icon indicating copy to clipboard operation
bpftime copied to clipboard

[FEATURE] Add CI to test bpftrace

Open yunwei37 opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe.

bpftrace is an important tool bpftime currently support. We need a CI test to ensure future development will not bring new bugs with bpftrace.

Describe the solution you'd like

Describe alternatives you've considered

Add a CI to test some bpftrace scripts in GitHub Actions.

The CI file can be similar to https://github.com/eunomia-bpf/bpftime/blob/master/.github/workflows/test-examples.yml

And the bpftrace commands can be taken from https://github.com/eunomia-bpf/bpftime/blob/master/example/bpftrace/README.md.

Provide usage examples

Additional context

yunwei37 avatar Feb 25 '24 19:02 yunwei37

Hey @yunwei37 I am already onto a workflow related issue, I think I got the idea what needs to be done, feel free to assign this to me!

Sanket-0510 avatar Feb 29 '24 15:02 Sanket-0510

Thanks @Sanket-0510 !

yunwei37 avatar Mar 01 '24 01:03 yunwei37

Hey @yunwei37 I am already onto a workflow related issue, I think I got the idea what needs to be done, feel free to assign this to me!

Hello, how's this issue going?

Officeyutong avatar Mar 29 '24 15:03 Officeyutong

Hey @yunwei37 I am already onto a workflow related issue, I think I got the idea what needs to be done, feel free to assign this to me!

Hello, how's this issue going?

I have exams this week, If anyone else wants to work on this feel free to assign this to them.

Sanket-0510 avatar Apr 03 '24 10:04 Sanket-0510

Test shows error on my site:

  • ubt 22.04 Jammy / make release-llvm-jit / bpftrace version 0.9.4
image

Tried some other versions of ubuntu (23.04 as bpftime requires), bpftime of other compilation commands (vm or not, jit or not), bpftrace versions(0.15+). Error stills. Could you please give further information about your successful test?

Kailian-Jacy avatar May 19 '24 17:05 Kailian-Jacy

Test shows error on my site:

  • ubt 22.04 Jammy / make release-llvm-jit / bpftrace version 0.9.4
image

Tried some other versions of ubuntu (23.04 as bpftime requires), bpftime of other compilation commands (vm or not, jit or not), bpftrace versions(0.15+). Error stills.

Could you please give further information about your successful test?

Please enable ENABLE_LLVM_SHARED when configuring using CMake. This should be enabled by default in the recent versions of bpftime

Officeyutong avatar May 20 '24 09:05 Officeyutong