128d80369SJed Brown# 29c15ed49SBarry Smith# stage-1 take only a few minutes and generally run on the cloud; they do not run the full test suite or external packages. 328d80369SJed Brown# 49c15ed49SBarry Smith# 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 504df5595SBarry Smith# 69c15ed49SBarry Smith# 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 79c15ed49SBarry Smith# (not yet implemented) 804df5595SBarry Smith# 99c15ed49SBarry Smith# The stage-(n) tests are only started if all of the stage-(n-1) tests run without error 109c15ed49SBarry Smith# You can limit the testing by using the variable STAGE with value 1 or 2 119c15ed49SBarry Smith# 129c15ed49SBarry Smith# By default the test branch is merged to master before testing. (not yet implemented) 139c15ed49SBarry Smith# You can limite this by using the variable MERGETOMASTER with value 0 (not yet implemented) 1428d80369SJed Brown# 1528d80369SJed Brown 16340aff75SJed Brownstages: 179c15ed49SBarry Smith - stage-1 189c15ed49SBarry Smith - stage-2 199c15ed49SBarry Smith - stage-3 20340aff75SJed Brownvariables: 21340aff75SJed Brown GIT_STRATEGY: fetch 22c592e2e1SSatish Balay GIT_CLEAN_FLAGS: -ffdxq 23a3e7580aSSatish Balay PETSC_OPTIONS: -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 24340aff75SJed Brown 2528d80369SJed Brown# 269c15ed49SBarry Smith# The most basic template that most tests will expand upon. In particular merge requests and branch pushes DO NOT trigger testing 2728d80369SJed Brown# 2828d80369SJed Brown 29e74c1a09SJed Brown.test: 30410f5c6aSJed Brown only: 310962a0d6SJed Brown refs: 329c15ed49SBarry Smith# Set with CI/CD Shedules - New Schedule 339c15ed49SBarry Smith - schedules 349c15ed49SBarry Smith# Set with CI/CD Pipelines - Run Pipeline 3542cde88bSBarry Smith - web 3628d80369SJed Brown 3728d80369SJed Brown# 389c15ed49SBarry Smith# This provides the basic order of operations and options template for cloud based stage 1 tests. 3928d80369SJed Brown# Not all test-short need to follow this template but most will. 4028d80369SJed Brown# 4128d80369SJed Brown 429c15ed49SBarry Smith.stage-1: 4328d80369SJed Brown extends: .test 449c15ed49SBarry Smith stage: stage-1 4528d80369SJed Brown image: jedbrown/mpich-ccache 46340aff75SJed Brown before_script: 47340aff75SJed Brown - echo nproc=$(nproc) 48340aff75SJed Brown - cat /proc/cpuinfo 49525f0e14SJed Brown - export CCACHE_COMPILERCHECK=content 5004bc68e0SJed Brown - export CCACHE_DIR=$(pwd)/.ccache 5104bc68e0SJed Brown - ccache --show-stats 5204bc68e0SJed Brown - ccache --zero-stats 53340aff75SJed Brown script: 541c6b2e5dSSatish Balay - ${PYTHON} ./configure --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native' ${CONFIG_OPTS} 5502e5f532SJed Brown - make CFLAGS=-Werror 5628d80369SJed Brown - make allgtests-tap search="${TEST_SEARCH}" TIMEOUT=300 573d889285SJed Brown after_script: 5804bc68e0SJed Brown - CCACHE_DIR=$(pwd)/.ccache ccache --show-stats 59e22b0966SJed Brown artifacts: 60e22b0966SJed Brown reports: 61e22b0966SJed Brown junit: arch-*/tests/testresults.xml 623d889285SJed Brown cache: 633d889285SJed Brown paths: 6404bc68e0SJed Brown - .ccache/ 653d889285SJed Brown key: "${CI_JOB_NAME}" 66e74c1a09SJed Brown 6728d80369SJed Brown# 68*815ac3f0SSatish Balay# The following tests run on the cloud as part of stage-1. 6928d80369SJed Brown# 7028d80369SJed Brown 711c6b2e5dSSatish Balaympich-cxx-py3: 729c15ed49SBarry Smith extends: .stage-1 73e74c1a09SJed Brown variables: 741c6b2e5dSSatish Balay PYTHON: python3 751c6b2e5dSSatish Balay CONFIG_OPTS: --with-mpi-dir=/usr/local --with-clanguage=cxx --with-fc=0 76e74c1a09SJed Brown TEST_SEARCH: snes_tutorials-ex48% 77340aff75SJed Brown 78340aff75SJed Brownuni-complex-float-int64: 799c15ed49SBarry Smith extends: .stage-1 80e74c1a09SJed Brown variables: 811c6b2e5dSSatish Balay PYTHON: python3 82e74c1a09SJed Brown CONFIG_OPTS: < 83e74c1a09SJed Brown --with-mpi=0 84340aff75SJed Brown --with-scalar-type=complex --with-precision=single --with-64-bit-indices 85e74c1a09SJed Brown TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_% 86340aff75SJed Brown 871c6b2e5dSSatish Balayc89-mlib-static-py2: 889c15ed49SBarry Smith extends: .stage-1 893d889285SJed Brown image: jedbrown/mpich-ccache:python2 901c6b2e5dSSatish Balay variables: 91377e4ec7SSatish Balay PYTHON: python2 921c6b2e5dSSatish Balay CONFIG_OPTS: < 931c6b2e5dSSatish Balay --with-mpi-dir=/usr/local 941c6b2e5dSSatish Balay --with-single-library=0 --with-shared-libraries=0 'CFLAGS=-std=c89 -pedantic -Wno-long-long -Wno-overlength-strings' 951c6b2e5dSSatish Balay TEST_SEARCH: snes_tutorials-ex48% 961c6b2e5dSSatish Balay 97689e4609SSatish Balaychecksource: 98689e4609SSatish Balay extends: .test 99689e4609SSatish Balay image: jedbrown/mpich-ccache 100689e4609SSatish Balay stage: stage-1 101689e4609SSatish Balay script: 102689e4609SSatish Balay - python3 ./configure --with-mpi=0 --with-fc=0 --with-cxx=0 103689e4609SSatish Balay - make checkbadSource SHELL=bash 104689e4609SSatish Balay 10528d80369SJed Brown# 106*815ac3f0SSatish Balay# This provides the basic order of operations and options template for stage-2,3 tests. 107*815ac3f0SSatish Balay# Not all stage-2,3 need to follow this template, but most will. 10828d80369SJed Brown# 109*815ac3f0SSatish Balay.stage-23: 11028d80369SJed Brown extends: .test 11144cd3865SJed Brown script: 1121702e285SSatish Balay - ./config/examples/${TEST_ARCH}.py 11344cd3865SJed Brown - make 11444cd3865SJed Brown - make check 1151702e285SSatish Balay - make cleantest allgtests-tap TIMEOUT=300 1168166029eSJed Brown artifacts: 1178166029eSJed Brown reports: 1188166029eSJed Brown junit: ${TEST_ARCH}/tests/testresults.xml 11944cd3865SJed Brown 120*815ac3f0SSatish Balay.stage-2: 121*815ac3f0SSatish Balay extends: .stage-23 122*815ac3f0SSatish Balay stage: stage-2 123*815ac3f0SSatish Balay only: 124*815ac3f0SSatish Balay variables: 125*815ac3f0SSatish Balay - $STAGE != "1" 126*815ac3f0SSatish Balay - $STAGE != "3" 127*815ac3f0SSatish Balay 128*815ac3f0SSatish Balay.stage-3: 129*815ac3f0SSatish Balay extends: .stage-23 130*815ac3f0SSatish Balay stage: stage-3 131*815ac3f0SSatish Balay only: 132*815ac3f0SSatish Balay variables: 133*815ac3f0SSatish Balay - $STAGE != "1" 134*815ac3f0SSatish Balay - $STAGE != "2" 135*815ac3f0SSatish Balay 13628d80369SJed Brown# 137*815ac3f0SSatish Balay# The following provide templates for various OSes for pre/post info 13828d80369SJed Brown# 13928d80369SJed Brown 140*815ac3f0SSatish Balay.linux_test: 1411702e285SSatish Balay before_script: 1421702e285SSatish Balay - hostname 1431702e285SSatish Balay - grep PRETTY_NAME /etc/os-release 1441702e285SSatish Balay - echo $(nproc) 145525f0e14SJed Brown - ccache --zero-stats 146525f0e14SJed Brown after_script: 147525f0e14SJed Brown - ccache --show-stats 1481702e285SSatish Balay 149*815ac3f0SSatish Balay.freebsd_test: 1508623489dSJed Brown before_script: 1518623489dSJed Brown - hostname 1521702e285SSatish Balay - freebsd-version 1531702e285SSatish Balay - echo $(sysctl -n hw.ncpu) 154525f0e14SJed Brown - ccache --zero-stats 155525f0e14SJed Brown after_script: 156525f0e14SJed Brown - ccache --show-stats 1571702e285SSatish Balay 158*815ac3f0SSatish Balay.osx_test: 15920099508SSatish Balay before_script: 16020099508SSatish Balay - hostname 16120099508SSatish Balay - sw_vers -productVersion 16220099508SSatish Balay - echo $(sysctl -n hw.ncpu) 163525f0e14SJed Brown - ccache --zero-stats 164525f0e14SJed Brown after_script: 165525f0e14SJed Brown - ccache --show-stats 16620099508SSatish Balay 167*815ac3f0SSatish Balay.opensolaris_test: 16820099508SSatish Balay before_script: 16920099508SSatish Balay - hostname 17020099508SSatish Balay - uname -a 17120099508SSatish Balay - echo $(nproc) 17220099508SSatish Balay 173*815ac3f0SSatish Balay# 174*815ac3f0SSatish Balay# The following tests run as part of stage-2. 175*815ac3f0SSatish Balay# 176*815ac3f0SSatish Balay# The tags variable used in the tests below connects the particular test with the runners 177*815ac3f0SSatish Balay# listed on the left hand side of https://gitlab.com/petsc/petsc/-/settings/ci_cd. 178*815ac3f0SSatish Balay# For example the test linux-gcc-complex-opt any runner that has the tag 'name:pj02' 179*815ac3f0SSatish Balay# (in a blue box beneath it) 180*815ac3f0SSatish Balay# 181f923398bSSatish Balay 1821702e285SSatish Balaylinux-gcc-complex-opt: 183*815ac3f0SSatish Balay extends: 184*815ac3f0SSatish Balay - .stage-2 185*815ac3f0SSatish Balay - .linux_test 186*815ac3f0SSatish Balay tags: 187*815ac3f0SSatish Balay - name:pj02 1881702e285SSatish Balay variables: 1894d09bf9bSSatish Balay TEST_ARCH: arch-ci-linux-gcc-complex-opt 1901702e285SSatish Balay 1911702e285SSatish Balaylinux-gcc-pkgs-opt: 192*815ac3f0SSatish Balay extends: 193*815ac3f0SSatish Balay - .stage-2 194*815ac3f0SSatish Balay - .linux_test 195*815ac3f0SSatish Balay tags: 196*815ac3f0SSatish Balay - name:pj02 1971702e285SSatish Balay variables: 1984d09bf9bSSatish Balay TEST_ARCH: arch-ci-linux-gcc-pkgs-opt 1991702e285SSatish Balay 2001702e285SSatish Balaylinux-gcc-quad-64idx-dbg: 201*815ac3f0SSatish Balay extends: 202*815ac3f0SSatish Balay - .stage-2 203*815ac3f0SSatish Balay - .linux_test 204*815ac3f0SSatish Balay tags: 205*815ac3f0SSatish Balay - name:pj02 2061702e285SSatish Balay variables: 2074d09bf9bSSatish Balay TEST_ARCH: arch-ci-linux-gcc-quad-64idx-dbg 2081702e285SSatish Balay 2091702e285SSatish Balayfreebsd-c-single-opt: 210*815ac3f0SSatish Balay extends: 211*815ac3f0SSatish Balay - .stage-2 212*815ac3f0SSatish Balay - .freebsd_test 213*815ac3f0SSatish Balay tags: 214*815ac3f0SSatish Balay - name:petsc-fbsd 2151702e285SSatish Balay variables: 2164d09bf9bSSatish Balay TEST_ARCH: arch-ci-freebsd-c-single-opt 2171702e285SSatish Balay 2181702e285SSatish Balayfreebsd-cxx-cmplx-64idx-dbg: 219*815ac3f0SSatish Balay extends: 220*815ac3f0SSatish Balay - .stage-2 221*815ac3f0SSatish Balay - .freebsd_test 222*815ac3f0SSatish Balay tags: 223*815ac3f0SSatish Balay - name:petsc-fbsd 2241702e285SSatish Balay variables: 2254d09bf9bSSatish Balay TEST_ARCH: arch-ci-freebsd-cxx-cmplx-64idx-dbg 2268623489dSJed Brown 22720099508SSatish Balayopensolaris-cmplx-pkgs-dbg: 228*815ac3f0SSatish Balay extends: 229*815ac3f0SSatish Balay - .stage-2 230*815ac3f0SSatish Balay - .opensolaris_test 231*815ac3f0SSatish Balay tags: 232*815ac3f0SSatish Balay - name:n-gage 23320099508SSatish Balay variables: 2344d09bf9bSSatish Balay TEST_ARCH: arch-ci-opensolaris-cmplx-pkgs-dbg 2354f89072dSBarry Smith 236*815ac3f0SSatish Balayosx-cxx-pkgs-opt: 237*815ac3f0SSatish Balay extends: 238*815ac3f0SSatish Balay - .stage-2 239*815ac3f0SSatish Balay - .osx_test 240*815ac3f0SSatish Balay tags: 241*815ac3f0SSatish Balay - name:jpro 242*815ac3f0SSatish Balay variables: 243*815ac3f0SSatish Balay PETSC_OPTIONS: < 244*815ac3f0SSatish Balay -check_pointer_intensity 0 -error_output_stdout -nox -nox_warning -malloc_dump 245*815ac3f0SSatish Balay -saws_port_auto_select -saws_port_auto_select_silent -vecscatter_mpi1 false -options_left false 246*815ac3f0SSatish Balay TEST_ARCH: arch-ci-osx-cxx-pkgs-opt 247*815ac3f0SSatish Balay 248f923398bSSatish Balayosx-barry: 249*815ac3f0SSatish Balay extends: 250*815ac3f0SSatish Balay - .stage-2 251*815ac3f0SSatish Balay - .osx_test 252f923398bSSatish Balay tags: 253f923398bSSatish Balay - os:osx 254f923398bSSatish Balay variables: 255f923398bSSatish Balay TEST_ARCH: arch-ci-osx-prefix 256f923398bSSatish Balay 25728d80369SJed Brown# 25828d80369SJed Brown# The following tests are experimental; more tests by users at other sites may be added below this. Experimental test 25928d80369SJed Brown# that fail produce a warning, but do not block execution of a pipeline. 26028d80369SJed Brown# 26128d80369SJed Brown 26228d80369SJed Brown.test-experimental: 26328d80369SJed Brown extends: .test 26428d80369SJed Brown allow_failure: true 26528d80369SJed Brown 266