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