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