From fcac6c4ae546e547011e8eb4ce3ff5fc433ef8af Mon Sep 17 00:00:00 2001 From: Igor Zamyatin Date: Mon, 1 Dec 2025 16:07:18 -0600 Subject: [PATCH 1/4] [CI] Fix coverity fail --- .github/workflows/coverity.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 877393c7a..0f6f2d1cc 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -25,6 +25,9 @@ jobs: timeout-minutes: 450 steps: + - name: Check disk usage + run: df -h + - name: Checkout repository uses: actions/checkout@v4 From 901b02f199c91ffd1d429be77e7f67cd8609d7cb Mon Sep 17 00:00:00 2001 From: Igor Zamyatin Date: Mon, 1 Dec 2025 17:37:46 -0600 Subject: [PATCH 2/4] Change steps' order --- .github/workflows/coverity.yml | 53 +++++++++++++++++----------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 0f6f2d1cc..5f261f779 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -56,32 +56,6 @@ jobs: conda install cmake ninja conda-forge::lit conda-forge::doxygen conda list - - name: Download coverity - if: steps.cache-coverity.outputs.cache-hit != 'true' - run: | - cd - curl -X POST https://scan.coverity.com/download/linux64 -d "token=$COV_TOKEN" --data-urlencode "project=MLIR Extensions" -o coverity.tgz - tar zxf coverity.tgz - mv -T cov-analysis-linux64-* coverity - - - name: Add coverity to PATH - run: | - echo "$HOME/coverity/bin" >> $GITHUB_PATH - - - name: Show coverity version - run: | - coverity --version - - - name: Add coverity inputs to env - run: | - version="$(git rev-parse --short HEAD)" - email="alexei.fedotov@intel.com" - project_id=30755 - - echo "project_id=$project_id" | tee -a $GITHUB_ENV - echo "email=$email" | tee -a $GITHUB_ENV - echo "version=$version" | tee -a $GITHUB_ENV - - name: Setup Cache Vars run: | echo 'LLVM_SHA<> $GITHUB_ENV @@ -121,6 +95,33 @@ jobs: -DLLVM_ENABLE_ZSTD=OFF \ -DCMAKE_INSTALL_PREFIX=/home/runner/work/llvm-mlir/_mlir_install cmake --build _build --target install + rm -rf _build + + - name: Download coverity + if: steps.cache-coverity.outputs.cache-hit != 'true' + run: | + cd + curl -X POST https://scan.coverity.com/download/linux64 -d "token=$COV_TOKEN" --data-urlencode "project=MLIR Extensions" -o coverity.tgz + tar zxf coverity.tgz + mv -T cov-analysis-linux64-* coverity + + - name: Add coverity to PATH + run: | + echo "$HOME/coverity/bin" >> $GITHUB_PATH + + - name: Show coverity version + run: | + coverity --version + + - name: Add coverity inputs to env + run: | + version="$(git rev-parse --short HEAD)" + email="alexei.fedotov@intel.com" + project_id=30755 + + echo "project_id=$project_id" | tee -a $GITHUB_ENV + echo "email=$email" | tee -a $GITHUB_ENV + echo "version=$version" | tee -a $GITHUB_ENV - name: Create coverity build run: | From 8abd8f6d8b495a649de3296fb0a33bd00765ba7c Mon Sep 17 00:00:00 2001 From: Igor Zamyatin Date: Mon, 1 Dec 2025 21:14:04 -0600 Subject: [PATCH 3/4] pre-commit fix --- .github/workflows/coverity.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 5f261f779..94e3c7056 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Check disk usage run: df -h - + - name: Checkout repository uses: actions/checkout@v4 From 0ca921a8f188ec3e59642250a10f0a143a6c2a7f Mon Sep 17 00:00:00 2001 From: Igor Zamyatin Date: Tue, 2 Dec 2025 11:46:54 -0600 Subject: [PATCH 4/4] Clean up --- .github/workflows/coverity.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 94e3c7056..409b6d269 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -25,9 +25,6 @@ jobs: timeout-minutes: 450 steps: - - name: Check disk usage - run: df -h - - name: Checkout repository uses: actions/checkout@v4