Skip to content

Commit

Permalink
ci: Fix dpdk build cache key generation.
Browse files Browse the repository at this point in the history
When new drivers are introduced, the cache key is not accurately computed.

Before the commit 1a1b310 ("ci: Separate DPDK from OVS build."), the
DPDK build process was integrated in .ci/linux-{setup,build}.sh scripts,
where specific lines were employed to generate the key. Since it is now
separated in .ci/dpdk-{setup,build}.sh, this patch computes the key based
on the content of those dedicated scripts.

Fixes: 4e90bac ("system-dpdk: Run traffic tests.")
Signed-off-by: Eelco Chaudron <[email protected]>
Acked-by: Simon Horman <[email protected]>
Reviewed-by: David Marchand <[email protected]>
  • Loading branch information
chaudron committed Dec 20, 2023
1 parent adfc3d4 commit 26ffd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# This also allows us to use cache from any branch as long as version
# and a way we're building DPDK stays the same.
run: |
grep -irE 'RTE_|DPDK|meson|ninja' .ci/dpdk-* > dpdk-ci-signature
cat .ci/dpdk-* > dpdk-ci-signature
grep -rwE 'DPDK_GIT|DPDK_VER' .github/ >> dpdk-ci-signature
if [ "${DPDK_VER##refs/*/}" != "${DPDK_VER}" ]; then
git ls-remote --heads $DPDK_GIT $DPDK_VER >> dpdk-ci-signature
Expand Down

0 comments on commit 26ffd19

Please sign in to comment.