From ce8b0f4dffa6a5d483a54dfb4e5800c592879482 Mon Sep 17 00:00:00 2001 From: Frederick Lawler Date: Fri, 15 Mar 2024 15:06:18 -0500 Subject: [PATCH] Verify modules will compile for amd64 The user-mode linux architecture compile hides errors we may encounter when actually compiling for release. Therefore, we need to ensure our modules can at least be compiled against amd64. Introduce 3 new steps: 1. make allnoconfig Ensures that we're not introducing anything that would accidentally break a build where nothing is set. 2. make defconfig This is our control build. 3. make defconfig + config-integration This tests that we can do our control + custom options. i.e. enable modules we want to compile. These three tests should be enough to satisfy Intel's testing-bot. We'll skip allyesconfig since that takes a very long time to compile. Lastly, enable "continue-on-error" so that we can see the results for all 3 builds at once and not individually. Signed-off-by: Frederick Lawler --- .github/workflows/crypto-test-harness.yml | 37 +++++++++++++++++++++++ zeta/test-artifacts/config-integration | 1 + 2 files changed, 38 insertions(+) create mode 100644 zeta/test-artifacts/config-integration diff --git a/.github/workflows/crypto-test-harness.yml b/.github/workflows/crypto-test-harness.yml index 767de075a181d..4ef13e6823b28 100644 --- a/.github/workflows/crypto-test-harness.yml +++ b/.github/workflows/crypto-test-harness.yml @@ -43,3 +43,40 @@ jobs: with: name: tcrypt_job path: ./tcrypt.out + cfgcheck: + runs-on: ubuntu-22.04 + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y bc libelf-dev pahole + - name: Checkout + uses: actions/checkout@v4 + - name: allnoconfig + continue-on-error: true + run: | + mkdir -p results + make mrproper + make allnoconfig + make -j$(nproc) > results/config-allnoconfig.out 2>&1 + - name: defconfig + continue-on-error: true + run: | + make mrproper + make defconfig + make -j$(nproc) > results/config-defconfig.out 2>&1 + - name: defconfig + config-integration + continue-on-error: true + run: | + cp zeta/test-artifacts/config-integration . + make mrproper + make defconfig + ./scripts/kconfig/merge_config.sh -m .config config-integration + make olddefconfig + make -j$(nproc) > results/config-integration.out 2>&1 + - name: Collect artifacts + uses: actions/upload-artifact@v4 + if: success() || failure() + with: + name: cfgcheck_job + path: results diff --git a/zeta/test-artifacts/config-integration b/zeta/test-artifacts/config-integration new file mode 100644 index 0000000000000..2091782f8e75b --- /dev/null +++ b/zeta/test-artifacts/config-integration @@ -0,0 +1 @@ +CONFIG_CRYPTO_SHA2_HACL=m