1# 2# stage-1 take only a few minutes; they do not run the full test suite or external packages. 3# 4# stage-2 runs on MCS systems and may take 10 to 15 minutes. They run the full test suite but with limited mixture of external packages 5# 6# stage-3 runs on MCS systems and may take an hour or more. They run the full test suite and heavily test external packages, utilize valgrind etc 7# 8# The stage-(n) tests are only started if all of the stage-(n-1) tests run without error 9# You can limit the testing by using the variable STAGE with value 1 or 2 10# 11 12stages: 13 - stage-1 14 - stage-2 15 - stage-3 16 - stage-4 17variables: 18 GIT_STRATEGY: fetch 19 GIT_CLEAN_FLAGS: -ffdxq 20 TIMEOUT: 450 21 EXTRA_OPTIONS: -nox -nox_warning -malloc_dump 22 23# 24# The most basic template that most tests will expand upon 25# 26 27.test-basic: 28 interruptible: true 29 only: 30 refs: 31# Set with CI/CD Shedules - New Schedule 32 - schedules 33 - api 34# Set with CI/CD Pipelines - Run Pipeline 35 - web 36 - merge_requests 37 dependencies: [] 38 39.test: 40 extends: .test-basic 41 except: 42 variables: 43 # Skip if the docs-only label is attached to a merge request 44 - $CI_MERGE_REQUEST_LABELS =~ /(^|,)docs-only($|,)/ 45 - $PETSC_CI_SCHEDULED =~ /yes/ 46 47check-ci-settings: 48 extends: .test-basic 49 stage: .pre 50 tags: 51 - gce-stage1 52 script: 53 - lib/petsc/bin/maint/check-ci-settings.sh 54 55# 56# This provides the basic order of operations and options template for cloud based stage 1 tests. 57# Not all test-short need to follow this template but most will. 58# 59 60.stage-1: 61 extends: .test 62 stage: stage-1 63 tags: 64 - gce-u22-stage1 65 before_script: 66 - date 67 - hostname 68 - grep PRETTY_NAME /etc/os-release 69 - nproc 70 - lscpu 71 - ccache --zero-stats 72 script: 73 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 74 - if [ ! -z ${INIT_SCRIPT+x} ]; then echo "sourcing ${INIT_SCRIPT}"; if [ -f ${HOME}/${INIT_SCRIPT} ]; then source ${HOME}/${INIT_SCRIPT}; else source ${INIT_SCRIPT}; fi; fi 75 - printf "PATH:$PATH\n" 76 - printf "PYTHONPATH:$PYTHONPATH\n" 77 - printf "python:${PYTHON}\n" 78 - ${PYTHON} -m pip list --user 79 - printf "CONFIG_OPTS:${CONFIG_OPTS}\n" 80 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 81 - printf "MODULEPATH:$MODULEPATH\n" 82 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 83 - ${PYTHON} ./configure --with-debugging=0 COPTFLAGS='-O3 -march=native' CXXOPTFLAGS='-O3 -march=native' FOPTFLAGS='-O3 -march=native' ${CONFIG_OPTS} 84 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" CUDAFLAGS="${MAKE_CUDAFLAGS}" 85 - if [ ! -z ${ENABLE_CHECK+x} ]; then make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" CUDAFLAGS="${MAKE_CUDAFLAGS}" check; fi 86 - make CFLAGS="${MAKE_TEST_CFLAGS}" CXXFLAGS="${MAKE_TEST_CXXFLAGS}" FFLAGS="${MAKE_TEST_FFLAGS}" CUDAFLAGS="${MAKE_CUDAFLAGS}" allgtests-tap gmakesearch="${TEST_SEARCH}" TIMEOUT=${TIMEOUT} 87 - if [ ! -z ${ENABLE_COMPILETESTS+x} ]; then make -j 16 CFLAGS="${MAKE_TEST_CFLAGS}" CXXFLAGS="${MAKE_TEST_CXXFLAGS}" FFLAGS="${MAKE_TEST_FFLAGS}" test PRINTONLY=1; fi 88 variables: 89 PYTHON: python3 90 MAKE_CFLAGS: -Werror -Wmissing-field-initializers 91 MAKE_CXXFLAGS: -Werror -Wzero-as-null-pointer-constant 92 MAKE_FFLAGS: -Werror -fimplicit-none 93 MAKE_TEST_CFLAGS: -Werror 94 MAKE_TEST_CXXFLAGS: -Werror 95 MAKE_TEST_FFLAGS: -Werror 96 after_script: 97 - date 98 - ccache --show-stats 99 artifacts: 100 reports: 101 junit: arch-*/tests/testresults.xml 102 name: "$CI_JOB_NAME" 103 when: always 104 paths: 105 - arch-*/lib/petsc/conf/*.log 106 - arch-*/lib/pkgconfig/petsc.pc 107 - arch-*/tests/testresults.xml 108 - arch-*/tests/test_*_tap.log 109 - arch-*/tests/test_*_err.log 110 expire_in: 4 days 111 112# 113# The following tests run on the cloud as part of stage-1. 114# 115 116ompi-cuda: 117 extends: .stage-1 118 tags: 119 - cuda-stage1 120 variables: 121 CONFIG_OPTS: --with-mpi-dir=/nfs/gce/software/custom/linux-ubuntu22.04-x86_64/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.3.0/openmpi-4.1.3-qrpnszy --with-cuda=1 --with-cuda-arch=all-major --CUDAPPFLAGS=-Wno-deprecated-gpu-targets --with-fc=0 122 TEST_SEARCH: snes_tutorials-ex19_cuda% 123 ENABLE_CHECK: 1 124 MAKE_CXXFLAGS: -Werror 125 MAKE_CUDAFLAGS: -Xcompiler -Wall -Xcompiler -Werror 126 127mpich-cxx-py3: 128 extends: .stage-1 129 variables: 130 CONFIG_OPTS: --with-clanguage=cxx --with-fc=0 CXXFLAGS=-std=c++11 --with-strict-petscerrorcode 131 TEST_SEARCH: snes_tutorials-ex48% 132 LOAD_MODULES: gcc/12.1.0 mpich/4.1-gcc-12.1.0 133 134mpich-cxx-mlib: 135 extends: .stage-1 136 variables: 137 CONFIG_OPTS: --with-clanguage=cxx --with-single-library=0 --with-log=0 --with-info=0 --with-ctable=0 --with-is-color-value-type=short CXXFLAGS=-std=c++14 138 TEST_SEARCH: snes_tutorials-ex48% 139 LOAD_MODULES: gcc/12.1.0 mpich/4.1-gcc-12.1.0 140 141uni-complex-float-int64: 142 extends: .stage-1 143 variables: 144 CONFIG_OPTS: --with-mpi=0 --with-scalar-type=complex --with-precision=single --with-64-bit-indices 145 TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_% 146 LOAD_MODULES: gcc/12.1.0 147 148c99-mlib-static-py: 149 extends: .stage-1 150 variables: 151 CONFIG_OPTS: --with-single-library=0 --with-shared-libraries=0 --with-strict-petscerrorcode CFLAGS=-std=c99 FFLAGS=="-ffree-line-length-none -ffree-line-length-0" CXXFLAGS= 152 ENABLE_CHECK: 1 153 TEST_SEARCH: snes_tutorials-ex19% snes_tutorials-ex5f90t% 154 MAKE_TEST_FFLAGS: -Werror -std=f2008 155 LOAD_MODULES: gcc/12.1.0 mpich/4.1-gcc-12.1.0 156 157clang-uni: 158 extends: .stage-1 159 variables: 160 CONFIG_OPTS: --with-cc=clang --with-cxx=clang++ --with-mpi=0 --with-strict-petscerrorcode FPPFLAGS=-fsecond-underscore 161 MAKE_CFLAGS: -Werror -Wmissing-field-initializers -Wundef -Wextra-semi-stmt 162 MAKE_CXXFLAGS: -Werror -Wzero-as-null-pointer-constant -Wundef -Wextra-semi-stmt -Wextra-semi 163 MAKE_TEST_CFLAGS: -Werror -Wmissing-field-initializers -Wundef -Wextra-semi-stmt 164 MAKE_TEST_CXXFLAGS: -Werror -Wzero-as-null-pointer-constant -Wundef -Wextra-semi-stmt -Wextra-semi 165 TEST_SEARCH: snes_tutorials-ex48% snes_tutorials-ex5f% 166 ENABLE_COMPILETESTS: 1 167 168gcc-lto: 169 extends: .stage-1 170 variables: 171 CONFIG_OPTS: CFLAGS= CXXFLAGS= FFLAGS="-ffree-line-length-none -ffree-line-length-0" 172 MAKE_CFLAGS: -Werror -flto=4 -Werror=odr -Werror=lto-type-mismatch 173 MAKE_CXXFLAGS: -Werror -Wextra-semi -flto=4 -Werror=odr -Werror=lto-type-mismatch 174 MAKE_FFLAGS: -Werror -flto=4 -Werror=odr -Werror=lto-type-mismatch 175 TEST_SEARCH: snes_tutorials-ex19% snes_tutorials-ex5f% 176 LOAD_MODULES: gcc/12.1.0 mpich/4.1-gcc-12.1.0 177 178petsc4py-install: 179 extends: .stage-2 180 tags: 181 - gce-u22-stage1 182 variables: 183 PYTHON: python3 184 T_PREFIX: petsc-install 185 T_DESTDIR: petsc-destdir 186 T_PETSC4PY: src/binding/petsc4py 187 T_VALIDATE_CMD: lib/petsc/bin/maint/validate-petsc4py.sh 188 script: 189 - printf "PATH:$PATH\n" 190 - mkdir hide 191 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 192 - ${PYTHON} ./configure --prefix="${PWD}/${T_PREFIX}" --with-petsc4py=1 --with-debugging=0 193 - make CFLAGS=-Werror CXXFLAGS="-Werror -Wzero-as-null-pointer-constant" FFLAGS=-Werror 194 - printf "====== Test A. Install into staging directory then into prefix directory (mimics distro package recipe) =====\n" 195 - make install DESTDIR="${PWD}/${T_DESTDIR}" 196 - test "$(find ${PWD}/${T_PREFIX} -mindepth 1 | wc -l)" -eq 0 197 - test "$(find ${PWD}/${T_DESTDIR} -mindepth 1 | wc -l)" -gt 0 198 - (cd "${PWD}/${T_DESTDIR}" && find * -exec install -v -D "{}" "/{}" \; ) 199 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 200 - rm -r "${PWD}/${T_PREFIX}" "${PWD}/${T_DESTDIR}" && mkdir "${PWD}/${T_PREFIX}" 201 - printf "====== Test B. Install directly into prefix directory =====\n" 202 - make install 203 - test "$(find ${PWD}/${T_PREFIX} -mindepth 1 | wc -l)" -gt 0 204 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 205 - rm -r "${PWD}/${T_PREFIX}"/*/petsc4py* 206 - printf "====== Test C. Install manually with setuptools =====\n" 207 - export PETSC_DIR="${PWD}/${T_PREFIX}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py build) 208 - export PETSC_DIR="${PWD}/${T_PREFIX}" P="${PWD}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py install --install-lib="${P}/${T_PREFIX}/lib") 209 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 210 - rm -r "${PWD}/${T_PREFIX}"/*/petsc4py* 211 - printf "====== Test D. Install manually with setuptools with staging =====\n" 212 - export PETSC_DIR="${PWD}/${T_PREFIX}" P="${PWD}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py install --root="${P}/${T_DESTDIR}" --install-lib="${P}/${T_PREFIX}/lib") 213 - (cd "${PWD}/${T_DESTDIR}" && find * -exec install -v -D "{}" "/{}" \; ) 214 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 215 216petsc4py-pip: 217 extends: .stage-2 218 tags: 219 - gce-u22-stage1 220 variables: 221 PETSC_CONFIGURE_OPTIONS: --with-mpi=0 --with-fc=0 222 CFLAGS: -O0 223 script: 224 - python3 -m venv pip-builds 225 - source pip-builds/bin/activate 226 - python -m pip install --upgrade pip 227 - unset PETSC_DIR PETSC_ARCH 228 - export PIP_WHEEL_DIR="${PWD}/wheelhouse" 229 - export PIP_FIND_LINKS="${PIP_WHEEL_DIR}" 230 - mkdir -p "${PIP_WHEEL_DIR}" 231 - python -m pip wheel . 232 - python -m pip wheel src/binding/petsc4py 233 - python -m pip install --pre --no-index --no-cache-dir petsc4py 234 - python -m pip list 235 - python -m petsc --prefix 236 - python -m petsc4py 237 238checksource: 239 extends: .test-basic 240 stage: .pre 241 tags: 242 - gce-u22-stage1 243 script: 244 - python3 ./configure --with-mpi=0 --with-fc=0 --with-cxx=0 --with-x=0 --with-bison=0 --with-cmake=0 --with-pthread=0 --with-regex=0 245 - vermin --version 246 - make vermin 247 - PATH=/nfs/gce/projects/petsc/soft/u22.04/spack-2025-03-07-llvm/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.4.0/llvm-20.1.0-c5x4oa5ucvupe7j7zyqgiotsfhpvcl4k/bin:$PATH make checkclangformat SHELL=bash 248 - make checkbadSource SHELL=bash 249 - make checkbadFileChange SHELL=bash 250 - make -f gmakefile check_output SHELL=bash 251 - make check_petsc4py_rst 252 - make -C src/binding/petsc4py lint 253 artifacts: 254 name: "$CI_JOB_NAME" 255 when: always 256 paths: 257 - arch-*/lib/petsc/conf/*.patch 258 - arch-*/lib/petsc/conf/*.log 259 expire_in: 4 days 260 261pause-for-approval: 262 extends: .test 263 stage: .pre 264 tags: 265 - gce-stage1 266 only: 267 refs: 268 - merge_requests 269 variables: 270 - $CI_MERGE_REQUEST_EVENT_TYPE == "merged_result" 271 - $CI_MERGE_REQUEST_EVENT_TYPE == "detached" 272 script: 273 - echo "pause-for-approval has no script to run" 274 variables: 275 GIT_STRATEGY: none 276 when: manual 277 allow_failure: false 278 279# 280# Basic template for code coverage generation. Tests should additionally inherit from the more 281# specialized OS-specific versions instead of this one. 282# 283 284.coverage-generate: 285 variables: 286 RUN_GCOV: 1 287 RUN_GCOV_OPTIONS: --decisions 288 289.coverage-disable: 290 variables: 291 RUN_GCOV: 0 292 293# 294# This provides the basic order of operations and options template for stage-2,3 tests. 295# Not all stage-2,3 need to follow this template, but most will. 296# 297.stage-23: 298 extends: 299 - .test 300 - .coverage-generate 301 script: 302 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 303 - if [ ! -z ${GCOV_MODULES+x} ]; then module --trace load ${GCOV_MODULES}; module list; fi 304 - if [ ! -z ${INIT_SCRIPT+x} ]; then echo "sourcing ${INIT_SCRIPT}"; if [ -f ${HOME}/${INIT_SCRIPT} ]; then source ${HOME}/${INIT_SCRIPT}; else source ${INIT_SCRIPT}; fi; fi 305 - if [ "${RUN_GCOV}" == 1 ]; then 306 printf "RUN_GCOV_OPTIONS:$RUN_GCOV_OPTIONS\n"; 307 gcovr --version; 308 fi 309 - if [ -d ${HOME}/petsc-hash-pkgs/ ]; then find ${HOME}/petsc-hash-pkgs/ -maxdepth 1 -mindepth 1 -type d -mtime +25 -exec touch {} \; -exec rm -rf {} \; ; fi 310 - printf "PATH:$PATH\n" 311 - printf "PYTHONPATH:$PYTHONPATH\n" 312 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 313 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 314 - printf "./config/examples/${TEST_ARCH}.py\n" 315 - cat ./config/examples/${TEST_ARCH}.py 316 - ./config/examples/${TEST_ARCH}.py || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 317 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" CUDAFLAGS="${MAKE_CUDAFLAGS}" || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 318 - export ASAN_OPTIONS="log_path=stdout:detect_leaks=false" UBSAN_OPTIONS="suppressions=${PWD}/share/petsc/suppressions/ubsan" # only needed for -fsanitize=undefined (but harmless otherwise) 319 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" CUDAFLAGS="${MAKE_CUDAFLAGS}" check || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 320 - make updatedatafiles 321 - if [ -z ${DISABLE_PETSC4PY_TESTS+x} ]; then if [ -z ${ENABLE_PETSC4PY_LDPRELOAD+x} ]; then echo "NOT using LD_PRELOAD"; make petsc4pytest; else echo "using LD_PRELOAD"; LD_PRELOAD=${PWD}/${TEST_ARCH}/lib/libpetsc.so make petsc4pytest; fi; fi 322 - if [ -z ${DISABLE_TESTS+x} ]; then make cleantest && make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" CUDAFLAGS="${MAKE_CUDAFLAGS}" allgtests-tap TIMEOUT=${TIMEOUT} ${TEST_OPTS} || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi; fi 323 - if [ "${RUN_GCOV}" == 1 ]; then make gcov PETSC_GCOV_OPTIONS="${RUN_GCOV_OPTIONS}"; fi 324 artifacts: 325 reports: 326 junit: arch-*/tests/testresults.xml 327 name: "$CI_JOB_NAME" 328 when: always 329 paths: 330 - arch-*/lib/petsc/conf/*.log 331 - arch-*/lib/pkgconfig/petsc.pc 332 - arch-*/tests/testresults.xml 333 - arch-*/tests/test_arch-*_tap.log 334 - arch-*/tests/test_arch-*_err.log 335 - arch-*/arch-*-gcovr-report.json.tar.bz2 336 expire_in: 4 days 337 variables: 338 OPENBLAS_NUM_THREADS: 1 339 340.stage-2: 341 extends: .stage-23 342 stage: stage-2 343 344.stage-3: 345 extends: .stage-23 346 stage: stage-3 347 348# 349# The following provide templates for various OSes for pre/post info 350# 351 352.linux_test_noflags: 353 before_script: 354 - date 355 - hostname 356 - grep PRETTY_NAME /etc/os-release 357 - nproc 358 - lscpu 359 - ccache --zero-stats 360 after_script: 361 - date 362 - ccache --show-stats 363 364.linux_test_nofflags: 365 extends: .linux_test_noflags 366 variables: 367 MAKE_CFLAGS: -Werror 368 MAKE_CXXFLAGS: -Werror 369 370.linux_test: 371 extends: .linux_test_noflags 372 variables: 373 MAKE_CFLAGS: -Werror 374 MAKE_CXXFLAGS: -Werror 375 MAKE_FFLAGS: -Werror 376 377.freebsd_test: 378 extends: 379 - .coverage-disable 380 variables: 381 MAKE_CFLAGS: -Werror 382 MAKE_CXXFLAGS: -Werror 383 MAKE_FFLAGS: -Werror 384 before_script: 385 - date 386 - hostname 387 - freebsd-version 388 - echo $(sysctl -n hw.ncpu) 389 - ccache --zero-stats 390 after_script: 391 - date 392 - ccache --show-stats 393 394.macos_test: 395 variables: 396 MAKE_CFLAGS: -Werror 397 MAKE_CXXFLAGS: -Werror 398 MAKE_FFLAGS: -Werror 399 before_script: 400 - date 401 - hostname 402 - sw_vers -productVersion 403 - echo $(sysctl -n hw.ncpu) 404 - ccache --zero-stats 405 after_script: 406 - date 407 - ccache --show-stats 408 409.mswin_test: 410 extends: 411 - .coverage-disable 412 before_script: 413 - date 414 - hostname 415 - uname -a 416 - nproc 417 after_script: 418 - date 419 420# 421# The following tests run as part of stage-2. 422# 423# The tags variable used in the tests below connects the particular test with the runners 424# listed on the left hand side of https://gitlab.com/petsc/petsc/-/settings/ci_cd. 425# For example the test 'linux-sycl-double' any runner that has the tags 'gce-u22-stage3, linux-fast' 426# (in a blue box beneath it) 427# 428 429macos-arm: 430 extends: 431 - .stage-3 432 - .macos_test 433 - .coverage-disable 434 tags: 435 - os:macos-arm 436 variables: 437 TEST_ARCH: arch-ci-macos-arm 438 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout 439 INIT_SCRIPT: .zprofile 440 441freebsd-cxx-cmplx-64idx-dbg: 442 extends: 443 - .stage-2 444 - .freebsd_test 445 tags: 446 - os:fbsd 447 variables: 448 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-64idx-dbg 449 450freebsd-c-single-opt: 451 extends: 452 - .stage-2 453 - .freebsd_test 454 tags: 455 - os:fbsd 456 variables: 457 TEST_ARCH: arch-ci-freebsd-c-single-opt 458 459mswin-opt-impi: 460 extends: 461 - .stage-3 462 - .mswin_test 463 tags: 464 - mswin-stage3 465 variables: 466 TEST_ARCH: arch-ci-mswin-opt-impi 467 TEST_OPTS: search='ksp_ksp_tests*' 468 469linux-gcc-quad-64idx-dbg: 470 extends: 471 - .stage-2 472 - .linux_test 473 tags: 474 - gce-stage2 475 variables: 476 TEST_ARCH: arch-ci-linux-gcc-quad-64idx-dbg 477 478linux-gcc-pkgs-opt: 479 extends: 480 - .stage-2 481 - .linux_test 482 tags: 483 - gce-stage2 484 variables: 485 TEST_ARCH: arch-ci-linux-gcc-pkgs-opt 486 except: 487 variables: 488 - $PETSC_CI_SCHEDULED =~ /yes/ 489 490linux-gcc-complex-opt-32bit: 491 extends: 492 - .stage-2 493 - .linux_test 494 tags: 495 - gce-stage2 496 variables: 497 TEST_ARCH: arch-ci-linux-gcc-complex-opt-32bit 498 499linux-emcc: 500 extends: 501 - .stage-2 502 - .linux_test 503 - .coverage-disable 504 tags: 505 - gce-stage2 506 variables: 507 TEST_ARCH: arch-ci-linux-emcc 508 INIT_SCRIPT: /nfs/gce/projects/petsc/soft/u22.04/emsdk/emsdk_env.sh 509 DISABLE_TESTS: 1 510 511# 512# The following tests run as part of stage-3. 513# 514 515freebsd-cxx-cmplx-pkgs-dbg: 516 extends: 517 - .stage-3 518 - .freebsd_test 519 tags: 520 - os:fbsd 521 variables: 522 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-pkgs-dbg 523 524freebsd-cxx-pkgs-opt: 525 extends: 526 - .stage-3 527 - .freebsd_test 528 tags: 529 - os:fbsd 530 variables: 531 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false 532 TEST_ARCH: arch-ci-freebsd-cxx-pkgs-opt 533 534freebsd-pkgs-opt: 535 extends: 536 - .stage-3 537 - .freebsd_test 538 tags: 539 - os:fbsd 540 variables: 541 TEST_ARCH: arch-ci-freebsd-pkgs-opt 542 MAKE_CFLAGS: -DPETSC_SKIP_COMPLEX -Werror 543 544linux-hip-double: 545 extends: 546 - .stage-3 547 - .linux_test_noflags 548 - .coverage-disable 549 tags: 550 - gpu:amd, os:linux 551 variables: 552 TEST_ARCH: arch-ci-linux-hip-double 553 554linux-hip-cmplx: 555 extends: 556 - .stage-3 557 - .linux_test_noflags 558 - .coverage-disable 559 tags: 560 - gpu:amd, os:linux 561 variables: 562 TEST_ARCH: arch-ci-linux-hip-cmplx 563 564linux-sycl-double: 565 extends: 566 - .stage-3 567 - .linux_test_nofflags 568 - .coverage-disable 569 tags: 570 - gce-u22-stage3, linux-fast 571 variables: 572 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/oneapi/modulefiles 573 TEST_ARCH: arch-ci-linux-sycl-double 574 LOAD_MODULES: compiler/latest mpi/latest 575 TEST_OPTS: query=requires queryval=kokkos_kernels 576 MAKE_CFLAGS: -Wno-expected-file-type -Werror 577 578linux-cuda-pkgs: 579 extends: 580 - .stage-3 581 - .linux_test 582 tags: 583 - cuda-stage3 584 variables: 585 TEST_ARCH: arch-ci-linux-cuda-pkgs 586 # run all tests that: 587 # 1. require cuda, OR 588 # 2. require device, OR 589 # 3. require hypre, OR 590 # 4. require kokkos[_kernels], AND lives in the vec subdirectory 591 # 592 # need to use the alternate OR spelling since '|' is interpreted as a pipe by the 593 # shell, and I could not manage to escape it enough times... 594 TEST_OPTS: -j3 queryval='cuda,device,hypre,kokkos*,vec*' query='requires,requires,requires,requires%OR%name' 595 MAKE_CUDAFLAGS: --compiler-options -Wall,-Werror 596 OMP_PROC_BIND: false 597 598linux-cuda112-omp: 599 extends: 600 - .stage-3 601 - .linux_test 602 - .coverage-disable 603 tags: 604 - cuda-stage3 605 variables: 606 TEST_ARCH: arch-ci-linux-cuda112-omp 607 TEST_OPTS: -j4 query=requires queryval=kokkos_kernels 608 LOAD_MODULES: cuda/11.2.2 u-gcc-9/9.4.0 609 OMP_PROC_BIND: "false" 610 OMP_NUM_THREADS: 1 611 MAKE_CUDAFLAGS: --compiler-options -Wall,-Werror 612 613linux-cuda-cmplx: 614 extends: 615 - .stage-3 616 - .linux_test 617 tags: 618 - cuda-stage3 619 variables: 620 TEST_ARCH: arch-ci-linux-cuda-cmplx 621 MAKE_CUDAFLAGS: --compiler-options -Wall,-Werror 622 623linux-cuda-double-64idx: 624 extends: 625 - .stage-3 626 - .linux_test 627 tags: 628 - cuda12 629 variables: 630 TEST_ARCH: arch-ci-linux-cuda-double-64idx 631 TEST_OPTS: -j3 query=requires queryval=cuda 632 MAKE_CUDAFLAGS: --compiler-options -Wall,-Werror 633 634linux-cuda-single-cxx: 635 extends: 636 - .stage-3 637 - .linux_test_noflags 638 - .coverage-disable 639 tags: 640 - cuda-stage3 641 variables: 642 TEST_ARCH: arch-ci-linux-cuda-single-cxx 643 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/spack-2023-02-02/share/spack/modules/linux-ubuntu22.04-ivybridge 644 LOAD_MODULES: nvhpc-22.11-gcc-11.3.0-vmvmbrx 645 TEST_OPTS: -j15 query=requires queryval=cuda 646 647linux-cuda-uni-pkgs: 648 extends: 649 - .stage-3 650 - .linux_test 651 tags: 652 - cuda-stage3 653 variables: 654 TEST_ARCH: arch-ci-linux-cuda-uni-pkgs 655 TEST_OPTS: -j20 query=requires queryval=cuda 656 MAKE_CUDAFLAGS: --compiler-options -Wall,-Werror 657 658linux-clang-cuda: 659 extends: 660 - .stage-3 661 - .linux_test 662 - .coverage-disable 663 tags: 664 - cuda-stage3 665 variables: 666 TEST_ARCH: arch-ci-linux-clang-cuda 667 TEST_OPTS: -j 1 queryval='cuda*,snes*' query='requires%OR%name' 668 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/spack-2023-02-02/share/spack/modules/linux-ubuntu22.04-ivybridge 669 LOAD_MODULES: llvm-15.0.7-gcc-11.3.0-pjldtxf cuda-11.5.2-gcc-11.3.0-jkoottx gcc-11.3.0-gcc-11.3.0-pgrvke5 670 MAKE_CUDAFLAGS: -Wno-pass-failed -Werror 671 672linux-viennacl: 673 extends: 674 - .stage-3 675 - .linux_test 676 tags: 677 - cuda-stage3 678 variables: 679 TEST_ARCH: arch-ci-linux-viennacl 680 MAKE_CXXFLAGS: -Werror -Wno-ignored-attributes 681 TEST_OPTS: -j20 query=requires queryval=viennacl 682 683linux-without-fc: 684 extends: 685 - .stage-3 686 - .linux_test 687 tags: 688 - gce-u22-stage3 689 variables: 690 TEST_ARCH: arch-ci-linux-without-fc 691 692linux-flang-arm: 693 extends: 694 - .stage-3 695 - .linux_test_noflags 696 # gcovr does not work on arm/linux 697 - .coverage-disable 698 tags: 699 - arch:arm, os:linux 700 variables: 701 TEST_ARCH: arch-ci-linux-flang-arm 702 703linux-cmplx-single-arm: 704 extends: 705 - .stage-3 706 - .linux_test 707 # gcovr does not work on arm/linux 708 - .coverage-disable 709 tags: 710 - arch:arm, os:linux 711 variables: 712 FLEXIBLAS: netlib 713 TEST_ARCH: arch-ci-linux-cmplx-single-arm 714 715linux-gcc-cxx-avx2: 716 extends: 717 - .stage-3 718 - .linux_test 719 tags: 720 - name:petsc-knl-01 721 variables: 722 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 723 724linux-clang-avx: 725 extends: 726 - .stage-3 727 - .linux_test 728 tags: 729 - name:petsc-knl-01 730 variables: 731 TEST_ARCH: arch-ci-linux-clang-avx 732 733linux-knl: 734 extends: 735 - .stage-3 736 - .linux_test 737 - .coverage-disable 738 tags: 739 - name:petsc-knl-01 740 variables: 741 MAKE_FFLAGS: -warn errors 742 TEST_ARCH: arch-ci-linux-knl 743 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 744 745linux-intel-mkl-single: 746 extends: 747 - .stage-3 748 - .linux_test_nofflags 749 - .coverage-disable 750 tags: 751 - name:petsc-knl-01 752 variables: 753 TEST_ARCH: arch-ci-linux-intel-mkl-single 754 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 755 756linux-cxx-cmplx-pkgs-64idx: 757 extends: 758 - .stage-3 759 - .linux_test 760 tags: 761 - gce-u22-stage3 762 variables: 763 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx 764 PETSC_OPTIONS: -fp_trap 765 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/spack-2024-08-30/modules/linux-ubuntu22.04-x86_64/Core 766 LOAD_MODULES: python/3.13.0rc1-rayc5m7 py-setuptools/69.2.0-6yku3zk python-venv/1.0-bnbfk2n py-pip/23.1.2-o7dlzno 767 768# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 769linux-pkgs-dbg-ftn-interfaces: 770 extends: 771 - .stage-3 772 - .linux_test 773 - .coverage-disable 774 tags: 775 - gce-u22-stage3 776 variables: 777 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 778 OMP_PROC_BIND: "false" 779 OMP_NUM_THREADS: 4 780 PETSC_OPTIONS: -fp_trap 781 782linux-pkgs-cxx-mlib: 783 extends: 784 - .stage-3 785 - .linux_test 786 tags: 787 - gce-u22-stage3 788 variables: 789 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 790 PETSC_OPTIONS: -fp_trap 791 792linux-pkgs-valgrind: 793 extends: 794 - .stage-3 795 - .linux_test 796 tags: 797 - gce-valgrind 798 variables: 799 TEST_ARCH: arch-ci-linux-pkgs-valgrind 800 TIMEOUT: 7200 801 802linux-pkgs-opt: 803 extends: 804 - .stage-3 805 - .linux_test 806 tags: 807 - gce-u22-stage3, linux-fast 808 variables: 809 TEST_ARCH: arch-ci-linux-pkgs-opt 810 LOAD_MODULES: gcc/12.1.0 811 MAKE_CXXFLAGS: -Wno-deprecated-declarations -Werror 812 813linux-pkgs-dbg: 814 extends: 815 - .stage-3 816 - .linux_test 817 tags: 818 - gce-u22-stage3, linux-gcov 819 variables: 820 TEST_ARCH: arch-ci-linux-pkgs-dbg 821 PETSC_OPTIONS: -fp_trap 822 823linux-matlab-ilp64: 824 extends: 825 - .stage-3 826 - .linux_test 827 tags: 828 - gce-u22-stage3, linux-gcov 829 variables: 830 TEST_ARCH: arch-ci-linux-matlab-ilp64 831 LOAD_MODULES: gcc/9.4.0 matlab/R2022a 832 allow_failure: true 833 834linux-intel-cmplx: 835 extends: 836 - .stage-3 837 - .linux_test_nofflags 838 - .coverage-disable 839 tags: 840 - gce-u22-stage3 841 variables: 842 TEST_ARCH: arch-ci-linux-intel-cmplx 843 LOAD_MODULES: intel-oneapi-compilers/2023.0.0 intel-oneapi-mkl/2022.0.2 844 845linux-misc-dbg: 846 extends: 847 - .stage-3 848 - .linux_test 849 tags: 850 - gce-u22-stage3 851 variables: 852 TEST_ARCH: arch-ci-linux-misc-dbg 853 LOAD_MODULES: gcc/12.1.0 854 855check-each-commit: 856 extends: 857 - .stage-2 858 - .linux_test 859 - .coverage-disable 860 tags: 861 - gce-u22-stage2 862 script: 863 - export PATH=/nfs/gce/projects/petsc/soft/u22.04/spack-2025-03-07-llvm/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.4.0/llvm-20.1.0-c5x4oa5ucvupe7j7zyqgiotsfhpvcl4k/bin:$PATH 864 - lib/petsc/bin/maint/check-each-commit.sh 865 except: 866 variables: 867 - $PETSC_CI_SCHEDULED =~ /yes/ 868 allow_failure: true 869 870linux-analyzer: 871 extends: 872 - .stage-2 873 - .linux_test 874 - .coverage-disable 875 tags: 876 - gce-u22-stage2 877 script: 878 - printf "PATH:$PATH\n" 879 - printf "PYTHONPATH:$PYTHONPATH\n" 880 - python3 --version 881 - git --version 882 - mypy --version 883 - vermin --version 884 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 885 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 886 - printf "./config/examples/${TEST_ARCH}.py\n" 887 - cat ./config/examples/${TEST_ARCH}.py 888 - ./config/examples/${TEST_ARCH}.py 889 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 890 - make V=3 LINTER_OPTIONS="${LINTER_OPTIONS} -- ./src" lint 891 variables: 892 TEST_ARCH: arch-ci-linux-analyzer 893 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config-14 --libdir`/libclang.so.1 --werror 1" 894 artifacts: 895 paths: 896 - arch-*/lib/petsc/conf/*.log 897 - ./petscLintPatches/*.patch 898 expire_in: 4 days 899 except: 900 variables: 901 - $PETSC_CI_SCHEDULED =~ /yes/ 902 903linux-intel: 904 extends: 905 - .stage-3 906 - .linux_test_nofflags 907 - .coverage-disable 908 tags: 909 - gce-u22-stage3 910 variables: 911 TEST_ARCH: arch-ci-linux-intel 912 LOAD_MODULES: intel-oneapi-compilers/2023.0.0 intel-oneapi-mkl/2022.0.2 913 914linux-clang-ubsan: 915 extends: 916 - .stage-2 917 - .linux_test 918 - .coverage-disable 919 tags: 920 - gce-u22-stage2 921 variables: 922 TEST_ARCH: arch-ci-linux-clang-ubsan 923 LOAD_MODULES: llvm/17.0.4 924 925linux-opt-arm: 926 extends: 927 - .stage-3 928 - .linux_test 929 # gcovr does not work on arm/linux 930 - .coverage-disable 931 tags: 932 - arch:arm, os:linux 933 variables: 934 TEST_ARCH: arch-ci-linux-opt-arm 935 936linux-pkgs-64idx: 937 extends: 938 - .stage-3 939 - .linux_test 940 tags: 941 - gce-u22-stage3, linux-mcpu 942 variables: 943 TEST_ARCH: arch-ci-linux-pkgs-64idx 944 LOAD_MODULES: intel-oneapi-mkl/2022.0.2 945 946linux-64idx-i8: 947 extends: 948 - .stage-3 949 - .linux_test 950 tags: 951 - gce-u22-stage3, linux-mcpu 952 variables: 953 TEST_ARCH: arch-ci-linux-64idx-i8 954 955linux-gcc-ifc-cmplx: 956 extends: 957 - .stage-3 958 - .linux_test_nofflags 959 tags: 960 - gce-u22-stage3 961 variables: 962 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 963 LOAD_MODULES: intel-oneapi-compilers/2022.2.1 964 965linux-opt-cxx-quad: 966 extends: 967 - .stage-3 968 - .linux_test 969 tags: 970 - gce-u22-stage3 971 variables: 972 TEST_ARCH: arch-ci-linux-opt-cxx-quad 973 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/spack-2024-08-30/modules/linux-ubuntu22.04-x86_64/Core 974 LOAD_MODULES: python/3.13.0rc1-rayc5m7 975 976linux-ILP64: 977 extends: 978 - .stage-3 979 - .linux_test 980 tags: 981 - gce-u22-stage3 982 variables: 983 TEST_ARCH: arch-ci-linux-ILP64 984 LOAD_MODULES: gcc/8.5.0 mpich/2-1.5-gcc-8.5.0 985 MAKE_CFLAGS: -Wno-discarded-qualifiers -Werror 986 987linux-64idx-i8-uni: 988 extends: 989 - .stage-3 990 - .linux_test 991 tags: 992 - gce-u22-stage3, linux-mcpu 993 variables: 994 TEST_ARCH: arch-ci-linux-64idx-i8-uni 995 996linux-misc-32bit: 997 extends: 998 - .stage-3 999 - .linux_test 1000 tags: 1001 - gce-u22-stage3 1002 variables: 1003 TEST_ARCH: arch-ci-linux-misc-32bit 1004 1005mswin-intel-cxx-cmplx: 1006 extends: 1007 - .stage-3 1008 - .mswin_test 1009 tags: 1010 - mswin-stage3 1011 variables: 1012 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 1013 TIMEOUT: 150 1014 1015mswin-uni: 1016 extends: 1017 - .stage-3 1018 - .mswin_test 1019 tags: 1020 - mswin-stage3 1021 variables: 1022 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout 1023 TEST_ARCH: arch-ci-mswin-uni 1024 1025mswin-gnu: 1026 extends: 1027 - .stage-3 1028 - .mswin_test 1029 tags: 1030 - mswin-stage3 1031 variables: 1032 TEST_ARCH: arch-ci-mswin-gnu 1033 MAKE_CFLAGS: -Werror 1034 MAKE_CXXFLAGS: -Werror 1035 MAKE_FFLAGS: -Werror 1036 DISABLE_TESTS: 1 1037 1038#mswin-intel: 1039# extends: 1040# - .stage-3 1041# - .mswin_test 1042# tags: 1043# - os:win 1044# variables: 1045# TEST_ARCH: arch-ci-mswin-intel 1046 1047macos-cxx-cmplx-pkgs-dbg-arm: 1048 extends: 1049 - .stage-3 1050 - .macos_test 1051 - .coverage-disable 1052 tags: 1053 - os:macos-arm 1054 variables: 1055 TEST_ARCH: arch-ci-macos-cxx-cmplx-pkgs-dbg-arm 1056 INIT_SCRIPT: .zprofile 1057 1058macos-cxx-pkgs-opt-arm: 1059 extends: 1060 - .stage-3 1061 - .macos_test 1062 - .coverage-disable 1063 tags: 1064 - os:macos-arm 1065 variables: 1066 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false 1067 TEST_ARCH: arch-ci-macos-cxx-pkgs-opt-arm 1068 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 1069 INIT_SCRIPT: .zprofile 1070 1071macos-dbg: 1072 extends: 1073 - .stage-3 1074 - .macos_test 1075 - .coverage-disable 1076 tags: 1077 - os:macos-x64 1078 variables: 1079 TEST_ARCH: arch-ci-macos-dbg 1080 ASAN_OPTIONS: log_path=stdout 1081 INIT_SCRIPT: .zprofile 1082 1083macos-opt-arm: 1084 extends: 1085 - .stage-3 1086 - .macos_test 1087 - .coverage-disable 1088 tags: 1089 - os:macos-arm 1090 variables: 1091 TEST_ARCH: arch-ci-macos-opt-arm 1092 INIT_SCRIPT: .zprofile 1093 1094# job for analyzing the coverage results and generating the various reports 1095coverage-analyze: 1096 extends: .test 1097 stage: stage-4 1098 tags: 1099 - gce-u22-short 1100 dependencies: 1101 # stage-2 1102 - linux-gcc-quad-64idx-dbg 1103 - linux-gcc-pkgs-opt 1104 - linux-gcc-complex-opt-32bit 1105 # stage-3 1106 - linux-pkgs-dbg 1107 - linux-matlab-ilp64 1108 - linux-cuda-pkgs 1109 - linux-cxx-cmplx-pkgs-64idx 1110 - linux-cuda-cmplx 1111 - linux-cuda-double-64idx 1112 - linux-cuda-uni-pkgs 1113 - linux-viennacl 1114 - linux-without-fc 1115 - linux-gcc-cxx-avx2 1116 - linux-clang-avx 1117 - linux-pkgs-cxx-mlib 1118 - linux-pkgs-valgrind 1119 - linux-misc-dbg 1120 - linux-pkgs-64idx 1121 - linux-pkgs-opt 1122 - linux-64idx-i8 1123 - linux-gcc-ifc-cmplx 1124 - linux-opt-cxx-quad 1125 - linux-ILP64 1126 - linux-64idx-i8-uni 1127 variables: 1128 PYTHON: python3 1129 PETSC_ARCH: arch-ci-analyze-pipeline 1130 before_script: 1131 - date 1132 - hostname 1133 script: 1134 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 1135 - ${PYTHON} --version 1136 - gcovr --version 1137 - printf "PATH:$PATH\n" 1138 - printf "PYTHONPATH:$PYTHONPATH\n" 1139 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 1140 - ${PYTHON} ./configure --with-mpi=0 --with-cxx=0 --download-sowing --with-fortran-bindings 1141 - make mergegcov PETSC_GCOV_OPTIONS='--ci-mode --verbose' 1142 coverage: /^\s*lines:\s*\d+.\d+\%/ 1143 artifacts: 1144 name: "$CI_JOB_NAME" 1145 when: always 1146 paths: 1147 - arch-ci-analyze-pipeline/gcovr/* 1148 - arch-ci-analyze-pipeline/lib/petsc/conf/*.log 1149 expire_in: 4 days 1150 reports: 1151 coverage_report: 1152 coverage_format: cobertura 1153 path: arch-ci-analyze-pipeline/gcovr/xml/*.xml 1154 1155# template for the coverage review jobs, these must be separate jobs as you cannot deploy multiple 1156# environments from one job... 1157.coverage-review: 1158 extends: .test 1159 stage: .post 1160 tags: 1161 - gce-u22-short 1162 dependencies: 1163 - coverage-analyze 1164 script: 1165 - date 1166 - hostname 1167 artifacts: 1168 name: "$CI_JOB_NAME" 1169 when: always 1170 paths: 1171 - arch-ci-analyze-pipeline/gcovr/* 1172 - arch-ci-analyze-pipeline/lib/petsc/conf/*.log 1173 expire_in: 4 days 1174 1175coverage-total-review: 1176 extends: .coverage-review 1177 environment: 1178 name: coverage/all/$CI_COMMIT_REF_SLUG 1179 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/arch-ci-analyze-pipeline/gcovr/html/report.html 1180 auto_stop_in: one week 1181 deployment_tier: testing 1182 1183coverage-untested-review: 1184 extends: .coverage-review 1185 environment: 1186 name: coverage/untested/$CI_COMMIT_REF_SLUG 1187 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/arch-ci-analyze-pipeline/gcovr/html_untested/report_untested.html 1188 auto_stop_in: one week 1189 deployment_tier: testing 1190 1191analyze-pipeline: 1192 extends: .coverage-review 1193 script: 1194 - date 1195 - hostname 1196 # This file is created by lib/petsc/bin/maint/gcov.py. If it exists then the CI 1197 # pipeline should fail 1198 - if [ -f ./arch-ci-analyze-pipeline/gcovr/.CI_FAIL ]; then 1199 cat ./arch-ci-analyze-pipeline/gcovr/merge_gcov_errors.log; 1200 exit 1; 1201 fi 1202 allow_failure: true 1203 1204# 1205# Base job for a documentation build (runs in venv to allow installing additional packages without root) 1206# 1207.docs: 1208 stage: stage-2 1209 tags: 1210 - linux-docs 1211 before_script: 1212 - git fetch --unshallow --tags origin +release:remotes/origin/release +main:remotes/origin/main 1213 - module --trace load python-3.11.2-gcc-9.4.0-6p2ktlj 1214 - printf "PATH:$PATH\n" 1215 - printf "PYTHONPATH:$PYTHONPATH\n" 1216 - VENV=venv-petsc-docs && 1217 python3 -m venv $VENV && 1218 . $VENV/bin/activate && 1219 cd doc && 1220 python -m pip install -r requirements.txt 1221 1222# 1223# Build documentation and make available for review using GitLab pages 1224# 1225docs-review: 1226 extends: 1227 - .docs 1228 - .test-basic 1229 script: 1230 - printf "PATH:$PATH\n" 1231 - printf "PYTHONPATH:$PYTHONPATH\n" 1232 #- printf "python:${PYTHON}\n" 1233 #- ${PYTHON} -m pip list --user 1234 - printf "CONFIG_OPTS:${CONFIG_OPTS}\n" 1235 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 1236 - if [ ! -z ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME+x} ]; then printf "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME\n" ;fi 1237 - (time make html BUILDDIR="../public" SPHINXOPTS="-T -E -W --keep-going -j 2") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1238 - (time make latexpdf SPHINXOPTS="-T -E -W --keep-going -j 2") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1239 - cp _build/latex/manual.pdf ../public/html/manual/ 1240 environment: 1241 name: review/$CI_COMMIT_REF_NAME 1242 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1243 auto_stop_in: one week 1244 deployment_tier: development 1245 artifacts: 1246 paths: 1247 - public 1248 expire_in: 4 days 1249 except: 1250 variables: 1251 - $PETSC_CI_SCHEDULED =~ /yes/ 1252 1253# 1254# Deploy documentation using GitLab pages 1255# 1256pages: # this job name has special meaning to GitLab 1257 extends: .docs 1258 interruptible: true 1259 script: 1260 - mkdir -p ../public/ && cp public/* ../public/ 1261 - (git checkout origin/main && pip install -r requirements.txt && make website-deploy SPHINXOPTS="-j 1" BUILDDIR="../public/main" && make latexpdf && mkdir -p ../public/main/manual && cp _build/latex/manual.pdf ../public/main/manual/) || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1262 - cd .. && git clean -fdxq -e public -e venv-petsc-docs && cd doc && rm -rf images 1263 - (git checkout origin/release && pip install -r requirements.txt && make website-deploy SPHINXOPTS="-j 1" BUILDDIR="../public/release" && make latexpdf && mkdir -p ../public/release/manual && cp _build/latex/manual.pdf ../public/release/manual/) || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1264 - rm -rf ../public/*/.doctrees 1265 only: 1266 variables: 1267 - $PETSC_CI_SCHEDULED == "yes" 1268 artifacts: 1269 paths: 1270 - public 1271 expire_in: 4 days 1272 1273# 1274# 1275# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1276# that fail produce a warning, but do not block execution of a pipeline. 1277# 1278 1279.test-experimental: 1280 extends: .test 1281 allow_failure: true 1282 1283