Skip to content

Commit 6c000ae

Browse files
committed
COVERITY: Update to the 2023 Cov module
1 parent 3e55cfe commit 6c000ae

4 files changed

Lines changed: 100 additions & 2 deletions

File tree

buildlib/pr/.bullseye_exlude

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
exclude source src/mads/sharp_layouts.c
2+
exclude source src/mads/adb_to_c_utils.c
3+
exclude source src/smx/smx_msg.pb.cc
4+
exclude source src/smx/smx_msg.pb.h
5+
exclude folder examples/
6+
exclude folder src/ras/
7+
exclude source src/common/hostlist.c
8+
exclude folder test/gtest/
9+
exclude folder /hpc/local/oss/protobuf/
10+
exclude source conftest.c

buildlib/pr/bullseye.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
parameters:
2+
demands: []
3+
container: rhel76
4+
5+
jobs:
6+
7+
########
8+
## from build-ucx
9+
10+
- job: UCX_build
11+
workspace:
12+
clean: outputs
13+
14+
container: ${{ parameters.container }}
15+
pool:
16+
name: MLNX
17+
demands: ${{ parameters.demands }}
18+
19+
steps:
20+
- checkout: UCX
21+
clean: true
22+
fetchDepth: 1
23+
24+
- bash: |
25+
set -eEx
26+
export PATH=/auto/app/BullsEye/BullseyeCoverage-Latest-x86/bin:$PATH
27+
export COVFILE=test.cov
28+
covselect --import .bullseye_exlude
29+
30+
gcc --version
31+
./autogen.sh
32+
./contrib/configure-release --without-go \
33+
--prefix=$(System.DefaultWorkingDirectory)/ucx_build
34+
35+
cov01 -1
36+
37+
make -s -j`nproc`
38+
cov01 -0
39+
make install ## do we need?
40+
41+
42+
covhtml -f $COVFILE jenkins/bullseye/output
43+
44+
displayName: Build with Bullseye
45+
46+
- task: PublishBuildArtifacts@1
47+
inputs:
48+
PathtoPublish: "$(Build.ArtifactStagingDirectory)"
49+
ArtifactName: ucx_build_$(Build.BuildId)
50+
51+
### from coverity.yml
52+
- job: Bullseye
53+
54+
workspace:
55+
clean: outputs
56+
pool:
57+
name: MLNX
58+
demands: ${{ parameters.demands }}
59+
container: ${{ parameters.container }}
60+
timeoutInMinutes: 90
61+
steps:
62+
- checkout: self
63+
clean: true
64+
fetchDepth: 100
65+
retryCountOnTaskFailure: 5
66+
- bash: |
67+
./buildlib/tools/coverity.sh ${{ mode }}
68+
res=$?
69+
reportExists=False
70+
set -x
71+
cov_error_folder=$(System.DefaultWorkingDirectory)/cov_build_${{ mode }}/output/errors
72+
echo "##vso[task.setvariable variable=cov_error_folder]$cov_error_folder"
73+
ls -la $cov_error_folder
74+
test -f $cov_error_folder/index.html && reportExists=True
75+
echo "##vso[task.setvariable variable=reportExists]$reportExists"
76+
if [[ $res -eq 0 ]] ; then
77+
echo "##vso[task.complete result=Succeeded;]Done"
78+
else
79+
echo "##vso[task.complete result=Failed;]Coverity have errors"
80+
fi
81+
displayName: bullseye
82+
env:
83+
BUILD_ID: "$(Build.BuildId)-$(Build.BuildNumber)"
84+
- task: PublishPipelineArtifact@1
85+
inputs:
86+
targetPath: $(cov_error_folder)
87+
artifactName: coverity_${{ mode }}
88+
condition: eq(variables['reportExists'], 'True')

buildlib/pr/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ stages:
299299
- template: coverity.yml
300300
parameters:
301301
demands: ucx_docker -equals yes
302-
container: coverity_rh7
302+
container: rhel90
303303

304304
- stage: Tests
305305
dependsOn: [Static_check]

buildlib/tools/coverity.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ realdir=$(realpath $(dirname $0))
44
source ${realdir}/common.sh
55
source ${realdir}/../az-helpers.sh
66

7-
COV_MODULE="tools/cov-2019.12"
7+
COV_MODULE="tools/cov-2023.12"
88

99
#
1010
# Run Coverity and report errors

0 commit comments

Comments
 (0)