Skip to content

Commit 17d7e48

Browse files
authored
Coverity fixes (#110)
1 parent 998d6c2 commit 17d7e48

File tree

2 files changed

+11
-30
lines changed

2 files changed

+11
-30
lines changed

.github/workflows/coverity.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ permissions: read-all
1010
jobs:
1111
coverity:
1212
name: Coverity
13-
13+
env:
14+
GH_TOKEN: ${{ github.token }}
1415
runs-on:
15-
- ubuntu-latest
16+
- self-hosted
1617
defaults:
1718
run:
1819
shell: bash -noprofile --norc -eo pipefail {0}
@@ -21,30 +22,16 @@ jobs:
2122
- name: Checkout repository
2223
uses: actions/checkout@v4
2324

24-
- name: Install Python 3.10
25-
uses: actions/setup-python@v5
26-
with:
27-
python-version: '3.10'
28-
29-
- name: Load coverity from cache
30-
id: coverity-cache
31-
uses: ./.github/actions/load
32-
env:
33-
# Increase this value to reset cache
34-
CACHE_NUMBER: 1
35-
with:
36-
path: $HOME/coverity
37-
key: coverity-$CACHE_NUMBER
38-
3925
- name: Download coverity
40-
if: ${{ steps.coverity-cache.outputs.status == 'miss' }}
4126
env:
4227
COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }}
4328
run: |
4429
cd $HOME
45-
wget https://scan.coverity.com/download/linux64 --no-verbose --post-data "token=$COVERITY_TOKEN&project=intel%2Fgraph-compiler" -O coverity.tgz
46-
tar zxf coverity.tgz
47-
mv -T cov-analysis-linux64-* coverity
30+
test ! -f coverity/bin/cov-build && {
31+
curl -X POST https://scan.coverity.com/download/linux64 -d "token=$COVERITY_TOKEN&project=intel%2Fgraph-compiler" -o coverity.tgz
32+
tar zxf coverity.tgz
33+
mv -T cov-analysis-linux64-* coverity
34+
}
4835
4936
- name: Add coverity to PATH
5037
run: |
@@ -54,13 +41,6 @@ jobs:
5441
run: |
5542
coverity --version
5643
57-
- name: Save coverity to cache
58-
if: ${{ steps.coverity-cache.outputs.status == 'miss' }}
59-
uses: ./.github/actions/save
60-
with:
61-
path: ${{ steps.coverity-cache.outputs.path }}
62-
dest: ${{ steps.coverity-cache.outputs.dest }}
63-
6444
- name: Add coverity inputs to env
6545
run: |
6646
version_id=$(grep 'project(GraphCompiler VERSION' CMakeLists.txt | awk '{print $3}' | tr -d '"')
@@ -75,8 +55,7 @@ jobs:
7555
7656
- name: Run coverity build
7757
run: |
78-
pip install wheel
79-
cd python
58+
8059
cov-build --dir $HOME/cov-int scripts/compile.sh
8160
tail $HOME/cov-int/build-log.txt
8261

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[<img src="https://scan.coverity.com/projects/30281/badge.svg">](https://scan.coverity.com/projects/intel-graph-compiler)
2+
13
# Graph Compiler
24
Graph Compiler is an end-to-end, MLIR-based compiler designed to enhance the performance of deep learning workloads. It accepts computation graphs from the frontend, applies domain-specific optimizations and transformations, generates code, and manages runtime execution.
35

0 commit comments

Comments
 (0)