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