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 CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" cleantest 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 479linux-sycl-double: 480 extends: 481 - .stage-3 482 - .linux_test_noflags 483 tags: 484 - gce-nfs, linux-fast 485 variables: 486 TEST_ARCH: arch-ci-linux-sycl-double 487 LOAD_MODULES: compiler/latest mpi/latest cmake/3.20.5-yjp2hz6 488 TEST_OPTS: query=requires queryval=kokkos_kernels 489 490linux-cuda-pkgs: 491 extends: 492 - .stage-3 493 - .linux_test 494 tags: 495 - cuda-stage3 496 variables: 497 TEST_ARCH: arch-ci-linux-cuda-pkgs 498 TEST_OPTS: -j3 query=requires queryval=cuda 499 500linux-cuda112-omp: 501 extends: 502 - .stage-3 503 - .linux_test 504 tags: 505 - cuda-stage3 506 variables: 507 TEST_ARCH: arch-ci-linux-cuda112-omp 508 TEST_OPTS: -j4 query=requires queryval=kokkos_kernels 509 LOAD_MODULES: cuda/11.2.2 u-gcc-9/9.4.0 510 OMP_PROC_BIND: "false" 511 OMP_NUM_THREADS: 1 512 513linux-cuda-cmplx: 514 extends: 515 - .stage-3 516 - .linux_test 517 tags: 518 - cuda-stage3 519 variables: 520 TEST_ARCH: arch-ci-linux-cuda-cmplx 521 522linux-cuda-double-64idx: 523 extends: 524 - .stage-3 525 - .linux_test 526 tags: 527 - cuda-stage3 528 variables: 529 TEST_ARCH: arch-ci-linux-cuda-double-64idx 530 TEST_OPTS: -j15 query=requires queryval=cuda 531 532linux-cuda-single-cxx: 533 extends: 534 - .stage-3 535 - .linux_test_noflags 536 tags: 537 - cuda-stage3 538 variables: 539 TEST_ARCH: arch-ci-linux-cuda-single-cxx 540 LOAD_MODULES: nvhpc/22.3 541 TEST_OPTS: -j15 query=requires queryval=cuda 542 543linux-cuda-uni-pkgs: 544 extends: 545 - .stage-3 546 - .linux_test 547 tags: 548 - cuda-stage3 549 variables: 550 TEST_ARCH: arch-ci-linux-cuda-uni-pkgs 551 TEST_OPTS: -j20 query=requires queryval=cuda 552 553linux-viennacl: 554 extends: 555 - .stage-3 556 - .linux_test 557 tags: 558 - cuda-stage3 559 variables: 560 TEST_ARCH: arch-ci-linux-viennacl 561 MAKE_CXXFLAGS: -Werror -Wno-ignored-attributes 562 TEST_OPTS: -j20 query=requires queryval=viennacl 563 564linux-without-fc: 565 extends: 566 - .stage-3 567 - .linux_test 568 tags: 569 - gce-nfs 570 variables: 571 TEST_ARCH: arch-ci-linux-without-fc 572 573linux-cmplx-single: 574 extends: 575 - .stage-3 576 - .linux_test 577 tags: 578 - name:si 579 variables: 580 FLEXIBLAS: netlib 581 TEST_ARCH: arch-ci-linux-cmplx-single 582 583linux-gcc-cxx-avx2: 584 extends: 585 - .stage-3 586 - .linux_test 587 tags: 588 - name:petsc-knl-01 589 variables: 590 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 591 592linux-clang-avx: 593 extends: 594 - .stage-3 595 - .linux_test 596 tags: 597 - name:petsc-knl-01 598 variables: 599 TEST_ARCH: arch-ci-linux-clang-avx 600 601linux-knl: 602 extends: 603 - .stage-3 604 - .linux_test 605 tags: 606 - name:petsc-knl-01 607 variables: 608 MAKE_FFLAGS: -warn errors 609 TEST_ARCH: arch-ci-linux-knl 610 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 611 612linux-intel-mkl-single: 613 extends: 614 - .stage-3 615 - .linux_test_nofflags 616 tags: 617 - name:petsc-knl-01 618 variables: 619 TEST_ARCH: arch-ci-linux-intel-mkl-single 620 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 621 622linux-cxx-cmplx-pkgs-64idx: 623 extends: 624 - .stage-3 625 - .linux_test 626 tags: 627 - gce-nfs 628 variables: 629 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx 630 LOAD_MODULES: llvm/9.0.0-7fyffox gcc/8.3.0-fjpc5ys cmake/3.14.2-rl3q676 631 632# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 633linux-pkgs-dbg-ftn-interfaces: 634 extends: 635 - .stage-3 636 - .linux_test 637 tags: 638 - gce-nfs 639 variables: 640 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 641 LOAD_MODULES: cmake/3.20.5-yjp2hz6 642 OMP_PROC_BIND: "false" 643 OMP_NUM_THREADS: 4 644 645linux-pkgs-cxx-mlib: 646 extends: 647 - .stage-3 648 - .linux_test 649 tags: 650 - gce-u22-stage3 651 variables: 652 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 653 654linux-pkgs-valgrind: 655 extends: 656 - .stage-3 657 - .linux_test 658 tags: 659 - gce-valgrind 660 variables: 661 TEST_ARCH: arch-ci-linux-pkgs-valgrind 662 TIMEOUT: 7200 663 664linux-pkgs-opt: 665 extends: 666 - .stage-3 667 - .linux_test 668 tags: 669 - gce-nfs, linux-fast 670 variables: 671 TEST_ARCH: arch-ci-linux-pkgs-opt 672 LOAD_MODULES: gcc/10.1.0-5hiqhdh 673 674linux-pkgs-gcov: 675 extends: 676 - .stage-3 677 - .linux_test 678 tags: 679 - gce-nfs, linux-gcov 680 variables: 681 TEST_ARCH: arch-ci-linux-pkgs-gcov 682 RUN_GCOV: 1 683 684linux-cmplx-gcov: 685 extends: 686 - .stage-3 687 - .linux_test 688 tags: 689 - gce-nfs, linux-gcov 690 variables: 691 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkfunctionlist 692 TEST_ARCH: arch-ci-linux-cmplx-gcov 693 LOAD_MODULES: gcc/8.3.0-fjpc5ys 694 RUN_GCOV: 1 695 696linux-matlab-ilp64-gcov: 697 extends: 698 - .stage-3 699 - .linux_test 700 tags: 701 - gce-nfs, linux-gcov 702 variables: 703 TEST_ARCH: arch-ci-linux-matlab-ilp64-gcov 704 LOAD_MODULES: matlab/R2018a 705 RUN_GCOV: 1 706 allow_failure: true 707 708linux-gcov: 709 extends: 710 - .stage-3 711 - .linux_test 712 tags: 713 - gce-nfs, linux-gcov 714 variables: 715 TEST_ARCH: arch-ci-linux-gcov 716 RUN_GCOV: 1 717 718linux-pgi: 719 extends: 720 - .stage-3 721 - .linux_test_noflags 722 tags: 723 - gce-nfs, linux-mcpu 724 variables: 725 TEST_ARCH: arch-ci-linux-pgi 726 LOAD_MODULES: hpc_sdk/20.9 727 728# If the Nag license server fails then ${PETSC_DIR}/naglicenseproblem is created and the job is marked as failed but allow_failure 729linux-nagfor: 730 extends: 731 - .stage-3 732 - .linux_test_nofflags 733 tags: 734 - gce-nfs, linux-mcpu 735 script: 736 - rm -f naglicenseproblem 737 - printf "PATH:$PATH\n" 738 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 739 - 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 740 - printf "./config/examples/${TEST_ARCH}.py\n" 741 - cat ./config/examples/${TEST_ARCH}.py 742 - ./config/examples/${TEST_ARCH}.py || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 743 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 744 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" check || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 745 - make updatedatafiles 746 - 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 747 variables: 748 LOAD_MODULES: nag/6.1 749 TEST_ARCH: arch-ci-linux-nagfor 750 allow_failure: 751 exit_codes: 126 752 753linux-intel-cmplx: 754 extends: 755 - .stage-3 756 - .linux_test_nofflags 757 tags: 758 - gce-nfs 759 variables: 760 TEST_ARCH: arch-ci-linux-intel-cmplx 761 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib cmake/3.20.5-yjp2hz6 762 ENABLE_PETSC4PY_LDPRELOAD: 1 763 764linux-xsdk-dbg: 765 extends: 766 - .stage-3 767 - .linux_test 768 tags: 769 - gce-nfs 770 variables: 771 TEST_ARCH: arch-ci-linux-xsdk-dbg 772 LOAD_MODULES: gcc/8.3.0-fjpc5ys 773 774linux-analyzer: 775 extends: 776 - .stage-2 777 - .linux_test 778 tags: 779 - gce-u22-stage2 780 script: 781 - printf "PATH:$PATH\n" 782 - printf "PYTHONPATH:$PYTHONPATH\n" 783 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 784 - 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 785 - printf "./config/examples/${TEST_ARCH}.py\n" 786 - cat ./config/examples/${TEST_ARCH}.py 787 - ./config/examples/${TEST_ARCH}.py 788 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 789 - make LINTER_OPTIONS="${LINTER_OPTIONS}" lint 790 variables: 791 TEST_ARCH: arch-ci-linux-analyzer 792 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config-14 --libdir`/libclang.so.1 --verbose --werror" 793 artifacts: 794 paths: 795 - ${TEST_ARCH}/lib/petsc/conf/*.log 796 - ./petscLintPatches/*.patch 797 expire_in: 4 days 798 799linux-intel: 800 extends: 801 - .stage-3 802 - .linux_test_nofflags 803 tags: 804 - gce-nfs 805 variables: 806 TEST_ARCH: arch-ci-linux-intel 807 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib 808 809linux-opt-misc: 810 extends: 811 - .stage-3 812 - .linux_test 813 tags: 814 - gce-nfs, linux-fast 815 variables: 816 TEST_ARCH: arch-ci-linux-opt-misc 817 LOAD_MODULES: gcc/6.5.0-57usejd 818 819linux-pkgs-64idx: 820 extends: 821 - .stage-3 822 - .linux_test 823 tags: 824 - gce-nfs, linux-mcpu 825 variables: 826 TEST_ARCH: arch-ci-linux-pkgs-64idx 827 LOAD_MODULES: cmake/3.20.5-yjp2hz6 intel-mkl/19.5 828 829linux-64idx-i8: 830 extends: 831 - .stage-3 832 - .linux_test 833 tags: 834 - gce-nfs 835 variables: 836 TEST_ARCH: arch-ci-linux-64idx-i8 837 838linux-gcc-ifc-cmplx: 839 extends: 840 - .stage-3 841 - .linux_test_nofflags 842 tags: 843 - gce-nfs 844 variables: 845 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 846 LOAD_MODULES: intel/19.0-nompilib cmake/3.20.0-vov726r 847 848linux-opt-cxx-quad: 849 extends: 850 - .stage-3 851 - .linux_test 852 tags: 853 - gce-nfs 854 variables: 855 TEST_ARCH: arch-ci-linux-opt-cxx-quad 856 857linux-ILP64: 858 extends: 859 - .stage-3 860 - .linux_test 861 tags: 862 - gce-nfs 863 variables: 864 TEST_ARCH: arch-ci-linux-ILP64 865 LOAD_MODULES: mpich/2-1.5-gcc750 866 867linux-64idx-i8-uni: 868 extends: 869 - .stage-3 870 - .linux_test 871 tags: 872 - gce-nfs 873 variables: 874 TEST_ARCH: arch-ci-linux-64idx-i8-uni 875 876mswin-intel-cxx-cmplx: 877 extends: 878 - .stage-3 879 - .mswin_test 880 tags: 881 - mswin-stage3 882 variables: 883 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 884 885mswin-uni: 886 extends: 887 - .stage-3 888 - .mswin_test 889 tags: 890 - mswin-stage3 891 variables: 892 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 893 TEST_ARCH: arch-ci-mswin-uni 894 895mswin-gnu: 896 extends: 897 - .stage-3 898 - .mswin_test 899 tags: 900 - mswin-stage3 901 variables: 902 TEST_ARCH: arch-ci-mswin-gnu 903 MAKE_CFLAGS: -Werror 904 MAKE_CXXFLAGS: -Werror 905 MAKE_FFLAGS: -Werror 906 DISABLE_TESTS: 1 907 artifacts: 908 reports: 909 paths: 910 - arch-*/lib/petsc/conf/*.log 911 expire_in: 4 days 912 913#mswin-intel: 914# extends: 915# - .stage-3 916# - .mswin_test 917# tags: 918# - os:win 919# variables: 920# TEST_ARCH: arch-ci-mswin-intel 921 922opensolaris-pkgs-opt: 923 extends: 924 - .stage-3 925 - .opensolaris_test 926 tags: 927 - name:n-gage 928 variables: 929 TEST_ARCH: arch-ci-opensolaris-pkgs-opt 930 931opensolaris-cmplx-pkgs-dbg: 932 extends: 933 - .stage-3 934 - .opensolaris_test 935 tags: 936 - name:n-gage 937 variables: 938 TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg 939 940opensolaris-misc: 941 extends: 942 - .stage-3 943 - .opensolaris_test 944 tags: 945 - name:n-gage 946 variables: 947 TEST_ARCH: arch-ci-opensolaris-misc 948 949osx-cxx-cmplx-pkgs-dbg: 950 extends: 951 - .stage-3 952 - .osx_test 953 tags: 954 - os:macos 955 variables: 956 TEST_ARCH: arch-ci-osx-cxx-cmplx-pkgs-dbg 957 INIT_SCRIPT: /Users/glci/bin/py3.sh 958 959osx-cxx-pkgs-opt: 960 extends: 961 - .stage-3 962 - .osx_test 963 tags: 964 - os:macos, opt 965 variables: 966 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkfunctionlist 967 TEST_ARCH: arch-ci-osx-cxx-pkgs-opt 968 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 969 970osx-dbg: 971 extends: 972 - .stage-3 973 - .osx_test 974 tags: 975 - os:macos 976 variables: 977 TEST_ARCH: arch-ci-osx-dbg 978 979osx-xsdk-opt: 980 extends: 981 - .stage-3 982 - .osx_test 983 tags: 984 - os:macos, opt 985 variables: 986 TEST_ARCH: arch-ci-osx-xsdk-opt 987 988# job for analyzing the final coverage results 989analyze-pipeline: 990 extends: .test 991 stage: .post 992 tags: 993 - gce-nfs-short 994 dependencies: 995 - linux-pkgs-gcov 996 - linux-cmplx-gcov 997 - linux-matlab-ilp64-gcov 998 - linux-gcov 999 variables: 1000 PETSC_ARCH: arch-ci-analyze-pipeline 1001 before_script: 1002 - date 1003 - hostname 1004 script: 1005 - ./configure --with-mpi=0 --with-cxx=0 --with-c2html 1006 - make srchtml 1007 - make mergegcov 1008 artifacts: 1009 name: "$CI_JOB_NAME" 1010 when: always 1011 paths: 1012 - arch-ci-analyze-pipeline/* 1013 expire_in: 4 days 1014 1015 1016# 1017# Base job for a documentation build 1018# 1019.docs: 1020 stage: stage-3 1021 tags: 1022 - gce-stage2 1023 before_script: 1024 - VENV=venv-petsc-docs && 1025 python3 -m venv $VENV && 1026 . $VENV/bin/activate && 1027 cd doc && 1028 pip install -r requirements.txt 1029 1030# 1031# Build documentation and make available for review using GitLab pages 1032# 1033docs-review: 1034 extends: 1035 - .docs 1036 - .test-basic 1037 script: 1038 - (make html BUILDDIR="../public" SPHINXOPTS="-T -E -W --keep-going -j 1") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1039 - (make latexpdf SPHINXOPTS="-T -E -W --keep-going") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1040 - cp _build/latex/manual.pdf ../public/html/docs/manual/ 1041 environment: 1042 name: review/$CI_COMMIT_REF_NAME 1043 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1044 artifacts: 1045 paths: 1046 - public 1047 expire_in: 4 days 1048 except: 1049 variables: 1050 - $PETSC_CI_SCHEDULED =~ /yes/ 1051 1052# 1053# Deploy documentation using GitLab pages 1054# 1055pages: # this job name has special meaning to GitLab 1056 extends: .docs 1057 interruptible: true 1058 script: 1059 - mkdir -p ../public/ && cp public/* ../public/ 1060 - git fetch --unshallow --no-tags origin +release:remotes/origin/release +main:remotes/origin/main 1061 - 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/ 1062 - make clean BUILDDIR="../public/release" 1063 - 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/ 1064 - rm -rf ../public/*/.doctrees 1065 only: 1066 variables: 1067 - $PETSC_CI_SCHEDULED == "yes" 1068 artifacts: 1069 paths: 1070 - public 1071 expire_in: 4 days 1072 1073# 1074# 1075# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1076# that fail produce a warning, but do not block execution of a pipeline. 1077# 1078 1079.test-experimental: 1080 extends: .test 1081 allow_failure: true 1082 1083