libbpf / ci

BPF CI
Other
11 stars 24 forks source link

Fix prepare-rootfs action when using separate jobs #30

Closed danielocfb closed 2 years ago

danielocfb commented 2 years ago

With upcoming changes we will introduce more "stages" to the CI pipeline: instead of having basically a single job (though executed in different configurations), that does everything from installing dependencies to building to running tests in one go, we'd like to make building and running of tests (the two longest running parts of the overall pipeline) separate (but dependent on each other).

Currently, however, at least on s390x runners, that would fail, because tests are being run in a new container environment where side-effects of setup steps done earlier are no longer present. Specifically, as part of the build preparation we updated the apt repository information and made sure to install the zstd package.

With this change we make sure to repeat both steps as part of the 'test' stage (of which the prepare-rootfs action is part).

Signed-off-by: Daniel Müller deso@posteo.net

danielocfb commented 2 years ago

A sample run with staged jobs can be seen here: https://github.com/kernel-patches/bpf/actions/runs/2836233288