CI got cause ICE due to resource limitations.
Avoided by limiting parallelism for make.
Change-Id: I6cc09f16625f615984e71c650eafa755abc1f121
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
script:
- cmake -P cmake/gmxVersionInfo.cmake &> version.json
artifacts:
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
# Always clone the default version for this branch, master in this case
script:
- export REGTESTBRANCH=master
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
needs:
- job: prepare-release-version
script:
variables:
KUBERNETES_CPU_LIMIT: 4
KUBERNETES_CPU_REQUEST: 2
- KUBERNETES_MEMORY_LIMIT: 4Gi
+ KUBERNETES_MEMORY_REQUEST: 4Gi
script:
- rm -rf gromacs*tar.gz
- cd $BUILD_DIR
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
script:
- VERSION=`cat version.json |
python3 -c "import json,sys; print(json.load(sys.stdin)['version'])"`
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
CMAKE_COMPILER_SCRIPT: "-DCMAKE_C_COMPILER=clang-7 -DCMAKE_CXX_COMPILER=clang++-7"
CMAKE_EXTRA_OPTIONS: ""
CMAKE_SIMD_OPTIONS: "-DGMX_SIMD=None"
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
CMAKE_COMPILER_SCRIPT: "-DCMAKE_C_COMPILER=clang-7 -DCMAKE_CXX_COMPILER=clang++-7"
CMAKE_EXTRA_OPTIONS: ""
CMAKE_SIMD_OPTIONS: "-DGMX_SIMD=None"
variables:
KUBERNETES_CPU_LIMIT: 4
KUBERNETES_CPU_REQUEST: 2
- KUBERNETES_MEMORY_LIMIT: 4Gi
+ KUBERNETES_MEMORY_REQUEST: 4Gi
script:
- cd $BUILD_DIR
- cmake --build . --target manual -- -j4 | tee docs/manual/all-output.log
variables:
KUBERNETES_CPU_LIMIT: 8
KUBERNETES_CPU_REQUEST: 4
- KUBERNETES_MEMORY_LIMIT: 8Gi
+ KUBERNETES_MEMORY_REQUEST: 8Gi
KUBERNETES_EXTENDED_RESOURCE_NAME: ""
KUBERNETES_EXTENDED_RESOURCE_LIMIT: 0
CACHE_FALLBACK_KEY: "$CI_JOB_NAME-$CI_JOB_STAGE-master"
variables:
KUBERNETES_CPU_LIMIT: 8
KUBERNETES_CPU_REQUEST: 4
- KUBERNETES_MEMORY_LIMIT: 8Gi
+ KUBERNETES_MEMORY_REQUEST: 8Gi
CMAKE_SIMD_OPTIONS: "-DGMX_SIMD=None"
CMAKE_MPI_OPTIONS: "-DGMX_THREAD_MPI=ON"
CMAKE_PRECISION_OPTIONS: "-DGMX_DOUBLE=OFF"
2>&1 | tee cmakeLog.log
- awk '/CMake Warning/,/^--|^$/' cmakeLog.log | tee cmakeErrors.log
- if [ -s cmakeErrors.log ] ; then echo "Found CMake warning while processing build"; cat cmakeErrors.log ; exit 1; fi
- - cmake --build . -- -j8 2>&1 | tee buildLogFile.log
- - cmake --build . --target tests -- -j8 2>&1 | tee testBuildLogFile.log
+ - cmake --build . -- -j$KUBERNETES_CPU_LIMIT 2>&1 | tee buildLogFile.log
+ - cmake --build . --target tests -- -j$KUBERNETES_CPU_LIMIT 2>&1 | tee testBuildLogFile.log
- awk '/warning/,/warning.*generated|^$/' buildLogFile.log testBuildLogFile.log
| grep -v "CMake" | tee buildErrors.log || true
- grep "cannot be built" buildLogFile.log testBuildLogFile.log | tee -a buildErrors.log || true
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
CMAKE_COMPILER_SCRIPT: ""
CMAKE_EXTRA_OPTIONS: ""
CMAKE_SIMD_OPTIONS: "-DGMX_SIMD=AUTO"
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
CMAKE_COMPILER_SCRIPT: ""
CMAKE_EXTRA_OPTIONS: ""
CMAKE_SIMD_OPTIONS: "-DGMX_SIMD=AUTO"
stage: build
script:
- cd $BUILD_DIR
- - cmake --build . -- -j8 2>&1 | tee buildLogFile.log
- - cmake --build . --target tests -- -j8 2>&1 | tee testBuildLogFile.log
+ - cmake --build . -- -j$KUBERNETES_CPU_LIMIT 2>&1 | tee buildLogFile.log
+ - cmake --build . --target tests -- -j$KUBERNETES_CPU_LIMIT 2>&1 | tee testBuildLogFile.log
- awk '/warning/,/warning.*generated|^$/' buildLogFile.log testBuildLogFile.log
| grep -v "CMake" | tee buildErrors.log || true
- grep "cannot be built" buildLogFile.log testBuildLogFile.log | tee -a buildErrors.log || true
extends:
- .variables:default
variables:
+ KUBERNETES_CPU_LIMIT: 4
+ KUBERNETES_CPU_REQUEST: 4
+ KUBERNETES_MEMORY_REQUEST: 4Gi
REGRESSIONTEST_TOTAL_RANK_NUMBER: 4
REGRESSIONTEST_OMP_RANK_NUMBER: 2
REGRESSIONTEST_PME_RANK_NUMBER: 1
EXTRA_INSTALLS: clang-tidy-$COMPILER_MAJOR_VERSION
KUBERNETES_CPU_LIMIT: 4
KUBERNETES_CPU_REQUEST: 2
- KUBERNETES_MEMORY_LIMIT: 4Gi
+ KUBERNETES_MEMORY_REQUEST: 4Gi
script:
# TODO (issue #3272) `master` is not appropriate for use on release-xxxx branches, how should we handle that?
- REV=$(git fetch -q https://gitlab.com/gromacs/gromacs.git master && git show -s --pretty=format:"%h" `git merge-base FETCH_HEAD HEAD`)
COMPILER_MAJOR_VERSION: 7
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
EXTRA_INSTALLS: clang-format-$COMPILER_MAJOR_VERSION
script:
# TODO (issue #3272) `master` is not appropriate for use on release-xxxx branches, how should we handle that?
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
script:
# TODO (issue #3272) `master` is not appropriate for use on release-xxxx branches, how should we handle that?
- REV=$(git fetch -q https://gitlab.com/gromacs/gromacs.git master && git show -s --pretty=format:"%h" `git merge-base FETCH_HEAD HEAD`)
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
BUILD_DIR: build-docs
script:
- cd $BUILD_DIR
variables:
KUBERNETES_CPU_LIMIT: 1
KUBERNETES_CPU_REQUEST: 1
- KUBERNETES_MEMORY_LIMIT: 2Gi
+ KUBERNETES_MEMORY_REQUEST: 2Gi
BUILD_DIR: build-docs
script:
- cd $BUILD_DIR