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