1# 2# stage-1 take only a few minutes; they do not run the full test suite or external packages. 3# 4# stage-2 runs on MCS systems and may take 10 to 15 minutes. They run the full test suite but with limited mixture of external packages 5# 6# stage-3 runs on MCS systems and may take an hour or more. They run the full test suite and heavily test external packages, utilize valgrind etc 7# 8# The stage-(n) tests are only started if all of the stage-(n-1) tests run without error 9# You can limit the testing by using the variable STAGE with value 1 or 2 10# 11 12stages: 13 - stage-1 14 - stage-2 15 - stage-3 16 - stage-4 17variables: 18 GIT_STRATEGY: fetch 19 GIT_CLEAN_FLAGS: -ffdxq 20 PETSC_OPTIONS: -checkfunctionlist 21 TIMEOUT: 450 22 23# 24# The most basic template that most tests will expand upon 25# 26 27.test-basic: 28 interruptible: true 29 only: 30 refs: 31# Set with CI/CD Shedules - New Schedule 32 - schedules 33 - api 34# Set with CI/CD Pipelines - Run Pipeline 35 - web 36 - merge_requests 37 dependencies: [] 38 39.test: 40 extends: .test-basic 41 except: 42 variables: 43 # Skip if the docs-only label is attached to a merge request 44 - $CI_MERGE_REQUEST_LABELS =~ /(^|,)docs-only($|,)/ 45 - $PETSC_CI_SCHEDULED =~ /yes/ 46 47check-ci-settings: 48 extends: .test-basic 49 stage: .pre 50 tags: 51 - gce-stage1 52 script: 53 - lib/petsc/bin/maint/check-ci-settings.sh 54# 55# This provides the basic order of operations and options template for cloud based stage 1 tests. 56# Not all test-short need to follow this template but most will. 57# 58 59.stage-1: 60 extends: .test 61 stage: stage-1 62 tags: 63 - gce-u22-stage1 64 before_script: 65 - date 66 - hostname 67 - grep PRETTY_NAME /etc/os-release 68 - nproc 69 - lscpu 70 - ccache --zero-stats 71 script: 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 - printf "PATH:$PATH\n" 75 - printf "PYTHONPATH:$PYTHONPATH\n" 76 - printf "CONFIG_OPTS:${CONFIG_OPTS}\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 --with-strict-petscerrorcode 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 --with-strict-petscerrorcode 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 [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 245 - if [ ! -z ${GCOV_MODULES+x} ]; then module --trace load ${GCOV_MODULES}; module list; fi 246 - if [ ! -z ${INIT_SCRIPT+x} ]; then echo "sourcing ${INIT_SCRIPT}"; source ${INIT_SCRIPT}; fi 247 - if [ ! -z ${RUN_GCOV+x} ]; then gcovr --version; fi 248 - if [ -d ${HOME}/petsc-hash-pkgs/ ]; then find ${HOME}/petsc-hash-pkgs/ -maxdepth 1 -mindepth 1 -type d -mtime +25 -exec rm -rf {} \; ; fi 249 - printf "PATH:$PATH\n" 250 - printf "PYTHONPATH:$PYTHONPATH\n" 251 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 252 - 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 253 - printf "./config/examples/${TEST_ARCH}.py\n" 254 - cat ./config/examples/${TEST_ARCH}.py 255 - ./config/examples/${TEST_ARCH}.py || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 256 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 257 - make CFLAGS="${MAKE_CFLAGS}" CXXFLAGS="${MAKE_CXXFLAGS}" FFLAGS="${MAKE_FFLAGS}" check || if [ -f naglicenseproblem ]; then exit 126; else exit 1; fi 258 - make updatedatafiles 259 - 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 260 - if [ -z ${DISABLE_TESTS+x} ]; then 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; fi 261 - if [ ! -z ${RUN_GCOV_OPTIONS+x} ]; then printf "RUN_GCOV_OPTIONS:$RUN_GCOV_OPTIONS\n"; fi 262 - if [ ! -z ${RUN_GCOV+x} ]; then make gcov PETSC_GCOV_OPTIONS="${RUN_GCOV_OPTIONS}"; fi 263 artifacts: 264 reports: 265 junit: ${TEST_ARCH}/tests/testresults.xml 266 name: "$CI_JOB_NAME" 267 when: always 268 paths: 269 - ${TEST_ARCH}/lib/petsc/conf/*.log 270 - ${TEST_ARCH}/lib/pkgconfig/petsc.pc 271 - ${TEST_ARCH}/tests/testresults.xml 272 - ${TEST_ARCH}/tests/test_${TEST_ARCH}_tap.log 273 - ${TEST_ARCH}/tests/test_${TEST_ARCH}_err.log 274 - ${TEST_ARCH}/${TEST_ARCH}-gcovr-report.json.tar.gz 275 expire_in: 4 days 276 variables: 277 OPENBLAS_NUM_THREADS: 1 278 279.stage-2: 280 extends: .stage-23 281 stage: stage-2 282 283.stage-3: 284 extends: .stage-23 285 stage: stage-3 286 287# 288# The following provide templates for various OSes for pre/post info 289# 290 291.linux_test_noflags: 292 before_script: 293 - date 294 - hostname 295 - grep PRETTY_NAME /etc/os-release 296 - nproc 297 - lscpu 298 - ccache --zero-stats 299 after_script: 300 - date 301 - ccache --show-stats 302 303.linux_test_nofflags: 304 extends: .linux_test_noflags 305 variables: 306 MAKE_CFLAGS: -Werror 307 MAKE_CXXFLAGS: -Werror 308 309.linux_test: 310 extends: .linux_test_noflags 311 variables: 312 MAKE_CFLAGS: -Werror 313 MAKE_CXXFLAGS: -Werror 314 MAKE_FFLAGS: -Werror 315 316.coverage-generate: 317 variables: 318 RUN_GCOV: 1 319 RUN_GCOV_OPTIONS: --decisions 320 321.coverage-generate-u18: 322 extends: .coverage-generate 323 variables: 324 GCOV_MODULES: py-gcovr-5.2-gcc-7.5.0-o7fu4xq python-3.9.13-gcc-7.5.0-fq67pdh 325 326.coverage-generate-u22: 327 extends: .coverage-generate 328 variables: 329 GCOV_MODULES: py-gcovr-5.2-gcc-11.2.0-wcsmyet 330 331.freebsd_test: 332 variables: 333 MAKE_CFLAGS: -Werror 334 MAKE_CXXFLAGS: -Werror 335 MAKE_FFLAGS: -Werror 336 before_script: 337 - date 338 - hostname 339 - freebsd-version 340 - echo $(sysctl -n hw.ncpu) 341 - ccache --zero-stats 342 after_script: 343 - date 344 - ccache --show-stats 345 346.osx_test: 347 variables: 348 MAKE_CFLAGS: -Werror 349 MAKE_CXXFLAGS: -Werror 350 MAKE_FFLAGS: -Werror 351 before_script: 352 - date 353 - hostname 354 - sw_vers -productVersion 355 - echo $(sysctl -n hw.ncpu) 356 - ccache --zero-stats 357 after_script: 358 - date 359 - ccache --show-stats 360 361.opensolaris_test: 362 before_script: 363 - date 364 - hostname 365 - uname -a 366 - nproc 367 - isainfo -x 368 after_script: 369 - date 370 371.mswin_test: 372 before_script: 373 - date 374 - hostname 375 - uname -a 376 - nproc 377 after_script: 378 - date 379 380# 381# The following tests run as part of stage-2. 382# 383# The tags variable used in the tests below connects the particular test with the runners 384# listed on the left hand side of https://gitlab.com/petsc/petsc/-/settings/ci_cd. 385# For example the test linux-sycl-double any runner that has the tags 'gce-nfs, linux-fast' 386# (in a blue box beneath it) 387# 388 389osx-m1: 390 extends: 391 - .stage-3 392 - .osx_test 393 tags: 394 - os:macos-m1 395 variables: 396 TEST_ARCH: arch-ci-osx-m1 397 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 398 INIT_SCRIPT: /Volumes/Scratch/svcpetsc/soft/py3venv/cython3setup.sh 399 400freebsd-cxx-cmplx-64idx-dbg: 401 extends: 402 - .stage-2 403 - .freebsd_test 404 tags: 405 - os:fbsd 406 variables: 407 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-64idx-dbg 408 409freebsd-c-single-opt: 410 extends: 411 - .stage-2 412 - .freebsd_test 413 tags: 414 - os:fbsd 415 variables: 416 TEST_ARCH: arch-ci-freebsd-c-single-opt 417 418mswin-opt-impi: 419 extends: 420 - .stage-3 421 - .mswin_test 422 tags: 423 - mswin-stage3 424 variables: 425 TEST_ARCH: arch-ci-mswin-opt-impi 426 TEST_OPTS: search='ksp_ksp_tests*' 427 428linux-gcc-quad-64idx-dbg: 429 extends: 430 - .stage-2 431 - .linux_test 432 tags: 433 - gce-stage2 434 variables: 435 TEST_ARCH: arch-ci-linux-gcc-quad-64idx-dbg 436 437linux-gcc-pkgs-opt: 438 extends: 439 - .stage-2 440 - .linux_test 441 tags: 442 - gce-stage2 443 variables: 444 TEST_ARCH: arch-ci-linux-gcc-pkgs-opt 445 446linux-gcc-complex-opt-32bit: 447 extends: 448 - .stage-2 449 - .linux_test 450 tags: 451 - gce-stage2 452 variables: 453 TEST_ARCH: arch-ci-linux-gcc-complex-opt-32bit 454 455linux-emcc: 456 extends: 457 - .stage-2 458 - .linux_test 459 tags: 460 - gce-stage2 461 variables: 462 TEST_ARCH: arch-ci-linux-emcc 463 INIT_SCRIPT: /nfs/gce/projects/petsc/soft/u22.04/emsdk/emsdk_env.sh 464 DISABLE_TESTS: 1 465 466# 467# The following tests run as part of stage-3. 468# 469 470freebsd-cxx-cmplx-pkgs-dbg: 471 extends: 472 - .stage-3 473 - .freebsd_test 474 tags: 475 - os:fbsd 476 variables: 477 TEST_ARCH: arch-ci-freebsd-cxx-cmplx-pkgs-dbg 478 479freebsd-cxx-pkgs-opt: 480 extends: 481 - .stage-3 482 - .freebsd_test 483 tags: 484 - os:fbsd 485 variables: 486 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkfunctionlist 487 TEST_ARCH: arch-ci-freebsd-cxx-pkgs-opt 488 489freebsd-pkgs-opt: 490 extends: 491 - .stage-3 492 - .freebsd_test 493 tags: 494 - os:fbsd 495 variables: 496 TEST_ARCH: arch-ci-freebsd-pkgs-opt 497 498linux-hip-double: 499 extends: 500 - .stage-3 501 - .linux_test_noflags 502 tags: 503 - gpu:amd, os:linux 504 variables: 505 TEST_ARCH: arch-ci-linux-hip-double 506 507linux-sycl-double: 508 extends: 509 - .stage-3 510 - .linux_test_noflags 511 tags: 512 - gce-nfs, linux-fast 513 variables: 514 TEST_ARCH: arch-ci-linux-sycl-double 515 LOAD_MODULES: compiler/latest mpi/latest cmake/3.20.5-yjp2hz6 516 TEST_OPTS: query=requires queryval=kokkos_kernels 517 518linux-cuda-pkgs-gcov: 519 extends: 520 - .stage-3 521 - .linux_test 522 - .coverage-generate-u22 523 tags: 524 - cuda-stage3 525 variables: 526 TEST_ARCH: arch-ci-linux-cuda-pkgs-gcov 527 # run all tests that: 528 # 1. require cuda, OR 529 # 2. require device, OR 530 # 3. require kokkos[_kernels], AND lives in the vec subdirectory 531 # 532 # need to use the alternate OR spelling since '|' is interpreted as a pipe by the 533 # shell, and I could not manage to escape it enough times... 534 TEST_OPTS: -j3 queryval='cuda,device,kokkos*,vec*' query='requires,requires,requires%OR%name' 535 536linux-cuda112-omp: 537 extends: 538 - .stage-3 539 - .linux_test 540 tags: 541 - cuda-stage3 542 variables: 543 TEST_ARCH: arch-ci-linux-cuda112-omp 544 TEST_OPTS: -j4 query=requires queryval=kokkos_kernels 545 LOAD_MODULES: cuda/11.2.2 u-gcc-9/9.4.0 546 OMP_PROC_BIND: "false" 547 OMP_NUM_THREADS: 1 548 549linux-cuda-cmplx: 550 extends: 551 - .stage-3 552 - .linux_test 553 tags: 554 - cuda-stage3 555 variables: 556 TEST_ARCH: arch-ci-linux-cuda-cmplx 557 558linux-cuda-double-64idx: 559 extends: 560 - .stage-3 561 - .linux_test 562 tags: 563 - cuda-stage3 564 variables: 565 TEST_ARCH: arch-ci-linux-cuda-double-64idx 566 TEST_OPTS: -j15 query=requires queryval=cuda 567 568linux-cuda-single-cxx: 569 extends: 570 - .stage-3 571 - .linux_test_noflags 572 tags: 573 - cuda-stage3 574 variables: 575 TEST_ARCH: arch-ci-linux-cuda-single-cxx 576 LOAD_MODULES: nvhpc/22.3 577 TEST_OPTS: -j15 query=requires queryval=cuda 578 579linux-cuda-uni-pkgs: 580 extends: 581 - .stage-3 582 - .linux_test 583 tags: 584 - cuda-stage3 585 variables: 586 TEST_ARCH: arch-ci-linux-cuda-uni-pkgs 587 TEST_OPTS: -j20 query=requires queryval=cuda 588 589linux-clang-cuda: 590 extends: 591 - .stage-3 592 - .linux_test 593 tags: 594 - cuda-stage3 595 variables: 596 TEST_ARCH: arch-ci-linux-clang-cuda 597 TEST_OPTS: -j 1 queryval='cuda*,snes*' query='requires%OR%name' 598 MODULEPATH: /nfs/gce/projects/petsc/soft/u22.04/spack-2023-02-02/share/spack/modules/linux-ubuntu22.04-ivybridge 599 LOAD_MODULES: llvm-15.0.7-gcc-11.3.0-pjldtxf cuda-11.5.2-gcc-11.3.0-jkoottx gcc-11.3.0-gcc-11.3.0-pgrvke5 600 601linux-viennacl: 602 extends: 603 - .stage-3 604 - .linux_test 605 tags: 606 - cuda-stage3 607 variables: 608 TEST_ARCH: arch-ci-linux-viennacl 609 MAKE_CXXFLAGS: -Werror -Wno-ignored-attributes 610 TEST_OPTS: -j20 query=requires queryval=viennacl 611 612linux-without-fc: 613 extends: 614 - .stage-3 615 - .linux_test 616 tags: 617 - gce-nfs 618 variables: 619 TEST_ARCH: arch-ci-linux-without-fc 620 621linux-cmplx-single: 622 extends: 623 - .stage-3 624 - .linux_test 625 tags: 626 - name:si 627 variables: 628 FLEXIBLAS: netlib 629 TEST_ARCH: arch-ci-linux-cmplx-single 630 631linux-gcc-cxx-avx2: 632 extends: 633 - .stage-3 634 - .linux_test 635 tags: 636 - name:petsc-knl-01 637 variables: 638 TEST_ARCH: arch-ci-linux-gcc-cxx-avx2 639 640linux-clang-avx: 641 extends: 642 - .stage-3 643 - .linux_test 644 tags: 645 - name:petsc-knl-01 646 variables: 647 TEST_ARCH: arch-ci-linux-clang-avx 648 649linux-knl: 650 extends: 651 - .stage-3 652 - .linux_test 653 tags: 654 - name:petsc-knl-01 655 variables: 656 MAKE_FFLAGS: -warn errors 657 TEST_ARCH: arch-ci-linux-knl 658 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 659 660linux-intel-mkl-single: 661 extends: 662 - .stage-3 663 - .linux_test_nofflags 664 tags: 665 - name:petsc-knl-01 666 variables: 667 TEST_ARCH: arch-ci-linux-intel-mkl-single 668 LOAD_MODULES: intel-oneapi-compilers/2022.0.2 intel-oneapi-mkl/2022.0.2 intel-oneapi-mpi/2021.5.1 669 670linux-cxx-cmplx-pkgs-64idx-gcov: 671 extends: 672 - .stage-3 673 - .linux_test 674 - .coverage-generate-u18 675 tags: 676 - gce-nfs 677 variables: 678 TEST_ARCH: arch-ci-linux-cxx-cmplx-pkgs-64idx-gcov 679 LOAD_MODULES: llvm/9.0.0-7fyffox gcc/8.3.0-fjpc5ys cmake/3.14.2-rl3q676 680 681# Set env vars for 'Kokkos + OpenMP' tests, so that they won't give warnings 682linux-pkgs-dbg-ftn-interfaces: 683 extends: 684 - .stage-3 685 - .linux_test 686 tags: 687 - gce-nfs 688 variables: 689 TEST_ARCH: arch-ci-linux-pkgs-dbg-ftn-interfaces 690 LOAD_MODULES: cmake/3.20.5-yjp2hz6 691 OMP_PROC_BIND: "false" 692 OMP_NUM_THREADS: 4 693 694linux-pkgs-cxx-mlib: 695 extends: 696 - .stage-3 697 - .linux_test 698 tags: 699 - gce-u22-stage3 700 variables: 701 TEST_ARCH: arch-ci-linux-pkgs-cxx-mlib 702 except: 703 variables: 704 - $PETSC_CI_SCHEDULED =~ /yes/ 705 706linux-pkgs-valgrind: 707 extends: 708 - .stage-3 709 - .linux_test 710 tags: 711 - gce-valgrind 712 variables: 713 TEST_ARCH: arch-ci-linux-pkgs-valgrind 714 TIMEOUT: 7200 715 716linux-pkgs-opt: 717 extends: 718 - .stage-3 719 - .linux_test 720 tags: 721 - gce-nfs, linux-fast 722 variables: 723 TEST_ARCH: arch-ci-linux-pkgs-opt 724 LOAD_MODULES: gcc/10.1.0-5hiqhdh 725 726linux-pkgs-gcov: 727 extends: 728 - .stage-3 729 - .linux_test 730 - .coverage-generate-u18 731 tags: 732 - gce-nfs, linux-gcov 733 variables: 734 TEST_ARCH: arch-ci-linux-pkgs-gcov 735 736linux-matlab-ilp64-gcov: 737 extends: 738 - .stage-3 739 - .linux_test 740 - .coverage-generate-u18 741 tags: 742 - gce-nfs, linux-gcov 743 variables: 744 TEST_ARCH: arch-ci-linux-matlab-ilp64-gcov 745 LOAD_MODULES: matlab/R2018a 746 allow_failure: true 747 748linux-pgi: 749 extends: 750 - .stage-3 751 - .linux_test_noflags 752 tags: 753 - gce-nfs, linux-mcpu 754 variables: 755 TEST_ARCH: arch-ci-linux-pgi 756 LOAD_MODULES: hpc_sdk/20.9 757 758# If the Nag license server fails then ${PETSC_DIR}/naglicenseproblem is created and the job is marked as failed but allow_failure 759linux-nagfor: 760 extends: 761 - .stage-3 762 - .linux_test_nofflags 763 tags: 764 - gce-nfs, linux-mcpu 765 variables: 766 LOAD_MODULES: nag/6.1 767 TEST_ARCH: arch-ci-linux-nagfor 768 allow_failure: 769 exit_codes: 126 770 771linux-intel-cmplx: 772 extends: 773 - .stage-3 774 - .linux_test_nofflags 775 tags: 776 - gce-nfs 777 variables: 778 TEST_ARCH: arch-ci-linux-intel-cmplx 779 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib cmake/3.20.5-yjp2hz6 780 ENABLE_PETSC4PY_LDPRELOAD: 1 781 782linux-xsdk-dbg: 783 extends: 784 - .stage-3 785 - .linux_test 786 tags: 787 - gce-nfs 788 variables: 789 TEST_ARCH: arch-ci-linux-xsdk-dbg 790 LOAD_MODULES: gcc/8.3.0-fjpc5ys 791 792linux-analyzer: 793 extends: 794 - .stage-3 795 - .linux_test 796 tags: 797 - gce-u22-stage2 798 script: 799 - printf "PATH:$PATH\n" 800 - printf "PYTHONPATH:$PYTHONPATH\n" 801 - printf "PETSC_OPTIONS:$PETSC_OPTIONS\n" 802 - 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 803 - printf "./config/examples/${TEST_ARCH}.py\n" 804 - cat ./config/examples/${TEST_ARCH}.py 805 - ./config/examples/${TEST_ARCH}.py 806 - make LINTER_OPTIONS="${LINTER_OPTIONS}" test-lint 807 - make LINTER_OPTIONS="${LINTER_OPTIONS} -fdoc-* no" lint 808 variables: 809 TEST_ARCH: arch-ci-linux-analyzer 810 LINTER_OPTIONS: "--PETSC_ARCH=${TEST_ARCH} --clang_lib=`llvm-config-14 --libdir`/libclang.so.1 --verbose --werror" 811 artifacts: 812 paths: 813 - ${TEST_ARCH}/lib/petsc/conf/*.log 814 - ./petscLintPatches/*.patch 815 expire_in: 4 days 816 except: 817 variables: 818 - $PETSC_CI_SCHEDULED =~ /yes/ 819 820linux-intel: 821 extends: 822 - .stage-3 823 - .linux_test_nofflags 824 tags: 825 - gce-nfs 826 variables: 827 TEST_ARCH: arch-ci-linux-intel 828 LOAD_MODULES: intel-mkl/19.5 intel/19.0-nompilib 829 830linux-opt-misc: 831 extends: 832 - .stage-3 833 - .linux_test 834 tags: 835 - gce-nfs, linux-fast 836 variables: 837 TEST_ARCH: arch-ci-linux-opt-misc 838 LOAD_MODULES: gcc/6.5.0-57usejd 839 840linux-pkgs-64idx: 841 extends: 842 - .stage-3 843 - .linux_test 844 tags: 845 - gce-nfs, linux-mcpu 846 variables: 847 TEST_ARCH: arch-ci-linux-pkgs-64idx 848 LOAD_MODULES: cmake/3.20.5-yjp2hz6 intel-mkl/19.5 849 850linux-64idx-i8: 851 extends: 852 - .stage-3 853 - .linux_test 854 tags: 855 - gce-nfs 856 variables: 857 TEST_ARCH: arch-ci-linux-64idx-i8 858 859linux-gcc-ifc-cmplx: 860 extends: 861 - .stage-3 862 - .linux_test_nofflags 863 tags: 864 - gce-nfs 865 variables: 866 TEST_ARCH: arch-ci-linux-gcc-ifc-cmplx 867 LOAD_MODULES: intel/19.0-nompilib cmake/3.20.0-vov726r 868 869linux-opt-cxx-quad: 870 extends: 871 - .stage-3 872 - .linux_test 873 tags: 874 - gce-nfs 875 variables: 876 TEST_ARCH: arch-ci-linux-opt-cxx-quad 877 878linux-ILP64: 879 extends: 880 - .stage-3 881 - .linux_test 882 tags: 883 - gce-nfs 884 variables: 885 TEST_ARCH: arch-ci-linux-ILP64 886 LOAD_MODULES: mpich/2-1.5-gcc750 887 888linux-64idx-i8-uni: 889 extends: 890 - .stage-3 891 - .linux_test 892 tags: 893 - gce-nfs 894 variables: 895 TEST_ARCH: arch-ci-linux-64idx-i8-uni 896 897mswin-intel-cxx-cmplx: 898 extends: 899 - .stage-3 900 - .mswin_test 901 tags: 902 - mswin-stage3 903 variables: 904 TEST_ARCH: arch-ci-mswin-intel-cxx-cmplx 905 906mswin-uni: 907 extends: 908 - .stage-3 909 - .mswin_test 910 tags: 911 - mswin-stage3 912 variables: 913 PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 914 TEST_ARCH: arch-ci-mswin-uni 915 916mswin-gnu: 917 extends: 918 - .stage-3 919 - .mswin_test 920 tags: 921 - mswin-stage3 922 variables: 923 TEST_ARCH: arch-ci-mswin-gnu 924 MAKE_CFLAGS: -Werror 925 MAKE_CXXFLAGS: -Werror 926 MAKE_FFLAGS: -Werror 927 DISABLE_TESTS: 1 928 artifacts: 929 reports: 930 paths: 931 - arch-*/lib/petsc/conf/*.log 932 expire_in: 4 days 933 934#mswin-intel: 935# extends: 936# - .stage-3 937# - .mswin_test 938# tags: 939# - os:win 940# variables: 941# TEST_ARCH: arch-ci-mswin-intel 942 943opensolaris-pkgs-opt: 944 extends: 945 - .stage-3 946 - .opensolaris_test 947 tags: 948 - name:n-gage 949 variables: 950 TEST_ARCH: arch-ci-opensolaris-pkgs-opt 951 952opensolaris-cmplx-pkgs-dbg: 953 extends: 954 - .stage-3 955 - .opensolaris_test 956 tags: 957 - name:n-gage 958 variables: 959 TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg 960 961opensolaris-misc: 962 extends: 963 - .stage-3 964 - .opensolaris_test 965 tags: 966 - name:n-gage 967 variables: 968 TEST_ARCH: arch-ci-opensolaris-misc 969 970osx-cxx-cmplx-pkgs-dbg: 971 extends: 972 - .stage-3 973 - .osx_test 974 tags: 975 - os:macos 976 variables: 977 TEST_ARCH: arch-ci-osx-cxx-cmplx-pkgs-dbg 978 INIT_SCRIPT: /Users/glci/bin/py3.sh 979 980osx-cxx-pkgs-opt: 981 extends: 982 - .stage-3 983 - .osx_test 984 tags: 985 - os:macos, opt 986 variables: 987 PETSC_OPTIONS: -vecscatter_mpi1 false -options_left false -checkfunctionlist 988 TEST_ARCH: arch-ci-osx-cxx-pkgs-opt 989 MAKE_CXXFLAGS: -Werror -Wno-pass-failed 990 991osx-dbg: 992 extends: 993 - .stage-3 994 - .osx_test 995 tags: 996 - os:macos 997 variables: 998 TEST_ARCH: arch-ci-osx-dbg 999 1000osx-xsdk-opt: 1001 extends: 1002 - .stage-3 1003 - .osx_test 1004 tags: 1005 - os:macos, opt 1006 variables: 1007 TEST_ARCH: arch-ci-osx-xsdk-opt 1008 1009# job for analyzing the coverage results and generating the various reports 1010analyze-coverage: 1011 extends: .test 1012 stage: stage-4 1013 tags: 1014 - gce-nfs-short 1015 dependencies: 1016 - linux-pkgs-gcov 1017 - linux-matlab-ilp64-gcov 1018 - linux-cuda-pkgs-gcov 1019 - linux-cxx-cmplx-pkgs-64idx-gcov 1020 variables: 1021 PYTHON: python3 1022 PETSC_ARCH: arch-ci-analyze-pipeline 1023 LOAD_MODULES: python-3.9.13-gcc-7.5.0-fq67pdh py-gcovr-5.2-gcc-7.5.0-o7fu4xq 1024 before_script: 1025 - date 1026 - hostname 1027 script: 1028 - if [ ! -z ${LOAD_MODULES+x} ]; then module --trace load ${LOAD_MODULES}; module list; fi 1029 - ${PYTHON} --version 1030 - gcovr --version 1031 - printf "PATH:$PATH\n" 1032 - printf "PYTHONPATH:$PYTHONPATH\n" 1033 - 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 1034 - ${PYTHON} ./configure --with-mpi=0 --with-cxx=0 --download-sowing --with-fortran-bindings 1035 - make mergegcov PETSC_GCOV_OPTIONS='--ci-mode --verbose' 1036 coverage: /^\s*lines:\s*\d+.\d+\%/ 1037 artifacts: 1038 name: "$CI_JOB_NAME" 1039 when: always 1040 paths: 1041 - arch-ci-analyze-pipeline/gcovr/* 1042 - arch-ci-analyze-pipeline/lib/petsc/conf/*.log 1043 expire_in: 4 days 1044 reports: 1045 coverage_report: 1046 coverage_format: cobertura 1047 path: arch-ci-analyze-pipeline/gcovr/xml/*.xml 1048 1049# template for the coverage review jobs, these must be separate jobs as you cannot deploy multiple 1050# environments from one job... 1051.coverage-review: 1052 extends: .test 1053 stage: .post 1054 tags: 1055 - gce-nfs-short 1056 dependencies: 1057 - analyze-coverage 1058 script: 1059 - date 1060 - hostname 1061 artifacts: 1062 name: "$CI_JOB_NAME" 1063 when: always 1064 paths: 1065 - arch-ci-analyze-pipeline/gcovr/* 1066 - arch-ci-analyze-pipeline/lib/petsc/conf/*.log 1067 expire_in: 4 days 1068 1069coverage-total-review: 1070 extends: .coverage-review 1071 environment: 1072 name: coverage/all/$CI_COMMIT_REF_SLUG 1073 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/arch-ci-analyze-pipeline/gcovr/html/report.html 1074 auto_stop_in: one week 1075 deployment_tier: testing 1076 1077coverage-untested-review: 1078 extends: .coverage-review 1079 environment: 1080 name: coverage/untested/$CI_COMMIT_REF_SLUG 1081 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/arch-ci-analyze-pipeline/gcovr/html_untested/report_untested.html 1082 auto_stop_in: one week 1083 deployment_tier: testing 1084 1085analyze-pipeline: 1086 extends: .coverage-review 1087 script: 1088 - date 1089 - hostname 1090 # This file is created by lib/petsc/bin/maint/gcov.py. If it exists then the CI 1091 # pipeline should fail 1092 - if [ -f ./arch-ci-analyze-pipeline/gcovr/.CI_FAIL ]; then 1093 cat ./arch-ci-analyze-pipeline/gcovr/merge_gcov_errors.log; 1094 exit 1; 1095 fi 1096 1097# 1098# Base job for a documentation build 1099# 1100.docs: 1101 stage: stage-3 1102 tags: 1103 - gce-stage2 1104 before_script: 1105 - VENV=venv-petsc-docs && 1106 python3 -m venv $VENV && 1107 . $VENV/bin/activate && 1108 cd doc && 1109 pip install -r requirements.txt 1110 1111# 1112# Build documentation and make available for review using GitLab pages 1113# 1114docs-review: 1115 extends: 1116 - .docs 1117 - .test-basic 1118 script: 1119 - (make html BUILDDIR="../public" SPHINXOPTS="-T -E -W --keep-going -j 1") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1120 - (make latexpdf SPHINXOPTS="-T -E -W --keep-going") || (printf "Sphinx build failed (warnings count as errors)\n" && false) 1121 - cp _build/latex/manual.pdf ../public/html/docs/manual/ 1122 environment: 1123 name: review/$CI_COMMIT_REF_NAME 1124 url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/html/index.html 1125 artifacts: 1126 paths: 1127 - public 1128 expire_in: 4 days 1129 except: 1130 variables: 1131 - $PETSC_CI_SCHEDULED =~ /yes/ 1132 1133# 1134# Deploy documentation using GitLab pages 1135# 1136pages: # this job name has special meaning to GitLab 1137 extends: .docs 1138 interruptible: true 1139 script: 1140 - mkdir -p ../public/ && cp public/* ../public/ 1141 - git fetch --unshallow --no-tags origin +release:remotes/origin/release +main:remotes/origin/main 1142 - 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/ 1143 - make clean BUILDDIR="../public/release" 1144 - 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/ 1145 - rm -rf ../public/*/.doctrees 1146 only: 1147 variables: 1148 - $PETSC_CI_SCHEDULED == "yes" 1149 artifacts: 1150 paths: 1151 - public 1152 expire_in: 4 days 1153 1154# 1155# 1156# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 1157# that fail produce a warning, but do not block execution of a pipeline. 1158# 1159 1160.test-experimental: 1161 extends: .test 1162 allow_failure: true 1163 1164