Skip to content

Commit 5b40d47

Browse files
committed
ci: In "Tetragon Go Test" add vmlinux in artifact when test fails
Kprobe are not extactly the same between arm and x86_64. So to help understand why some tests fails on one side and not the other, it can be helpful to use the vmlinux directly from the CI instead of deploying a specific VM with the same architecture to debug Signed-off-by: Tristan d'Audibert <[email protected]>
1 parent 35c62e0 commit 5b40d47

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/gotests.yml

+8
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,11 @@ jobs:
8888
name: tetragon-bugtool
8989
path: /tmp/tetragon-bugtool*
9090
retention-days: 5
91+
92+
- name: Upload vmlinux file
93+
if: failure()
94+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
95+
with:
96+
name: btf-vmlinux-${{ matrix.os }}
97+
path: /sys/kernel/btf/vmlinux
98+
retention-days: 5

0 commit comments

Comments
 (0)