-
Notifications
You must be signed in to change notification settings - Fork 116
/
azure-pipelines.yml
201 lines (185 loc) · 6.79 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
# Project developers. See the top-level LICENSE file for dates and other
# details. No copyright assignment is required to contribute to VisIt.
###############################################################################
# VisIt Azure CI Checks
###############################################################################
# Azure Commands Ref:
# https://aka.ms/yaml
#####
# TO USE A NEW CONTAINER, UPDATE TAG NAME HERE AS PART OF YOUR PR!
# Be sure to keep the list of files in python_test_files variable
# consistent with those same files listed in the paths trigger
#####
variables:
container_tag: visitdav/visit-ci-develop:2024-10-15-shac4fd59
python_test_files: >
../../src/test/tests/databases/silo.py
../../src/test/tests/databases/blueprint.py
../../src/test/tests/databases/blueprint_export.py
../../src/test/tests/hybrid/ddf.py
../../src/test/tests/unit/default_methods.py
../../src/test/tests/unit/convert2to3.py
../../src/test/tests/unit/atts_assign.py
../../src/test/tests/unit/test_value_simple.py
../../src/test/tests/unit/annotation_objects.py
../../src/test/tests/unit/protocol.py
../../src/test/tests/unit/utility.py
../../src/test/tests/expressions/ghost_zoneid_expr.py
../../src/test/tests/expressions/global_stats.py
../../src/test/tests/expressions/math_expr.py
../../src/test/tests/expressions/tensor_expr.py
# only build merge target pr to develop
trigger: none
pr:
branches:
include:
- develop
- '[0-9].[0-9]RC'
- '[0-9].[0-9][0-9]RC'
paths:
include:
- 'azure-pipelines.yml'
- '**/CMakeLists.txt'
- '**/*.cmake'
- '**/*.in'
- '**/*.C'
- '**/*.h'
- 'data/silo*'
- 'data/blueprint*'
- 'src/test/tests/databases/silo.py'
- 'src/test/tests/databases/blueprint.py'
- 'src/test/tests/databases/blueprint_export.py'
- 'src/test/tests/hybrid/ddf.py'
- 'src/test/tests/unit/default_methods.py'
- 'src/test/tests/unit/convert2to3.py'
- 'src/test/tests/unit/atts_assign.py'
- 'src/test/tests/unit/test_value_simple.py'
- 'src/test/tests/unit/annotation_objects.py'
- 'src/test/tests/unit/protocol.py'
- 'src/test/tests/unit/utility.py'
- 'src/test/tests/expressions/ghost_zoneid_expr.py'
- 'src/test/tests/expressions/global_stats.py'
- 'src/test/tests/expressions/math_expr.py'
- 'src/test/tests/expressions/tensor_expr.py'
# fast fail consistency checks
stages:
- stage: Consistency
jobs:
- job: BLT_Time_Travel_Check
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
clean: boolean
submodules: recursive
- script: |
#######################################
# run our consistency check script
#######################################
git fetch
python scripts/ci/check_blt_time_travel.py
displayName: 'BLT Time Travel Check'
# main checks build using docker containers that
# include tpls built with build_visit
- stage: Main
jobs:
- job: Main_Build
pool:
vmImage: 'ubuntu-latest'
timeoutInMinutes: 0
container: ${{ variables.container_tag }}
variables:
TPLS_PATH: /masonry/build-mb-develop-ci-smoke/thirdparty_shared/third_party/
steps:
- checkout: self
clean: boolean
submodules: recursive
- script: |
#################################
# configure
#################################
# setup path to cmake
export CMAKE_BIN_DIR=`ls -d ${TPLS_PATH}/cmake/*/ci/bin/`
export PATH=$PATH:$CMAKE_BIN_DIR
# make dir for build
mkdir build
cd build
# configure with cmake
cmake -DVISIT_CONFIG_SITE:PATH="/visit-ci-cfg.cmake" ../src
displayName: 'Configure with CMake'
- script: |
#################################
# build
#################################
# build
cd build
make -j 4
displayName: 'Build'
- script: |
#################################
# fetch subset of test data (silo + blueprint)
#################################
cd data
git lfs pull --include "**/silo*.tar.xz"
git lfs pull --include "**/blueprint*.tar.xz"
cd ../
git lfs pull --include test/baseline/databases/silo
git lfs pull --include test/baseline/databases/blueprint
git lfs pull --include test/baseline/databases/blueprint_export
git lfs pull --include test/baseline/hybrid/ddf
cd build/testdata/
for f in ../../data/silo*.tar.xz ../../data/blueprint*.tar.xz; do tar xvf "$f"; done
displayName: 'Prep Test Data'
- script: |
#################################
# run tests
#################################
# run test suite
cd build/test
# find qt, vtk, and ospray
export QT_LIB_DIR=`ls -d ${TPLS_PATH}/qt/*/ci/lib/`
export VTK_LIB_DIR=`ls -d ${TPLS_PATH}/vtk/*/ci/lib/`
export OSPRAY_LIB_DIR=`ls -d ${TPLS_PATH}/ospray/*/ci/ospray/lib/`
# add to ld_lib path (rpaths are missing?)
export LD_LIBRARY_PATH=${VTK_LIB_DIR}:${OSPRAY_LIB_DIR}:${QT_LIB_DIR}
# run test suite on silo + blueprint tests
export TESTS="$(python_test_files)"
./run_visit_test_suite.sh --fuzzy --pixdiff 10 --avgdiff 10 --numdiff 0.1 -v ${TESTS}
hasFailed="$(grep Failed\\\|Unacceptable\\\|OS-Killed output/html/index.html)"
if [[ -n "$hasFailed" ]]; then
exit 1 # tests failed
else
exit 0 # tests passed
fi
displayName: 'Run Tests'
- task: CopyFiles@2
inputs:
contents: 'build/test/output/html/**'
targetFolder: $(Build.ArtifactStagingDirectory)
condition: succeededOrFailed()
- script: |
#################################
# make docs
#################################
# make docs
cd build
make docs
displayName: 'Docs'
- task: CopyFiles@2
inputs:
contents: 'build/resources/help/en_US/manual/**'
targetFolder: $(Build.ArtifactStagingDirectory)
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: VisIt_Test_Outputs
condition: succeededOrFailed()
# - script: |
# #################################
# # install
# #################################
# cd build
# make install
# displayName: 'Install'