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 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= 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 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% 166 ENABLE_COMPILETESTS: 1 167 168gcc-lto: 169 extends: .stage-1 170 variables: 171 CONFIG_OPTS: CFLAGS= CXXFLAGS= FFLAGS= 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-2024-09-18/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.4.0/llvm-19.1.0-dqibzqq5utu2fba2me2bodbnaj5y7c36/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-cmplx-single-arm: 693 extends: 694 - .stage-3 695 - .linux_test 696 # gcovr does not work on arm/linux 697 - .coverage-disable 698 tags: 699 - arch:arm, os:linux 700 variables: 701 FLEXIBLAS: netlib 702 TEST_ARCH: arch-ci-linux-cmplx-single-arm 703 704linux-gcc-cxx-avx2: 705 extends: 706 - .stage-3 707 - .linux_test 708 tags: 709 - name:petsc-knl-01 710 variables: 711 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 712 713linux-clang-avx: 714 extends: 715 - .stage-3 716 - .linux_test 717 tags: 718 - name:petsc-knl-01 719 variables: 720 TEST_ARCH: arch-ci-linux-clang-avx 721 722linux-knl: 723 extends: 724 - .stage-3 725 - .linux_test 726 - .coverage-disable 727 tags: 728 - name:petsc-knl-01 729 variables: 730 MAKE_FFLAGS: -warn errors 731 TEST_ARCH: arch-ci-linux-knl 732 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 733 734linux-intel-mkl-single: 735 extends: 736 - .stage-3 737 - .linux_test_nofflags 738 - .coverage-disable 739 tags: 740 - name:petsc-knl-01 741 variables: 742 TEST_ARCH: arch-ci-linux-intel-mkl-single 743 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 744 745linux-cxx-cmplx-pkgs-64idx: 746 extends: 747 - .stage-3 748 - .linux_test 749 tags: 750 - gce-u22-stage3 751 variables: 752 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx 753 PETSC_OPTIONS: -fp_trap 754 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/spack-2024-08-30/modules/linux-ubuntu22.04-x86_64/Core 755 LOAD_MODULES: python/3.13.0rc1-rayc5m7 py-setuptools/69.2.0-6yku3zk python-venv/1.0-bnbfk2n py-pip/23.1.2-o7dlzno 756 757# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 758linux-pkgs-dbg-ftn-interfaces: 759 extends: 760 - .stage-3 761 - .linux_test 762 - .coverage-disable 763 tags: 764 - gce-u22-stage3 765 variables: 766 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 767 OMP_PROC_BIND: "false" 768 OMP_NUM_THREADS: 4 769 PETSC_OPTIONS: -fp_trap 770 771linux-pkgs-cxx-mlib: 772 extends: 773 - .stage-3 774 - .linux_test 775 tags: 776 - gce-u22-stage3 777 variables: 778 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 779 PETSC_OPTIONS: -fp_trap 780 781linux-pkgs-valgrind: 782 extends: 783 - .stage-3 784 - .linux_test 785 tags: 786 - gce-valgrind 787 variables: 788 TEST_ARCH: arch-ci-linux-pkgs-valgrind 789 TIMEOUT: 7200 790 791linux-pkgs-opt: 792 extends: 793 - .stage-3 794 - .linux_test 795 tags: 796 - gce-u22-stage3, linux-fast 797 variables: 798 TEST_ARCH: arch-ci-linux-pkgs-opt 799 LOAD_MODULES: gcc/12.1.0 800 MAKE_CXXFLAGS: -Wno-deprecated-declarations -Werror 801 802linux-pkgs-dbg: 803 extends: 804 - .stage-3 805 - .linux_test 806 tags: 807 - gce-u22-stage3, linux-gcov 808 variables: 809 TEST_ARCH: arch-ci-linux-pkgs-dbg 810 PETSC_OPTIONS: -fp_trap 811 812linux-matlab-ilp64: 813 extends: 814 - .stage-3 815 - .linux_test 816 tags: 817 - gce-u22-stage3, linux-gcov 818 variables: 819 TEST_ARCH: arch-ci-linux-matlab-ilp64 820 LOAD_MODULES: gcc/9.4.0 matlab/R2022a 821 allow_failure: true 822 823linux-pgi: 824 extends: 825 - .stage-3 826 - .linux_test_noflags 827 - .coverage-disable 828 tags: 829 - gce-u22-stage3, linux-mcpu 830 variables: 831 TEST_ARCH: arch-ci-linux-pgi 832 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/spack-2024-09-18/modules/linux-ubuntu22.04-x86_64/Core 833 LOAD_MODULES: nvhpc/24.7-nypdnhf 834 835# If the Nag license server fails then ${PETSC_DIR}/naglicenseproblem is created and the job is marked as failed but allow_failure 836linux-nagfor: 837 extends: 838 - .stage-3 839 - .linux_test_nofflags 840 tags: 841 - gce-stage2, linux-mcpu 842 variables: 843 LOAD_MODULES: nag/6.1 844 TEST_ARCH: arch-ci-linux-nagfor 845 allow_failure: 846 exit_codes: 126 847 848linux-intel-cmplx: 849 extends: 850 - .stage-3 851 - .linux_test_nofflags 852 - .coverage-disable 853 tags: 854 - gce-u22-stage3 855 variables: 856 TEST_ARCH: arch-ci-linux-intel-cmplx 857 LOAD_MODULES: intel-oneapi-compilers/2023.0.0 intel-oneapi-mkl/2022.0.2 858 859linux-misc-dbg: 860 extends: 861 - .stage-3 862 - .linux_test 863 tags: 864 - gce-u22-stage3 865 variables: 866 TEST_ARCH: arch-ci-linux-misc-dbg 867 LOAD_MODULES: gcc/12.1.0 868 869check-each-commit: 870 extends: 871 - .stage-2 872 - .linux_test 873 - .coverage-disable 874 tags: 875 - gce-u22-stage2 876 script: 877 - export PATH=/nfs/gce/projects/petsc/soft/u22.04/spack-2024-09-18/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.4.0/llvm-19.1.0-dqibzqq5utu2fba2me2bodbnaj5y7c36/bin:$PATH 878 - lib/petsc/bin/maint/check-each-commit.sh 879 except: 880 variables: 881 - $PETSC_CI_SCHEDULED =~ /yes/ 882 allow_failure: true 883 884linux-analyzer: 885 extends: 886 - .stage-2 887 - .linux_test 888 - .coverage-disable 889 tags: 890 - gce-u22-stage2 891 script: 892 - printf "PATH:$PATH\n" 893 - printf "PYTHONPATH:$PYTHONPATH\n" 894 - python3 --version 895 - git --version 896 - mypy --version 897 - vermin --version 898 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 899 - 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 900 - printf "./config/examples/${TEST_ARCH}.py\n" 901 - cat ./config/examples/${TEST_ARCH}.py 902 - ./config/examples/${TEST_ARCH}.py 903 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 904 - make V=3 LINTER_OPTIONS="${LINTER_OPTIONS} -- ./src" lint 905 variables: 906 TEST_ARCH: arch-ci-linux-analyzer 907 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config-14 --libdir`/libclang.so.1 --werror 1" 908 artifacts: 909 paths: 910 - arch-*/lib/petsc/conf/*.log 911 - ./petscLintPatches/*.patch 912 expire_in: 4 days 913 except: 914 variables: 915 - $PETSC_CI_SCHEDULED =~ /yes/ 916 917linux-intel: 918 extends: 919 - .stage-3 920 - .linux_test_nofflags 921 - .coverage-disable 922 tags: 923 - gce-u22-stage3 924 variables: 925 TEST_ARCH: arch-ci-linux-intel 926 LOAD_MODULES: intel-oneapi-compilers/2023.0.0 intel-oneapi-mkl/2022.0.2 927 928linux-clang-ubsan: 929 extends: 930 - .stage-2 931 - .linux_test 932 - .coverage-disable 933 tags: 934 - gce-u22-stage2 935 variables: 936 TEST_ARCH: arch-ci-linux-clang-ubsan 937 LOAD_MODULES: llvm/17.0.4 938 939linux-opt-arm: 940 extends: 941 - .stage-3 942 - .linux_test 943 # gcovr does not work on arm/linux 944 - .coverage-disable 945 tags: 946 - arch:arm, os:linux 947 variables: 948 TEST_ARCH: arch-ci-linux-opt-arm 949 950linux-pkgs-64idx: 951 extends: 952 - .stage-3 953 - .linux_test 954 tags: 955 - gce-u22-stage3, linux-mcpu 956 variables: 957 TEST_ARCH: arch-ci-linux-pkgs-64idx 958 LOAD_MODULES: intel-oneapi-mkl/2022.0.2 959 960linux-64idx-i8: 961 extends: 962 - .stage-3 963 - .linux_test 964 tags: 965 - gce-u22-stage3, linux-mcpu 966 variables: 967 TEST_ARCH: arch-ci-linux-64idx-i8 968 969linux-gcc-ifc-cmplx: 970 extends: 971 - .stage-3 972 - .linux_test_nofflags 973 tags: 974 - gce-u22-stage3 975 variables: 976 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 977 LOAD_MODULES: intel-oneapi-compilers/2022.2.1 978 979linux-opt-cxx-quad: 980 extends: 981 - .stage-3 982 - .linux_test 983 tags: 984 - gce-u22-stage3 985 variables: 986 TEST_ARCH: arch-ci-linux-opt-cxx-quad 987 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/spack-2024-08-30/modules/linux-ubuntu22.04-x86_64/Core 988 LOAD_MODULES: python/3.13.0rc1-rayc5m7 989 990linux-ILP64: 991 extends: 992 - .stage-3 993 - .linux_test 994 tags: 995 - gce-u22-stage3 996 variables: 997 TEST_ARCH: arch-ci-linux-ILP64 998 LOAD_MODULES: gcc/8.5.0 mpich/2-1.5-gcc-8.5.0 999 MAKE_CFLAGS: -Wno-discarded-qualifiers -Werror 1000 1001linux-64idx-i8-uni: 1002 extends: 1003 - .stage-3 1004 - .linux_test 1005 tags: 1006 - gce-u22-stage3, linux-mcpu 1007 variables: 1008 TEST_ARCH: arch-ci-linux-64idx-i8-uni 1009 1010linux-misc-32bit: 1011 extends: 1012 - .stage-3 1013 - .linux_test 1014 tags: 1015 - gce-u22-stage3 1016 variables: 1017 TEST_ARCH: arch-ci-linux-misc-32bit 1018 1019mswin-intel-cxx-cmplx: 1020 extends: 1021 - .stage-3 1022 - .mswin_test 1023 tags: 1024 - mswin-stage3 1025 variables: 1026 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 1027 TIMEOUT: 150 1028 1029mswin-uni: 1030 extends: 1031 - .stage-3 1032 - .mswin_test 1033 tags: 1034 - mswin-stage3 1035 variables: 1036 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout 1037 TEST_ARCH: arch-ci-mswin-uni 1038 1039mswin-gnu: 1040 extends: 1041 - .stage-3 1042 - .mswin_test 1043 tags: 1044 - mswin-stage3 1045 variables: 1046 TEST_ARCH: arch-ci-mswin-gnu 1047 MAKE_CFLAGS: -Werror 1048 MAKE_CXXFLAGS: -Werror 1049 MAKE_FFLAGS: -Werror 1050 DISABLE_TESTS: 1 1051 1052#mswin-intel: 1053# extends: 1054# - .stage-3 1055# - .mswin_test 1056# tags: 1057# - os:win 1058# variables: 1059# TEST_ARCH: arch-ci-mswin-intel 1060 1061macos-cxx-cmplx-pkgs-dbg-arm: 1062 extends: 1063 - .stage-3 1064 - .macos_test 1065 - .coverage-disable 1066 tags: 1067 - os:macos-arm 1068 variables: 1069 TEST_ARCH: arch-ci-macos-cxx-cmplx-pkgs-dbg-arm 1070 INIT_SCRIPT: .zprofile 1071 1072macos-cxx-pkgs-opt-arm: 1073 extends: 1074 - .stage-3 1075 - .macos_test 1076 - .coverage-disable 1077 tags: 1078 - os:macos-arm 1079 variables: 1080 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false 1081 TEST_ARCH: arch-ci-macos-cxx-pkgs-opt-arm 1082 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 1083 INIT_SCRIPT: .zprofile 1084 1085macos-dbg: 1086 extends: 1087 - .stage-3 1088 - .macos_test 1089 - .coverage-disable 1090 tags: 1091 - os:macos-x64 1092 variables: 1093 TEST_ARCH: arch-ci-macos-dbg 1094 ASAN_OPTIONS: log_path=stdout 1095 INIT_SCRIPT: .zprofile 1096 1097macos-opt-arm: 1098 extends: 1099 - .stage-3 1100 - .macos_test 1101 - .coverage-disable 1102 tags: 1103 - os:macos-arm 1104 variables: 1105 TEST_ARCH: arch-ci-macos-opt-arm 1106 INIT_SCRIPT: .zprofile 1107 1108# job for analyzing the coverage results and generating the various reports 1109coverage-analyze: 1110 extends: .test 1111 stage: stage-4 1112 tags: 1113 - gce-u22-short 1114 dependencies: 1115 # stage-2 1116 - linux-gcc-quad-64idx-dbg 1117 - linux-gcc-pkgs-opt 1118 - linux-gcc-complex-opt-32bit 1119 # stage-3 1120 - linux-pkgs-dbg 1121 - linux-matlab-ilp64 1122 - linux-cuda-pkgs 1123 - linux-cxx-cmplx-pkgs-64idx 1124 - linux-cuda-cmplx 1125 - linux-cuda-double-64idx 1126 - linux-cuda-uni-pkgs 1127 - linux-viennacl 1128 - linux-without-fc 1129 - linux-gcc-cxx-avx2 1130 - linux-clang-avx 1131 - linux-pkgs-cxx-mlib 1132 - linux-pkgs-valgrind 1133 - linux-nagfor 1134 - linux-misc-dbg 1135 - linux-pkgs-64idx 1136 - linux-pkgs-opt 1137 - linux-64idx-i8 1138 - linux-gcc-ifc-cmplx 1139 - linux-opt-cxx-quad 1140 - linux-ILP64 1141 - linux-64idx-i8-uni 1142 variables: 1143 PYTHON: python3 1144 PETSC_ARCH: arch-ci-analyze-pipeline 1145 before_script: 1146 - date 1147 - hostname 1148 script: 1149 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 1150 - ${PYTHON} --version 1151 - gcovr --version 1152 - printf "PATH:$PATH\n" 1153 - printf "PYTHONPATH:$PYTHONPATH\n" 1154 - 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 1155 - ${PYTHON} ./configure --with-mpi=0 --with-cxx=0 --download-sowing --with-fortran-bindings 1156 - make mergegcov PETSC_GCOV_OPTIONS='--ci-mode --verbose' 1157 coverage: /^\s*lines:\s*\d+.\d+\%/ 1158 artifacts: 1159 name: "$CI_JOB_NAME" 1160 when: always 1161 paths: 1162 - arch-ci-analyze-pipeline/gcovr/* 1163 - arch-ci-analyze-pipeline/lib/petsc/conf/*.log 1164 expire_in: 4 days 1165 reports: 1166 coverage_report: 1167 coverage_format: cobertura 1168 path: arch-ci-analyze-pipeline/gcovr/xml/*.xml 1169 1170# template for the coverage review jobs, these must be separate jobs as you cannot deploy multiple 1171# environments from one job... 1172.coverage-review: 1173 extends: .test 1174 stage: .post 1175 tags: 1176 - gce-u22-short 1177 dependencies: 1178 - coverage-analyze 1179 script: 1180 - date 1181 - hostname 1182 artifacts: 1183 name: "$CI_JOB_NAME" 1184 when: always 1185 paths: 1186 - arch-ci-analyze-pipeline/gcovr/* 1187 - arch-ci-analyze-pipeline/lib/petsc/conf/*.log 1188 expire_in: 4 days 1189 1190coverage-total-review: 1191 extends: .coverage-review 1192 environment: 1193 name: coverage/all/$CI_COMMIT_REF_SLUG 1194 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/arch-ci-analyze-pipeline/gcovr/html/report.html 1195 auto_stop_in: one week 1196 deployment_tier: testing 1197 1198coverage-untested-review: 1199 extends: .coverage-review 1200 environment: 1201 name: coverage/untested/$CI_COMMIT_REF_SLUG 1202 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 1203 auto_stop_in: one week 1204 deployment_tier: testing 1205 1206analyze-pipeline: 1207 extends: .coverage-review 1208 script: 1209 - date 1210 - hostname 1211 # This file is created by lib/petsc/bin/maint/gcov.py. If it exists then the CI 1212 # pipeline should fail 1213 - if [ -f ./arch-ci-analyze-pipeline/gcovr/.CI_FAIL ]; then 1214 cat ./arch-ci-analyze-pipeline/gcovr/merge_gcov_errors.log; 1215 exit 1; 1216 fi 1217 allow_failure: true 1218 1219# 1220# Base job for a documentation build (runs in venv to allow installing additional packages without root) 1221# 1222.docs: 1223 stage: stage-2 1224 tags: 1225 - linux-docs 1226 before_script: 1227 - git fetch --unshallow --tags origin +release:remotes/origin/release +main:remotes/origin/main 1228 - module --trace load python-3.11.2-gcc-9.4.0-6p2ktlj 1229 - printf "PATH:$PATH\n" 1230 - printf "PYTHONPATH:$PYTHONPATH\n" 1231 - VENV=venv-petsc-docs && 1232 python3 -m venv $VENV && 1233 . $VENV/bin/activate && 1234 cd doc && 1235 python -m pip install -r requirements.txt 1236 1237# 1238# Build documentation and make available for review using GitLab pages 1239# 1240docs-review: 1241 extends: 1242 - .docs 1243 - .test-basic 1244 script: 1245 - printf "PATH:$PATH\n" 1246 - printf "PYTHONPATH:$PYTHONPATH\n" 1247 #- printf "python:${PYTHON}\n" 1248 #- ${PYTHON} -m pip list --user 1249 - printf "CONFIG_OPTS:${CONFIG_OPTS}\n" 1250 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 1251 - 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 1252 - (time make html BUILDDIR="../public" SPHINXOPTS="-T -E -W --keep-going -j 2") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1253 - (time make latexpdf SPHINXOPTS="-T -E -W --keep-going -j 2") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1254 - cp _build/latex/manual.pdf ../public/html/manual/ 1255 environment: 1256 name: review/$CI_COMMIT_REF_NAME 1257 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1258 auto_stop_in: one week 1259 deployment_tier: development 1260 artifacts: 1261 paths: 1262 - public 1263 expire_in: 4 days 1264 except: 1265 variables: 1266 - $PETSC_CI_SCHEDULED =~ /yes/ 1267 1268# 1269# Deploy documentation using GitLab pages 1270# 1271pages: # this job name has special meaning to GitLab 1272 extends: .docs 1273 interruptible: true 1274 script: 1275 - mkdir -p ../public/ && cp public/* ../public/ 1276 - (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) 1277 - cd .. && git clean -fdxq -e public -e venv-petsc-docs && cd doc && rm -rf images 1278 - (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) 1279 - rm -rf ../public/*/.doctrees 1280 only: 1281 variables: 1282 - $PETSC_CI_SCHEDULED == "yes" 1283 artifacts: 1284 paths: 1285 - public 1286 expire_in: 4 days 1287 1288# 1289# 1290# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1291# that fail produce a warning, but do not block execution of a pipeline. 1292# 1293 1294.test-experimental: 1295 extends: .test 1296 allow_failure: true 1297 1298