Commit 2d9d7ac439 for openssl.org

commit 2d9d7ac439d56097137036da321ba9490262d0b6
Author: Milan Broz <gmazyland@gmail.com>
Date:   Fri Aug 14 17:01:14 2026 +0200

    ci: Reduce mfail fuzz test to only few corpus samples

    The fuzz_tests_mfail job ran malloc-failure injection over the full corpora.
    The full run takes minutes, and with a bigger corpus, tens of minutes.

    CI should only confirm that the fuzzers still build and process inputs with mfail.
    Reduce the run to just a few samples, which is enough to let the test run.

    Assisted-by: Claude:claude-opus-4-8
    Reviewed-by: Jakub Zelenka <jakub.zelenka@openssl.foundation>
    Reviewed-by: Richard Levitte <levitte@openssl.org>
    Reviewed-by: Neil Horman <nhorman@openssl.org>
    Merge-date: Tue Aug 18 12:17:34 2026
    Merged-from: https://github.com/openssl/openssl/pull/32384

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 80ad2cd7ef..d6830f4e4b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -474,13 +474,20 @@ jobs:

   fuzz_tests_mfail:
     runs-on: ubuntu-latest
-    timeout-minutes: 30
+    timeout-minutes: 15
     steps:
     - uses: actions/checkout@v6
       with:
         persist-credentials: false
     - name: checkout fuzz/corpora submodule
       run: git submodule update --init --depth 1 fuzz/corpora
+    - name: trim corpora to a few seeds per fuzzer
+      env:
+        FUZZ_CORPUS_KEEP: 5
+      run: |
+        for d in fuzz/corpora/*/; do
+          find "$d" -maxdepth 1 -type f | tail -n +$((FUZZ_CORPUS_KEEP + 1)) | xargs -r rm -f
+        done
     - name: Adjust ASLR for sanitizer
       run: sudo sysctl -w vm.mmap_rnd_bits=28
     - name: config
@@ -494,9 +501,6 @@ jobs:
     - name: make
       run: make -s -j4
     - name: make test (fuzz with mfail)
-      env:
-        OSSL_FUZZ_TEST_BUDGET: 1200
-        OSSL_FUZZ_TEST_JOBS: 4
       run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0 TESTS="test_fuzz*"
     - name: save artifacts
       if: success() || failure()