From 76e27bb3929acfaa65477b3db08c04accf6a4da8 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Wed, 19 Mar 2025 08:20:14 -0700 Subject: [PATCH 1/4] [SYCL][CI] Parametrize Coverity workflow dispatch This is useful for performing out-of-cycle tests, or checking specific branches. --- .github/workflows/sycl-coverity.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sycl-coverity.yml b/.github/workflows/sycl-coverity.yml index 8a269431a8edd..b306355eeaa42 100644 --- a/.github/workflows/sycl-coverity.yml +++ b/.github/workflows/sycl-coverity.yml @@ -1,6 +1,18 @@ name: Coverity on: workflow_dispatch: + inputs: + description: + description: 'Custom build description' + required: true + type: string + default: 'Out-of-order Coverity scan' + ref: + description: 'Git ref to checkout and scan' + required: true + type: string + default: 'sycl' + schedule: - cron: '0 0 * * 0' @@ -27,7 +39,7 @@ jobs: - uses: ./devops/actions/cached_checkout with: path: src - ref: ${{ github.sha }} + ref: ${{ inputs.ref || github.sha }} cache_path: "/__w/repo_cache/" - name: Get coverity tool @@ -58,8 +70,8 @@ jobs: run: | # Initialize a build. Fetch a cloud upload url. curl -X POST \ - -d version="sycl: ${{ github.sha }}" \ - -d description="Regular build" \ + -d version="sycl: ${{ inputs.ref || github.sha }}" \ + -d description="${{ inputs.description || "Regular build" }}" \ -d email=${{ secrets.COVERITY_EMAIL }} \ -d token=${{ secrets.COVERITY_TOKEN }} \ -d file_name="intel_llvm.tgz" \ From 5dd5ad783b0dbd07be837f2e6a4d4bc6c5e530d3 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Wed, 19 Mar 2025 08:26:29 -0700 Subject: [PATCH 2/4] An attempt to fix syntax errors --- .github/workflows/sycl-coverity.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sycl-coverity.yml b/.github/workflows/sycl-coverity.yml index b306355eeaa42..d9321e0cf5631 100644 --- a/.github/workflows/sycl-coverity.yml +++ b/.github/workflows/sycl-coverity.yml @@ -68,10 +68,12 @@ jobs: - name: Submit build run: | + default_description="Regular build" + # Initialize a build. Fetch a cloud upload url. curl -X POST \ -d version="sycl: ${{ inputs.ref || github.sha }}" \ - -d description="${{ inputs.description || "Regular build" }}" \ + -d description="${{ inputs.description || default_description }}" \ -d email=${{ secrets.COVERITY_EMAIL }} \ -d token=${{ secrets.COVERITY_TOKEN }} \ -d file_name="intel_llvm.tgz" \ From e06645aac8bdc5b847340d27bb5190aab4c887d2 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Wed, 19 Mar 2025 10:05:09 -0700 Subject: [PATCH 3/4] One more attempt to fix the workflow syntax --- .github/workflows/sycl-coverity.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sycl-coverity.yml b/.github/workflows/sycl-coverity.yml index d9321e0cf5631..ca6cd1508ab33 100644 --- a/.github/workflows/sycl-coverity.yml +++ b/.github/workflows/sycl-coverity.yml @@ -68,12 +68,15 @@ jobs: - name: Submit build run: | - default_description="Regular build" + default_description="${{ inputs.description }}" + if [[ -z $default_description ]]; then + default_description="Regular build" + fi # Initialize a build. Fetch a cloud upload url. curl -X POST \ -d version="sycl: ${{ inputs.ref || github.sha }}" \ - -d description="${{ inputs.description || default_description }}" \ + -d description="$default_description" \ -d email=${{ secrets.COVERITY_EMAIL }} \ -d token=${{ secrets.COVERITY_TOKEN }} \ -d file_name="intel_llvm.tgz" \ From 26d10227182524dc951777263a4d30e584b8a4a6 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Fri, 24 Oct 2025 12:21:01 +0200 Subject: [PATCH 4/4] Apply comments from previous review --- .github/workflows/sycl-coverity.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sycl-coverity.yml b/.github/workflows/sycl-coverity.yml index ca6cd1508ab33..ed25b320a55aa 100644 --- a/.github/workflows/sycl-coverity.yml +++ b/.github/workflows/sycl-coverity.yml @@ -75,7 +75,7 @@ jobs: # Initialize a build. Fetch a cloud upload url. curl -X POST \ - -d version="sycl: ${{ inputs.ref || github.sha }}" \ + -d version="${{ inputs.ref || github.sha }}" \ -d description="$default_description" \ -d email=${{ secrets.COVERITY_EMAIL }} \ -d token=${{ secrets.COVERITY_TOKEN }} \