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 PETSC_OPTIONS: -checkfunctionlist 21 TIMEOUT: 450 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# This provides the basic order of operations and options template for cloud based stage 1 tests. 56# Not all test-short need to follow this template but most will. 57# 58 59.stage-1: 60 extends: .test 61 stage: stage-1 62 tags: 63 - gce-u22-stage1 64 before_script: 65 - date 66 - hostname 67 - grep PRETTY_NAME /etc/os-release 68 - nproc 69 - lscpu 70 - ccache --zero-stats 71 - printf "CONFIG_OPTS:${CONFIG_OPTS}\n" 72 - printf "PYTHON:${PYTHON}\n" 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}"; source ${INIT_SCRIPT}; fi 75 script: 76 - printf "PATH:$PATH\n" 77 - printf "PYTHONPATH:$PYTHONPATH\n" 78 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 79 - 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 80 - ${PYTHON} ./configure --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native' ${CONFIG_OPTS} 81 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" 82 - if [ ! -z ${ENABLE_CHECK+x} ]; then make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" check; fi 83 - make CFLAGS="${MAKE_TEST_CFLAGS}" CXXFLAGS="${MAKE_TEST_CXXFLAGS}" FFLAGS="${MAKE_TEST_FFLAGS}" allgtests-tap gmakesearch="${TEST_SEARCH}" TIMEOUT=${TIMEOUT} 84 variables: 85 PYTHON: python3 86 MAKE_CFLAGS: -Werror 87 MAKE_CXXFLAGS: -Werror -Wzero-as-null-pointer-constant 88 MAKE_FFLAGS: -Werror 89 MAKE_TEST_CFLAGS: -Werror 90 MAKE_TEST_CXXFLAGS: -Werror 91 MAKE_TEST_FFLAGS: -Werror 92 after_script: 93 - date 94 - ccache --show-stats 95 artifacts: 96 reports: 97 junit: arch-*/tests/testresults.xml 98 name: "$CI_JOB_NAME" 99 when: always 100 paths: 101 - arch-*/lib/petsc/conf/*.log 102 - arch-*/lib/pkgconfig/petsc.pc 103 - arch-*/tests/testresults.xml 104 - arch-*/tests/test_*_tap.log 105 - arch-*/tests/test_*_err.log 106 expire_in: 4 days 107 108# 109# The following tests run on the cloud as part of stage-1. 110# 111 112ompi-cuda: 113 extends: .stage-1 114 tags: 115 - cuda-stage1 116 variables: 117 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-fc=0 118 TEST_SEARCH: snes_tutorials-ex19_cuda% 119 ENABLE_CHECK: 1 120 MAKE_CXXFLAGS: -Werror 121 122mpich-cxx-py3: 123 extends: .stage-1 124 variables: 125 CONFIG_OPTS: --with-clanguage=cxx --with-fc=0 CXXFLAGS=-std=c++11 126 TEST_SEARCH: snes_tutorials-ex48% 127 LOAD_MODULES: gcc/12.1.0 mpich/4.1a1-gcc-12.1.0 128 129uni-complex-float-int64: 130 extends: .stage-1 131 variables: 132 CONFIG_OPTS: --with-mpi=0 --with-scalar-type=complex --with-precision=single --with-64-bit-indices 133 TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_% 134 LOAD_MODULES: gcc/12.1.0 mpich/4.1a1-gcc-12.1.0 135 136c99-mlib-static-py: 137 extends: .stage-1 138 variables: 139 CONFIG_OPTS: --with-single-library=0 --with-shared-libraries=0 CFLAGS=-std=c99 FFLAGS= CXXFLAGS= 140 ENABLE_CHECK: 1 141 TEST_SEARCH: snes_tutorials-ex19% snes_tutorials-ex5f90t% 142 MAKE_TEST_FFLAGS: -Werror -std=f2008 143 LOAD_MODULES: gcc/12.1.0 mpich/4.1a1-gcc-12.1.0 144 145petsc4py-install: 146 extends: .stage-2 147 tags: 148 - gce-stage2 149 variables: 150 PYTHON: python3 151 T_PREFIX: petsc-install 152 T_DESTDIR: petsc-destdir 153 T_PETSC4PY: src/binding/petsc4py 154 T_VALIDATE_CMD: lib/petsc/bin/maint/validate-petsc4py.sh 155 script: 156 - printf "PATH:$PATH\n" 157 - mkdir hide 158 - 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 159 - ${PYTHON} ./configure --prefix="${PWD}/${T_PREFIX}" --with-petsc4py=1 --with-debugging=0 160 - make CFLAGS=-Werror CXXFLAGS="-Werror -Wzero-as-null-pointer-constant" FFLAGS=-Werror 161 - printf "====== Test A. Install into staging directory then into prefix directory (mimics distro package recipe) =====\n" 162 - make install DESTDIR="${PWD}/${T_DESTDIR}" 163 - test "$(find ${PWD}/${T_PREFIX} -mindepth 1 | wc -l)" -eq 0 164 - test "$(find ${PWD}/${T_DESTDIR} -mindepth 1 | wc -l)" -gt 0 165 - (cd "${PWD}/${T_DESTDIR}" && find * -exec install -v -D "{}" "/{}" \; ) 166 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 167 - rm -r "${PWD}/${T_PREFIX}" "${PWD}/${T_DESTDIR}" && mkdir "${PWD}/${T_PREFIX}" 168 - printf "====== Test B. Install directly into prefix directory =====\n" 169 - make install 170 - test "$(find ${PWD}/${T_PREFIX} -mindepth 1 | wc -l)" -gt 0 171 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 172 - rm -r "${PWD}/${T_PREFIX}"/*/petsc4py* 173 - printf "====== Test C. Install manually with setuptools =====\n" 174 - export PETSC_DIR="${PWD}/${T_PREFIX}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py build) 175 - export PETSC_DIR="${PWD}/${T_PREFIX}" P="${PWD}" && (cd "${T_PETSC4PY}" && ${PYTHON} setup.py install --install-lib="${P}/${T_PREFIX}/lib") 176 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 177 - rm -r "${PWD}/${T_PREFIX}"/*/petsc4py* 178 - printf "====== Test D. Install manually with setuptools with staging =====\n" 179 - 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") 180 - (cd "${PWD}/${T_DESTDIR}" && find * -exec install -v -D "{}" "/{}" \; ) 181 - mv arch-* hide/ && PETSC_DIR="${PWD}/${T_PREFIX}" ${T_VALIDATE_CMD} && mv hide/arch-* ./ 182 183petsc4py-pip: 184 extends: .stage-2 185 tags: 186 - gce-stage2 187 variables: 188 PETSC_CONFIGURE_OPTIONS: --with-mpi=0 --with-fc=0 189 CFLAGS: -O0 190 script: 191 - python3 -m venv pip-builds 192 - source pip-builds/bin/activate 193 - python3 -m pip install --upgrade pip 194 - python3 -m pip install . 195 - python3 -m pip install src/binding/petsc4py 196 - python3 -m petsc4py 197 198checksource: 199 extends: .test-basic 200 stage: .pre 201 tags: 202 - gce-u22-stage1 203 script: 204 - python3 ./configure --with-mpi=0 --with-fc=0 --with-cxx=0 205 - vermin --version 206 - make vermin 207 - PATH=/nfs/gce/projects/petsc/soft/u22.04/spack/opt/spack/linux-ubuntu22.04-ivybridge/gcc-11.2.0/llvm-15.0.0-m7mrrtynenjytkmiib2moeqk6kfcifmv/bin:$PATH make checkclangformat SHELL=bash 208 - make checkbadSource SHELL=bash 209 - make checkbadFileChange SHELL=bash 210 - make -f gmakefile check_output SHELL=bash 211 - make check_petsc4py_rst 212 artifacts: 213 name: "$CI_JOB_NAME" 214 when: always 215 paths: 216 - arch-*/lib/petsc/conf/*.patch 217 - arch-*/lib/petsc/conf/*.log 218 expire_in: 4 days 219 220pause-for-approval: 221 extends: .test 222 stage: .pre 223 tags: 224 - gce-stage1 225 only: 226 refs: 227 - merge_requests 228 variables: 229 - $CI_MERGE_REQUEST_EVENT_TYPE == "merged_result" 230 - $CI_MERGE_REQUEST_EVENT_TYPE == "detached" 231 script: 232 - echo "pause-for-approval has no script to run" 233 variables: 234 GIT_STRATEGY: none 235 when: manual 236 allow_failure: false 237 238# 239# This provides the basic order of operations and options template for stage-2,3 tests. 240# Not all stage-2,3 need to follow this template, but most will. 241# 242.stage-23: 243 extends: .test 244 script: 245 - if [ ! -z ${RUN_GCOV+x} ]; then gcovr --version; fi 246 - if [ -d ${HOME}/petsc-hash-pkgs/ ]; then find ${HOME}/petsc-hash-pkgs/ -maxdepth 1 -mindepth 1 -type d -mtime +25 -exec rm -rf {} \; ; fi 247 - printf "PATH:$PATH\n" 248 - printf "PYTHONPATH:$PYTHONPATH\n" 249 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 250 - 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 251 - printf "./config/examples/${TEST_ARCH}.py\n" 252 - cat ./config/examples/${TEST_ARCH}.py 253 - ./config/examples/${TEST_ARCH}.py 254 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" 255 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" check 256 - make updatedatafiles 257 - 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 258 - if [ -z ${DISABLE_TESTS+x} ]; then make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" cleantest allgtests-tap TIMEOUT=${TIMEOUT} ${TEST_OPTS}; fi 259 - if [ ! -z ${RUN_GCOV+x} ]; then make gcov; fi 260 artifacts: 261 reports: 262 junit: ${TEST_ARCH}/tests/testresults.xml 263 name: "$CI_JOB_NAME" 264 when: always 265 paths: 266 - ${TEST_ARCH}/lib/petsc/conf/*.log 267 - ${TEST_ARCH}/lib/pkgconfig/petsc.pc 268 - ${TEST_ARCH}/tests/testresults.xml 269 - ${TEST_ARCH}/tests/test_${TEST_ARCH}_tap.log 270 - ${TEST_ARCH}/tests/test_${TEST_ARCH}_err.log 271 - ${TEST_ARCH}/${TEST_ARCH}-gcovr-report.json.tar.gz 272 expire_in: 4 days 273 variables: 274 OPENBLAS_NUM_THREADS: 1 275 276.stage-2: 277 extends: .stage-23 278 stage: stage-2 279 280.stage-3: 281 extends: .stage-23 282 stage: stage-3 283 284# 285# The following provide templates for various OSes for pre/post info 286# 287 288.linux_test_noflags: 289 before_script: 290 - date 291 - hostname 292 - grep PRETTY_NAME /etc/os-release 293 - nproc 294 - lscpu 295 - ccache --zero-stats 296 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 297 - if [ ! -z ${INIT_SCRIPT+x} ]; then echo "sourcing ${INIT_SCRIPT}"; source ${INIT_SCRIPT}; fi 298 after_script: 299 - date 300 - ccache --show-stats 301 302.linux_test_nofflags: 303 extends: .linux_test_noflags 304 variables: 305 MAKE_CFLAGS: -Werror 306 MAKE_CXXFLAGS: -Werror 307 308.linux_test: 309 extends: .linux_test_noflags 310 variables: 311 MAKE_CFLAGS: -Werror 312 MAKE_CXXFLAGS: -Werror 313 MAKE_FFLAGS: -Werror 314 315.freebsd_test: 316 variables: 317 MAKE_CFLAGS: -Werror 318 MAKE_CXXFLAGS: -Werror 319 MAKE_FFLAGS: -Werror 320 before_script: 321 - date 322 - hostname 323 - freebsd-version 324 - echo $(sysctl -n hw.ncpu) 325 - ccache --zero-stats 326 after_script: 327 - date 328 - ccache --show-stats 329 330.osx_test: 331 variables: 332 MAKE_CFLAGS: -Werror 333 MAKE_CXXFLAGS: -Werror 334 MAKE_FFLAGS: -Werror 335 before_script: 336 - date 337 - hostname 338 - sw_vers -productVersion 339 - echo $(sysctl -n hw.ncpu) 340 - ccache --zero-stats 341 - if [ ! -z ${INIT_SCRIPT+x} ]; then echo "sourcing ${INIT_SCRIPT}"; source ${INIT_SCRIPT}; fi 342 after_script: 343 - date 344 - ccache --show-stats 345 346.opensolaris_test: 347 before_script: 348 - date 349 - hostname 350 - uname -a 351 - nproc 352 - isainfo -x 353 after_script: 354 - date 355 356.mswin_test: 357 before_script: 358 - date 359 - hostname 360 - uname -a 361 - nproc 362 after_script: 363 - date 364 365# 366# The following tests run as part of stage-2. 367# 368# The tags variable used in the tests below connects the particular test with the runners 369# listed on the left hand side of https://gitlab.com/petsc/petsc/-/settings/ci_cd. 370# For example the test linux-sycl-double any runner that has the tags 'gce-nfs, linux-fast' 371# (in a blue box beneath it) 372# 373 374osx-m1: 375 extends: 376 - .stage-3 377 - .osx_test 378 tags: 379 - os:macos-m1 380 variables: 381 TEST_ARCH: arch-ci-osx-m1 382 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 383 INIT_SCRIPT: /Volumes/Scratch/svcpetsc/soft/py3venv/cython3setup.sh 384 385freebsd-cxx-cmplx-64idx-dbg: 386 extends: 387 - .stage-2 388 - .freebsd_test 389 tags: 390 - os:fbsd 391 variables: 392 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-64idx-dbg 393 394freebsd-c-single-opt: 395 extends: 396 - .stage-2 397 - .freebsd_test 398 tags: 399 - os:fbsd 400 variables: 401 TEST_ARCH: arch-ci-freebsd-c-single-opt 402 403mswin-opt-impi: 404 extends: 405 - .stage-3 406 - .mswin_test 407 tags: 408 - mswin-stage3 409 variables: 410 TEST_ARCH: arch-ci-mswin-opt-impi 411 TEST_OPTS: search='ksp_ksp_tests*' 412 413linux-gcc-quad-64idx-dbg: 414 extends: 415 - .stage-2 416 - .linux_test 417 tags: 418 - gce-stage2 419 variables: 420 TEST_ARCH: arch-ci-linux-gcc-quad-64idx-dbg 421 422linux-gcc-pkgs-opt: 423 extends: 424 - .stage-2 425 - .linux_test 426 tags: 427 - gce-stage2 428 variables: 429 TEST_ARCH: arch-ci-linux-gcc-pkgs-opt 430 431linux-gcc-complex-opt-32bit: 432 extends: 433 - .stage-2 434 - .linux_test 435 tags: 436 - gce-stage2 437 variables: 438 TEST_ARCH: arch-ci-linux-gcc-complex-opt-32bit 439 440# 441# The following tests run as part of stage-3. 442# 443 444freebsd-cxx-cmplx-pkgs-dbg: 445 extends: 446 - .stage-3 447 - .freebsd_test 448 tags: 449 - os:fbsd 450 variables: 451 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-pkgs-dbg 452 453freebsd-cxx-pkgs-opt: 454 extends: 455 - .stage-3 456 - .freebsd_test 457 tags: 458 - os:fbsd 459 variables: 460 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkfunctionlist 461 TEST_ARCH: arch-ci-freebsd-cxx-pkgs-opt 462 463freebsd-pkgs-opt: 464 extends: 465 - .stage-3 466 - .freebsd_test 467 tags: 468 - os:fbsd 469 variables: 470 TEST_ARCH: arch-ci-freebsd-pkgs-opt 471 472linux-hip-double: 473 extends: 474 - .stage-3 475 - .linux_test_noflags 476 tags: 477 - gpu:amd, os:linux 478 variables: 479 TEST_ARCH: arch-ci-linux-hip-double 480 481linux-sycl-double: 482 extends: 483 - .stage-3 484 - .linux_test_noflags 485 tags: 486 - gce-nfs, linux-fast 487 variables: 488 TEST_ARCH: arch-ci-linux-sycl-double 489 LOAD_MODULES: compiler/latest mpi/latest cmake/3.20.5-yjp2hz6 490 TEST_OPTS: query=requires queryval=kokkos_kernels 491 492linux-cuda-pkgs: 493 extends: 494 - .stage-3 495 - .linux_test 496 tags: 497 - cuda-stage3 498 variables: 499 TEST_ARCH: arch-ci-linux-cuda-pkgs 500 TEST_OPTS: -j3 query=requires queryval=cuda 501 502linux-cuda112-omp: 503 extends: 504 - .stage-3 505 - .linux_test 506 tags: 507 - cuda-stage3 508 variables: 509 TEST_ARCH: arch-ci-linux-cuda112-omp 510 TEST_OPTS: -j4 query=requires queryval=kokkos_kernels 511 LOAD_MODULES: cuda/11.2.2 u-gcc-9/9.4.0 512 OMP_PROC_BIND: "false" 513 OMP_NUM_THREADS: 1 514 515linux-cuda-cmplx: 516 extends: 517 - .stage-3 518 - .linux_test 519 tags: 520 - cuda-stage3 521 variables: 522 TEST_ARCH: arch-ci-linux-cuda-cmplx 523 524linux-cuda-double-64idx: 525 extends: 526 - .stage-3 527 - .linux_test 528 tags: 529 - cuda-stage3 530 variables: 531 TEST_ARCH: arch-ci-linux-cuda-double-64idx 532 TEST_OPTS: -j15 query=requires queryval=cuda 533 534linux-cuda-single-cxx: 535 extends: 536 - .stage-3 537 - .linux_test_noflags 538 tags: 539 - cuda-stage3 540 variables: 541 TEST_ARCH: arch-ci-linux-cuda-single-cxx 542 LOAD_MODULES: nvhpc/22.3 543 TEST_OPTS: -j15 query=requires queryval=cuda 544 545linux-cuda-uni-pkgs: 546 extends: 547 - .stage-3 548 - .linux_test 549 tags: 550 - cuda-stage3 551 variables: 552 TEST_ARCH: arch-ci-linux-cuda-uni-pkgs 553 TEST_OPTS: -j20 query=requires queryval=cuda 554 555linux-viennacl: 556 extends: 557 - .stage-3 558 - .linux_test 559 tags: 560 - cuda-stage3 561 variables: 562 TEST_ARCH: arch-ci-linux-viennacl 563 MAKE_CXXFLAGS: -Werror -Wno-ignored-attributes 564 TEST_OPTS: -j20 query=requires queryval=viennacl 565 566linux-without-fc: 567 extends: 568 - .stage-3 569 - .linux_test 570 tags: 571 - gce-nfs 572 variables: 573 TEST_ARCH: arch-ci-linux-without-fc 574 575linux-cmplx-single: 576 extends: 577 - .stage-3 578 - .linux_test 579 tags: 580 - name:si 581 variables: 582 FLEXIBLAS: netlib 583 TEST_ARCH: arch-ci-linux-cmplx-single 584 585linux-gcc-cxx-avx2: 586 extends: 587 - .stage-3 588 - .linux_test 589 tags: 590 - name:petsc-knl-01 591 variables: 592 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 593 594linux-clang-avx: 595 extends: 596 - .stage-3 597 - .linux_test 598 tags: 599 - name:petsc-knl-01 600 variables: 601 TEST_ARCH: arch-ci-linux-clang-avx 602 603linux-knl: 604 extends: 605 - .stage-3 606 - .linux_test 607 tags: 608 - name:petsc-knl-01 609 variables: 610 MAKE_FFLAGS: -warn errors 611 TEST_ARCH: arch-ci-linux-knl 612 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 613 614linux-intel-mkl-single: 615 extends: 616 - .stage-3 617 - .linux_test_nofflags 618 tags: 619 - name:petsc-knl-01 620 variables: 621 TEST_ARCH: arch-ci-linux-intel-mkl-single 622 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 623 624linux-cxx-cmplx-pkgs-64idx: 625 extends: 626 - .stage-3 627 - .linux_test 628 tags: 629 - gce-nfs 630 variables: 631 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx 632 LOAD_MODULES: llvm/9.0.0-7fyffox gcc/8.3.0-fjpc5ys cmake/3.14.2-rl3q676 633 634# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 635linux-pkgs-dbg-ftn-interfaces: 636 extends: 637 - .stage-3 638 - .linux_test 639 tags: 640 - gce-nfs 641 variables: 642 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 643 LOAD_MODULES: cmake/3.20.5-yjp2hz6 644 OMP_PROC_BIND: "false" 645 OMP_NUM_THREADS: 4 646 647linux-pkgs-cxx-mlib: 648 extends: 649 - .stage-3 650 - .linux_test 651 tags: 652 - gce-u22-stage3 653 variables: 654 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 655 656linux-pkgs-valgrind: 657 extends: 658 - .stage-3 659 - .linux_test 660 tags: 661 - gce-valgrind 662 variables: 663 TEST_ARCH: arch-ci-linux-pkgs-valgrind 664 TIMEOUT: 7200 665 666linux-pkgs-opt: 667 extends: 668 - .stage-3 669 - .linux_test 670 tags: 671 - gce-nfs, linux-fast 672 variables: 673 TEST_ARCH: arch-ci-linux-pkgs-opt 674 LOAD_MODULES: gcc/10.1.0-5hiqhdh 675 676linux-pkgs-gcov: 677 extends: 678 - .stage-3 679 - .linux_test 680 tags: 681 - gce-nfs, linux-gcov 682 variables: 683 TEST_ARCH: arch-ci-linux-pkgs-gcov 684 LOAD_MODULES: python-3.9.13-gcc-7.5.0-fq67pdh py-gcovr-5.2-gcc-7.5.0-o7fu4xq 685 RUN_GCOV: 1 686linux-cmplx-gcov: 687 extends: 688 - .stage-3 689 - .linux_test 690 tags: 691 - gce-nfs, linux-gcov 692 variables: 693 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkfunctionlist 694 TEST_ARCH: arch-ci-linux-cmplx-gcov 695 LOAD_MODULES: gcc/8.3.0-fjpc5ys python-3.9.13-gcc-7.5.0-fq67pdh py-gcovr-5.2-gcc-7.5.0-o7fu4xq 696 RUN_GCOV: 1 697 698linux-matlab-ilp64-gcov: 699 extends: 700 - .stage-3 701 - .linux_test 702 tags: 703 - gce-nfs, linux-gcov 704 variables: 705 TEST_ARCH: arch-ci-linux-matlab-ilp64-gcov 706 LOAD_MODULES: matlab/R2018a python-3.9.13-gcc-7.5.0-fq67pdh py-gcovr-5.2-gcc-7.5.0-o7fu4xq 707 RUN_GCOV: 1 708 allow_failure: true 709 710linux-gcov: 711 extends: 712 - .stage-3 713 - .linux_test 714 tags: 715 - gce-nfs, linux-gcov 716 variables: 717 TEST_ARCH: arch-ci-linux-gcov 718 LOAD_MODULES: python-3.9.13-gcc-7.5.0-fq67pdh py-gcovr-5.2-gcc-7.5.0-o7fu4xq 719 RUN_GCOV: 1 720 721linux-pgi: 722 extends: 723 - .stage-3 724 - .linux_test_noflags 725 tags: 726 - gce-nfs, linux-mcpu 727 variables: 728 TEST_ARCH: arch-ci-linux-pgi 729 LOAD_MODULES: hpc_sdk/20.9 730 731# If the Nag license server fails then ${PETSC_DIR}/naglicenseproblem is created and the job is marked as failed but allow_failure 732linux-nagfor: 733 extends: 734 - .stage-3 735 - .linux_test_nofflags 736 tags: 737 - gce-nfs, linux-mcpu 738 script: 739 - rm -f naglicenseproblem 740 - printf "PATH:$PATH\n" 741 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 742 - 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 743 - printf "./config/examples/${TEST_ARCH}.py\n" 744 - cat ./config/examples/${TEST_ARCH}.py 745 - ./config/examples/${TEST_ARCH}.py || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 746 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 747 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" check || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 748 - make updatedatafiles 749 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" cleantest allgtests-tap TIMEOUT=${TIMEOUT} ${TEST_OPTS} || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 750 variables: 751 LOAD_MODULES: nag/6.1 752 TEST_ARCH: arch-ci-linux-nagfor 753 allow_failure: 754 exit_codes: 126 755 756linux-intel-cmplx: 757 extends: 758 - .stage-3 759 - .linux_test_nofflags 760 tags: 761 - gce-nfs 762 variables: 763 TEST_ARCH: arch-ci-linux-intel-cmplx 764 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib cmake/3.20.5-yjp2hz6 765 ENABLE_PETSC4PY_LDPRELOAD: 1 766 767linux-xsdk-dbg: 768 extends: 769 - .stage-3 770 - .linux_test 771 tags: 772 - gce-nfs 773 variables: 774 TEST_ARCH: arch-ci-linux-xsdk-dbg 775 LOAD_MODULES: gcc/8.3.0-fjpc5ys 776 777linux-analyzer: 778 extends: 779 - .stage-2 780 - .linux_test 781 tags: 782 - gce-u22-stage2 783 script: 784 - printf "PATH:$PATH\n" 785 - printf "PYTHONPATH:$PYTHONPATH\n" 786 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 787 - 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 788 - printf "./config/examples/${TEST_ARCH}.py\n" 789 - cat ./config/examples/${TEST_ARCH}.py 790 - ./config/examples/${TEST_ARCH}.py 791 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 792 - make LINTER_OPTIONS="${LINTER_OPTIONS}" lint 793 variables: 794 TEST_ARCH: arch-ci-linux-analyzer 795 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config-14 --libdir`/libclang.so.1 --verbose --werror" 796 artifacts: 797 paths: 798 - ${TEST_ARCH}/lib/petsc/conf/*.log 799 - ./petscLintPatches/*.patch 800 expire_in: 4 days 801 802linux-intel: 803 extends: 804 - .stage-3 805 - .linux_test_nofflags 806 tags: 807 - gce-nfs 808 variables: 809 TEST_ARCH: arch-ci-linux-intel 810 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib 811 812linux-opt-misc: 813 extends: 814 - .stage-3 815 - .linux_test 816 tags: 817 - gce-nfs, linux-fast 818 variables: 819 TEST_ARCH: arch-ci-linux-opt-misc 820 LOAD_MODULES: gcc/6.5.0-57usejd 821 822linux-pkgs-64idx: 823 extends: 824 - .stage-3 825 - .linux_test 826 tags: 827 - gce-nfs, linux-mcpu 828 variables: 829 TEST_ARCH: arch-ci-linux-pkgs-64idx 830 LOAD_MODULES: cmake/3.20.5-yjp2hz6 intel-mkl/19.5 831 832linux-64idx-i8: 833 extends: 834 - .stage-3 835 - .linux_test 836 tags: 837 - gce-nfs 838 variables: 839 TEST_ARCH: arch-ci-linux-64idx-i8 840 841linux-gcc-ifc-cmplx: 842 extends: 843 - .stage-3 844 - .linux_test_nofflags 845 tags: 846 - gce-nfs 847 variables: 848 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 849 LOAD_MODULES: intel/19.0-nompilib cmake/3.20.0-vov726r 850 851linux-opt-cxx-quad: 852 extends: 853 - .stage-3 854 - .linux_test 855 tags: 856 - gce-nfs 857 variables: 858 TEST_ARCH: arch-ci-linux-opt-cxx-quad 859 860linux-ILP64: 861 extends: 862 - .stage-3 863 - .linux_test 864 tags: 865 - gce-nfs 866 variables: 867 TEST_ARCH: arch-ci-linux-ILP64 868 LOAD_MODULES: mpich/2-1.5-gcc750 869 870linux-64idx-i8-uni: 871 extends: 872 - .stage-3 873 - .linux_test 874 tags: 875 - gce-nfs 876 variables: 877 TEST_ARCH: arch-ci-linux-64idx-i8-uni 878 879mswin-intel-cxx-cmplx: 880 extends: 881 - .stage-3 882 - .mswin_test 883 tags: 884 - mswin-stage3 885 variables: 886 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 887 888mswin-uni: 889 extends: 890 - .stage-3 891 - .mswin_test 892 tags: 893 - mswin-stage3 894 variables: 895 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 896 TEST_ARCH: arch-ci-mswin-uni 897 898mswin-gnu: 899 extends: 900 - .stage-3 901 - .mswin_test 902 tags: 903 - mswin-stage3 904 variables: 905 TEST_ARCH: arch-ci-mswin-gnu 906 MAKE_CFLAGS: -Werror 907 MAKE_CXXFLAGS: -Werror 908 MAKE_FFLAGS: -Werror 909 DISABLE_TESTS: 1 910 artifacts: 911 reports: 912 paths: 913 - arch-*/lib/petsc/conf/*.log 914 expire_in: 4 days 915 916#mswin-intel: 917# extends: 918# - .stage-3 919# - .mswin_test 920# tags: 921# - os:win 922# variables: 923# TEST_ARCH: arch-ci-mswin-intel 924 925opensolaris-pkgs-opt: 926 extends: 927 - .stage-3 928 - .opensolaris_test 929 tags: 930 - name:n-gage 931 variables: 932 TEST_ARCH: arch-ci-opensolaris-pkgs-opt 933 934opensolaris-cmplx-pkgs-dbg: 935 extends: 936 - .stage-3 937 - .opensolaris_test 938 tags: 939 - name:n-gage 940 variables: 941 TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg 942 943opensolaris-misc: 944 extends: 945 - .stage-3 946 - .opensolaris_test 947 tags: 948 - name:n-gage 949 variables: 950 TEST_ARCH: arch-ci-opensolaris-misc 951 952osx-cxx-cmplx-pkgs-dbg: 953 extends: 954 - .stage-3 955 - .osx_test 956 tags: 957 - os:macos 958 variables: 959 TEST_ARCH: arch-ci-osx-cxx-cmplx-pkgs-dbg 960 INIT_SCRIPT: /Users/glci/bin/py3.sh 961 962osx-cxx-pkgs-opt: 963 extends: 964 - .stage-3 965 - .osx_test 966 tags: 967 - os:macos, opt 968 variables: 969 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkfunctionlist 970 TEST_ARCH: arch-ci-osx-cxx-pkgs-opt 971 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 972 973osx-dbg: 974 extends: 975 - .stage-3 976 - .osx_test 977 tags: 978 - os:macos 979 variables: 980 TEST_ARCH: arch-ci-osx-dbg 981 982osx-xsdk-opt: 983 extends: 984 - .stage-3 985 - .osx_test 986 tags: 987 - os:macos, opt 988 variables: 989 TEST_ARCH: arch-ci-osx-xsdk-opt 990 991# job for analyzing the coverage results and generating the various reports 992analyze-coverage: 993 extends: .test 994 stage: stage-4 995 tags: 996 - gce-nfs-short 997 dependencies: 998 - linux-pkgs-gcov 999 - linux-cmplx-gcov 1000 - linux-matlab-ilp64-gcov 1001 - linux-gcov 1002 variables: 1003 PYTHON: python3 1004 PETSC_ARCH: arch-ci-analyze-pipeline 1005 LOAD_MODULES: python-3.9.13-gcc-7.5.0-fq67pdh py-gcovr-5.2-gcc-7.5.0-o7fu4xq 1006 before_script: 1007 - date 1008 - hostname 1009 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 1010 - ${PYTHON} --version 1011 - gcovr --version 1012 script: 1013 - printf "PATH:$PATH\n" 1014 - printf "PYTHONPATH:$PYTHONPATH\n" 1015 - 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 1016 - ${PYTHON} ./configure --with-mpi=0 --with-cxx=0 --download-sowing --with-fortran-bindings 1017 - make mergegcov PETSC_GCOV_OPTIONS='--ci-mode --verbose' 1018 coverage: /^\s*lines:\s*\d+.\d+\%/ 1019 artifacts: 1020 name: "$CI_JOB_NAME" 1021 when: always 1022 paths: 1023 - arch-ci-analyze-pipeline/gcovr/* 1024 - arch-ci-analyze-pipeline/lib/petsc/conf/*.log 1025 expire_in: 4 days 1026 reports: 1027 coverage_report: 1028 coverage_format: cobertura 1029 path: arch-ci-analyze-pipeline/gcovr/xml/*.xml 1030 1031# template for the coverage review jobs, these must be separate jobs as you cannot deploy multiple 1032# environments from one job... 1033.coverage-review: 1034 extends: .test 1035 stage: .post 1036 tags: 1037 - gce-nfs-short 1038 dependencies: 1039 - analyze-coverage 1040 script: 1041 - date 1042 - hostname 1043 artifacts: 1044 name: "$CI_JOB_NAME" 1045 when: always 1046 paths: 1047 - arch-ci-analyze-pipeline/gcovr/* 1048 - arch-ci-analyze-pipeline/lib/petsc/conf/*.log 1049 expire_in: 4 days 1050 1051coverage-total-review: 1052 extends: .coverage-review 1053 environment: 1054 name: coverage/all/$CI_COMMIT_REF_SLUG 1055 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/arch-ci-analyze-pipeline/gcovr/html/report.html 1056 auto_stop_in: one week 1057 deployment_tier: testing 1058 1059coverage-untested-review: 1060 extends: .coverage-review 1061 environment: 1062 name: coverage/untested/$CI_COMMIT_REF_SLUG 1063 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 1064 auto_stop_in: one week 1065 deployment_tier: testing 1066 1067analyze-pipeline: 1068 extends: .coverage-review 1069 script: 1070 - date 1071 - hostname 1072 # This file is created by lib/petsc/bin/maint/gcov.py. If it exists then the CI 1073 # pipeline should fail 1074 - if [ -f ./arch-ci-analyze-pipeline/gcovr/.CI_FAIL ]; then 1075 cat ./arch-ci-analyze-pipeline/gcovr/merge_gcov_errors.log; 1076 exit 1; 1077 fi 1078 1079# 1080# Base job for a documentation build 1081# 1082.docs: 1083 stage: stage-3 1084 tags: 1085 - gce-stage2 1086 before_script: 1087 - VENV=venv-petsc-docs && 1088 python3 -m venv $VENV && 1089 . $VENV/bin/activate && 1090 cd doc && 1091 pip install -r requirements.txt 1092 1093# 1094# Build documentation and make available for review using GitLab pages 1095# 1096docs-review: 1097 extends: 1098 - .docs 1099 - .test-basic 1100 script: 1101 - (make html BUILDDIR="../public" SPHINXOPTS="-T -E -W --keep-going -j 1") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1102 - (make latexpdf SPHINXOPTS="-T -E -W --keep-going") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1103 - cp _build/latex/manual.pdf ../public/html/docs/manual/ 1104 environment: 1105 name: review/$CI_COMMIT_REF_NAME 1106 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1107 artifacts: 1108 paths: 1109 - public 1110 expire_in: 4 days 1111 except: 1112 variables: 1113 - $PETSC_CI_SCHEDULED =~ /yes/ 1114 1115# 1116# Deploy documentation using GitLab pages 1117# 1118pages: # this job name has special meaning to GitLab 1119 extends: .docs 1120 interruptible: true 1121 script: 1122 - mkdir -p ../public/ && cp public/* ../public/ 1123 - git fetch --unshallow --no-tags origin +release:remotes/origin/release +main:remotes/origin/main 1124 - git checkout origin/main && pip install -r requirements.txt && make website-deploy SPHINXOPTS="-j 1" BUILDDIR="../public/main" && make latexpdf && mkdir -p ../public/main/docs/manual && cp _build/latex/manual.pdf ../public/main/docs/manual/ 1125 - make clean BUILDDIR="../public/release" 1126 - git checkout origin/release && pip install -r requirements.txt && make website-deploy SPHINXOPTS="-j 1" BUILDDIR="../public/release" && make latexpdf && mkdir -p ../public/release/docs/manual && cp _build/latex/manual.pdf ../public/release/docs/manual/ 1127 - rm -rf ../public/*/.doctrees 1128 only: 1129 variables: 1130 - $PETSC_CI_SCHEDULED == "yes" 1131 artifacts: 1132 paths: 1133 - public 1134 expire_in: 4 days 1135 1136# 1137# 1138# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1139# that fail produce a warning, but do not block execution of a pipeline. 1140# 1141 1142.test-experimental: 1143 extends: .test 1144 allow_failure: true 1145 1146