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