Manu Bretelle
445486dcbf
ci: Pass arch parameter to setup-build-env
...
Since https://github.com/libbpf/ci/commit/1bc40aecb32f1e0f0dc2fff87e7c91b4d5fe03c5
arch parameter needs to be passed to `setup-build-env`
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2024-02-15 10:44:45 -08:00
Manu Bretelle
ec6f716eda
ci: Add bpf_nf/{xdp,tc-bpf}-ct to denylist for x86
...
This test is consistently failing on x86 for unknown reasons.
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2023-06-17 00:07:28 +00:00
Manu Bretelle
3c7fcfe0ce
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: fcf1fa29c8ea75bf104c35ce29b65ce2ba6a6a9d
Checkpoint bpf-next commit: 25085b4e9251c77758964a8e8651338972353642
Baseline bpf commit: f726e03564ef4e754dd93beb54303e2e1671049e
Checkpoint bpf commit: ad96f1c9138e0897bee7f7c5e54b3e24f8b62f57
Andrii Nakryiko (2):
libbpf: Ensure libbpf always opens files with O_CLOEXEC
libbpf: Ensure FD >= 3 during bpf_map__reuse_fd()
Florian Westphal (1):
bpf: netfilter: Add BPF_NETFILTER bpf_attach_type
JP Kobryn (1):
libbpf: Change var type in datasec resize func
Louis DeLosSantos (1):
bpf: Add table ID to bpf_fib_lookup BPF helper
include/uapi/linux/bpf.h | 22 +++++++++++++++++++---
src/btf.c | 2 +-
src/libbpf.c | 26 +++++++++++++-------------
src/libbpf_probes.c | 4 +++-
src/usdt.c | 5 ++---
5 files changed, 38 insertions(+), 21 deletions(-)
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2023-06-17 00:07:28 +00:00
Manu Bretelle
ef3e2ef82a
sync: auto-generate latest BPF helpers
...
Latest changes to BPF helper definitions.
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2023-06-17 00:07:28 +00:00
Manu Bretelle
cb23f981c3
ci: Dump kconfig before running tests
...
This helps troubleshooting by validating what the Kconfig of the testing
environment is.
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2023-06-15 14:04:53 -07:00
Manu Bretelle
9167308b4a
ci: remove s390x-self-hosted-builder from libbpf/libbpf
...
Those were moved to libbpf/ci: https://github.com/libbpf/ci/tree/master/rootfs/s390x-self-hosted-builder
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2022-11-16 13:58:37 -08:00
Manu Bretelle
7049d3a2ea
ci: Use s390x label to schedule workflows on s390x
...
The runners are having their labels uniformized across architecture.
z15 is being removed in favor of s390x.
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2022-11-16 13:55:31 -08:00
Manu Bretelle
63389d32f6
ci: remove mkrootfs from libbpf/libbpf
...
This is being moved to libbpf/ci instead https://github.com/libbpf/ci/pull/44
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2022-10-11 09:14:31 -07:00
chantra
6bd5b40bcd
ci: install wget package on s390x runners
...
`wget` is installed by default in GH runners.
It is used in
[`get-linux-source`](https://github.com/libbpf/ci/blob/79c799d6fb31071c139bafa69639501b6b8ab76b/get-linux-source/checkout_latest_kernel.sh#L32 )
to download source faster than through a git fetch.
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2022-10-06 14:24:50 -07:00
chantra
6cd8907a4a
ci: update actions-runner to 2.298.2 on s390x
...
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2022-10-06 14:24:50 -07:00
chantra
fa2875be8a
ci: install zstd on s390x runners
...
zstd is installed by [default in GH
runners](https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md ).
Having it by default, we can start leveraging it when uploading
artifacts. It has a better compression ratio and is multithreaded.
Signed-off-by: Manu Bretelle <chantr4@gmail.com >
2022-10-06 14:24:50 -07:00
chantra
27a93eae7c
[s390x][ci] Force replacing workers when a worker already exist with
...
same name.
This is essentially aligning whith what is done in
https://github.com/myoung34/docker-github-actions-runner/blob/0f2883e196f6fc1d9b63ee4473d534e387801f0b/entrypoint.sh#L90-L91
The issue at hand did manifest on s390x host when restarting a runner
and GH having an existing runner with the same name.
The logic was to default to not replace it and the runner would be
started with somne defaults, which mean the name would change, and the
labels would be lost, making the runner unusable (while still running): https://gist.github.com/chantra/ef0bd3e0c9e35bb82619636acf2f7c98
By replacing the existing runner, we will not get into that state.
2022-10-04 10:52:07 -07:00
chantra
c53af98d1a
[s390x][runner] update action runner to 2.296.0 (latest)
2022-08-27 17:14:28 -07:00
chantra
2c44349e09
[s390x][runners] Use consistent runner name across restarts
...
Currently, the runner name is taken from the docker container's
hostname.
This changes across restarts, causing the runner name to change across
restarts too.
This uses the host name to keep a consistent name.
2022-08-27 17:14:28 -07:00
chantra
7bf9ee2dba
[rootfs] update rootfs to ship with ethtool
...
Add `ethtool` as a dependency to the rootfs image.
Tested by running and building the rootfs images with both
`sudo ./mkrootfs_arch.sh`
and
`sudo ./mkrootfs_debian.sh`
and running in qemu with:
```
wget https://libbpf-ci.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-5.5.0
rootfs_img=rootfs.img kernel_bzimage=vmlinuz-5.5.0
mkdir rootfs
touch rootfs.img
truncate -s 2G rootfs.img
sudo mount -o loop rootfs.img rootfs
cat ~/Downloads/libbpf-vmtest-rootfs-2022.04.25.tar.zst | sudo tar -C rootfs -I zstd -xvf -
sudo install -m 755 -o root -g root /dev/stdin rootfs/etc/rcS.d/S50-startup <<'EOF'
ethtool -h
cat /etc/issue
EOF
qemu-system-x86_64 -nodefaults -display none -serial mon:stdio -enable-kvm -m 4G -drive file="${rootfs_img}",format=raw,index=1,media=disk,if=virtio,cache=none -kernel "${kernel_bzimage}" -append "root=/dev/vda rw console=ttyS0,115200"
```
The last block printed ethtool's help, confirming the presence of
ethtool in the rootfs.
`libbpf-vmtest-rootfs-2022.04.25.tar.zst` was generated and uploaded to S3. INDEX in libbpf/ci needs to be changed to make the CI pick it up.
2022-04-25 16:30:32 -07:00