Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
25e555a
Update input-data and hpc-stack containers
Jul 15, 2022
b91c287
Remove squash option from docker build command
Jul 15, 2022
8c8b706
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Jul 15, 2022
3a9dfdd
Update ufs_linux.gnu
jkbk2004 Jul 18, 2022
a486037
Update ufs_linux.gnu_debug
jkbk2004 Jul 18, 2022
5f75a31
Update Dockerfile
jkbk2004 Jul 18, 2022
22c30c5
Update Dockerfile
jkbk2004 Jul 18, 2022
acfae5e
Update for concurrency
Jul 18, 2022
10d7dfc
debug on
Jul 19, 2022
a976f03
More concurrency updates
Jul 19, 2022
122e79a
Remove problematic bits
Jul 19, 2022
fa47f42
More concurrency updates
Jul 20, 2022
2d246bb
Update hpc-stack version
Jul 20, 2022
545a60a
Get docker logs
Jul 20, 2022
bf03889
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Jul 21, 2022
b05dc7b
Update ci.test
jkbk2004 Jul 21, 2022
c1ef79a
Update build_test.yml: debug
jkbk2004 Jul 21, 2022
15b6804
Update build_test.yml
jkbk2004 Jul 21, 2022
12ab05c
Update build_test.yml
jkbk2004 Jul 21, 2022
c26a731
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Jul 21, 2022
c6ae8d4
Update build_test.yml
jkbk2004 Jul 21, 2022
bdd5da3
Update build_test.yml
jkbk2004 Jul 21, 2022
8cff2b2
Update ci.sh
jkbk2004 Jul 22, 2022
0240186
Update ci.sh
jkbk2004 Jul 22, 2022
51b250e
Update ci.sh
jkbk2004 Jul 22, 2022
5bf14f8
Update run_test.sh
jkbk2004 Jul 22, 2022
f3122ff
Update opnReqTest
jkbk2004 Jul 22, 2022
b2414fd
debug on opnReqTest
jkbk2004 Jul 22, 2022
372d2e3
debug opnReqTest
jkbk2004 Jul 22, 2022
ace6536
debug run_test.sh
jkbk2004 Jul 22, 2022
347208a
debug opnReqTest
jkbk2004 Jul 22, 2022
d90adb9
debug opnReqTest
jkbk2004 Jul 22, 2022
60a01ec
debug opnReqTest
jkbk2004 Jul 22, 2022
86ca63b
debug opnReqTest
jkbk2004 Jul 23, 2022
506d3cc
debug opnReqTest
jkbk2004 Jul 23, 2022
c2aaad9
debug opnReqTest
jkbk2004 Jul 23, 2022
ce52a62
debug opnReqTest
jkbk2004 Jul 23, 2022
b06c854
debug opnReqTest
jkbk2004 Jul 23, 2022
bb5e092
Update ci.sh
jkbk2004 Jul 23, 2022
8ae25b9
Update run_test.sh
jkbk2004 Jul 23, 2022
5ed204b
Update run_test.sh
jkbk2004 Jul 23, 2022
8c578d1
Update ci.sh
jkbk2004 Jul 23, 2022
739cafa
Update ci.sh
jkbk2004 Jul 23, 2022
8994489
Update opnReqTest
jkbk2004 Jul 23, 2022
6a08b61
Update run_test.sh
jkbk2004 Jul 23, 2022
599b191
debug opnReqTest
jkbk2004 Jul 23, 2022
12cde69
Update ci.sh
jkbk2004 Jul 24, 2022
3764cc6
Update opnReqTest
jkbk2004 Jul 24, 2022
7985c9d
Update ci.test
jkbk2004 Jul 24, 2022
74c006f
Update run_test.sh
jkbk2004 Jul 24, 2022
66902f1
Update build_test.yml
jkbk2004 Jul 24, 2022
1569d32
Update ci.sh
jkbk2004 Jul 24, 2022
78691b7
reverted to original hpc-stack
jkbk2004 Jul 25, 2022
d3a456e
Update opnReqTest
jkbk2004 Jul 25, 2022
92122df
Update Dockerfile
jkbk2004 Jul 25, 2022
4d255d3
Update ci.sh
jkbk2004 Jul 25, 2022
c8672e0
Update ci.sh
jkbk2004 Jul 28, 2022
c0b9074
Update ci.sh
jkbk2004 Jul 28, 2022
abacf90
Update ci.sh
jkbk2004 Jul 28, 2022
43310d3
Update ci.sh
jkbk2004 Jul 28, 2022
e4d42b6
Update ci.sh
jkbk2004 Jul 28, 2022
463eda3
Update ci.sh
jkbk2004 Jul 28, 2022
44a8ce2
Update ci.sh
jkbk2004 Jul 28, 2022
fa77bad
Update ci.sh
jkbk2004 Jul 28, 2022
91de6ee
Update Dockerfile
jkbk2004 Jul 28, 2022
b846844
Update ci.sh
jkbk2004 Jul 28, 2022
262cf34
Update ci.sh
jkbk2004 Jul 28, 2022
5952be3
Create ci_build.sh
jkbk2004 Jul 28, 2022
3a1c953
Update ci_build.sh
jkbk2004 Jul 28, 2022
093456e
Update ci_build.sh
jkbk2004 Jul 28, 2022
9de863a
Update ci_build.sh
jkbk2004 Jul 28, 2022
3cd6cc2
Update ci_build.sh
jkbk2004 Jul 28, 2022
480a1b6
Update Dockerfile
jkbk2004 Jul 28, 2022
614e5cd
Update ci_build.sh
jkbk2004 Jul 28, 2022
214a700
Update ci.sh
jkbk2004 Jul 28, 2022
fc47e31
Update Dockerfile
jkbk2004 Jul 28, 2022
00b2fd0
Update Dockerfile
jkbk2004 Jul 29, 2022
8d00407
Update ci.sh
jkbk2004 Jul 29, 2022
45642d8
Update Dockerfile
jkbk2004 Aug 1, 2022
f9505f4
Update ci.sh
jkbk2004 Aug 3, 2022
b73f1b3
Update Dockerfile
jkbk2004 Aug 3, 2022
0405444
Update ci.sh
jkbk2004 Aug 3, 2022
3911446
Update ci.sh
jkbk2004 Aug 3, 2022
4cfa586
Update ci.sh
jkbk2004 Aug 3, 2022
64ce109
Update ci.test
jkbk2004 Aug 5, 2022
0d0e3e7
Update _Dockerfile
jkbk2004 Aug 5, 2022
1b61d86
Update _Dockerfile
jkbk2004 Aug 5, 2022
d561f8c
Update ci.test
jkbk2004 Aug 6, 2022
59c8a7f
Update ci.test
jkbk2004 Aug 6, 2022
07b31e8
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Aug 9, 2022
5897962
clean and sync up to develop branch
jkbk2004 Aug 9, 2022
09f41fd
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Aug 23, 2022
8bf9b41
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Aug 29, 2022
863f8d6
Check-in Jenkinsfile for ORT CI
Aug 31, 2022
52360ee
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Sep 13, 2022
6c7fb4d
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Sep 20, 2022
abd15a1
add lua extension to linux.gnu modulefiles
jkbk2004 Sep 20, 2022
727cbcf
add lua extension to linux.gnu modulefiles
jkbk2004 Sep 20, 2022
581bab4
revert ci.test
jkbk2004 Sep 20, 2022
171b4d7
revert opnReqTest
jkbk2004 Sep 20, 2022
4ec4e6a
Delete ci_build.sh
jkbk2004 Sep 20, 2022
b1f4d12
Update Jenkinsfile to handle PRs properly
Sep 21, 2022
7b2bd6d
turning off log outputs: debugging
jkbk2004 Sep 24, 2022
962dd74
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Sep 24, 2022
0463043
revert linux/gnu modulefile names
jkbk2004 Sep 24, 2022
f38d3fd
fix lua options: compile and run_test
jkbk2004 Sep 24, 2022
eccfac5
debugging run based on container
jkbk2004 Sep 27, 2022
384bf2b
Debugging CI run failure on container
jkbk2004 Sep 27, 2022
9d42171
Debugging at run_test.sh
jkbk2004 Sep 27, 2022
95ad25e
debugging with overscribed
jkbk2004 Sep 27, 2022
062f521
Update run_test.sh
jkbk2004 Sep 28, 2022
ecf0d04
debugging with overscribe option
jkbk2004 Sep 28, 2022
f0890e2
Update run_test.sh
jkbk2004 Sep 28, 2022
47f098c
Update Dockerfile
jkbk2004 Sep 30, 2022
0e96b38
updated docker hpc stack image
jkbk2004 Oct 2, 2022
d343ad1
Update opnReqTest
jkbk2004 Oct 2, 2022
ad369f9
Exclude cpld_control_nowave_noaero_p8 thr case
Oct 3, 2022
40ecfef
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Oct 3, 2022
27aecd4
Merge branch 'ufs-community:develop' into jenkins-ci
jkbk2004 Oct 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ jobs:
sudo systemctl restart docker
sleep 10
cd tests/ci && ./ci.sh -n ${{ matrix.name }} -b ${{ matrix.case }}
sudo docker image ls

- name: Free up disk space
run: |
sudo docker rmi $(sudo docker image ls | grep -E -m1 '<none>' | awk '{ print $3 }')
sudo docker rmi $(sudo docker image ls | awk '/ubuntu-hpc/ { print $3 }')

#- name: Free up disk space
# run: |
# sudo docker images --no-trunc --all --quiet --filter="dangling=true" | sudo xargs --no-run-if-empty docker rmi

- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.bld_set }}.artifact
Expand Down Expand Up @@ -174,14 +174,14 @@ jobs:
cd ${{ github.workspace }}/tests/ci
./ci.sh -n ${{ matrix.name }} -r ${{ matrix.case }}

- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: memory_stat_${{ matrix.test_set }}
path: memory_stat

- name: Clean up
if: ${{ always() }}
run: |
docker stop my-container && docker rm my-container
docker volume rm DataVolume
#- uses: actions/upload-artifact@v2
# if: ${{ always() }}
# with:
# name: memory_stat_${{ matrix.test_set }}
# path: memory_stat

#- name: Clean up
# if: ${{ always() }}
# run: |
#docker stop my-container && docker rm my-container
#docker volume rm DataVolume
15 changes: 8 additions & 7 deletions tests/ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
From noaaemc/ubuntu-hpc:v1.11b
From noaaepic/ubuntu20.04-gnu9.3-hpc-stack:v1.2

CMD ["/bin/bash"]

ENV HOME=/home/builder
COPY --chown=builder:builder . $HOME/ufs-weather-model

USER builder
ENV USER=builder
ARG test_name
ARG build_case
ARG run_case
ENV test_name=$test_name
ENV build_case=$build_case
ENV test_case=
ENV run_case=$run_case
ENV CI_TEST=true
ENV RT_COMPILER=gnu
ENV RT_MACHINE=linux.gnu
ENV RT_MACHINE=linux
ENV MACHINE_ID=linux

WORKDIR $HOME/ufs-weather-model/tests
RUN ./opnReqTest -n $test_name -c $build_case -z && tar -cvzf fv3.tar.gz fv3_*.exe modules.fv3_*
CMD ./opnReqTest -n $test_name -c $test_case -x
CMD ./opnReqTest -n $test_name -c $run_case
75 changes: 75 additions & 0 deletions tests/ci/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
pipeline {
agent none

options {
disableConcurrentBuilds()
overrideIndexTriggers(false)
skipDefaultCheckout(true)
}

stages {
stage('ORT') {
matrix {
axes {
axis {
name 'TEST_NAME'
values 'control', 'regional_control', 'cpld_control_nowave_noaero_p8'
}

axis {
name 'TEST_CASE'
values 'thr', 'mpi', 'dcp', 'rst', 'bit', 'dbg'
}
}

excludes {
exclude {
axis {
name 'TEST_NAME'
values 'regional_control'
}

axis {
name 'TEST_CASE'
values 'mpi', 'rst', 'bit', 'dbg'
}
}

exclude {
axis {
name 'TEST_NAME'
values 'cpld_control_nowave_noaero_p8'
}

axis {
name 'TEST_CASE'
values 'mpi', 'dcp', 'rst', 'bit', 'thr' // TODO: Remove thr case from cpld_control_nowave_noaero_p8 exclusions when it is passing again
}
}
}

stages {
stage('Test') {
when {
expression {
!changeRequest()
}
}

steps {
build job: 'ufs-weather-model/ort-docker-pipeline', parameters: [string(name: 'TEST_NAME', value: "${env.TEST_NAME}"), string(name: 'TEST_CASE', value: "${env.TEST_CASE}"), string(name: 'WRAPPER_GIT_BRANCH', value: "${env.BRANCH_NAME}")]
}
}

stage('Test for Change Request') {
when { changeRequest() }

steps {
build job: 'ufs-weather-model/ort-docker-pipeline', parameters: [string(name: 'TEST_NAME', value: "${env.TEST_NAME}"), string(name: 'TEST_CASE', value: "${env.TEST_CASE}"), booleanParam(name: 'WRAPPER_CHANGE_REQUEST', value: true), string(name: 'WRAPPER_GIT_BRANCH', value: "${env.CHANGE_TARGET}"), string(name: 'WRAPPER_CHANGE_BRANCH', value: "${env.CHANGE_BRANCH}"), string(name: 'WRAPPER_CHANGE_FORK', value: "${env.CHANGE_FORK}")]
}
}
}
}
}
}
}
4 changes: 2 additions & 2 deletions tests/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ bash -x ${PATHTR}/build.sh

mv ${BUILD_DIR}/ufs_model ${PATHTR}/tests/${BUILD_NAME}.exe
if [[ "${MAKE_OPT}" == "-DDEBUG=ON" ]]; then
if [[ $MACHINE_ID == gaea.* ]]; then
if [[ $MACHINE_ID == gaea.* ]] || [[ $MACHINE_ID == linux.* ]]; then
cp ${PATHTR}/modulefiles/ufs_${MACHINE_ID}_debug ${PATHTR}/tests/modules.${BUILD_NAME}
else
cp ${PATHTR}/modulefiles/ufs_${MACHINE_ID}_debug.lua ${PATHTR}/tests/modules.${BUILD_NAME}.lua
fi
else
if [[ $MACHINE_ID == gaea.* ]]; then
if [[ $MACHINE_ID == gaea.* ]] || [[ $MACHINE_ID == linux.* ]]; then
cp ${PATHTR}/modulefiles/ufs_${MACHINE_ID} ${PATHTR}/tests/modules.${BUILD_NAME}
else
cp ${PATHTR}/modulefiles/ufs_${MACHINE_ID}.lua ${PATHTR}/tests/modules.${BUILD_NAME}.lua
Expand Down
2 changes: 1 addition & 1 deletion tests/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ MACHINE_ID=${MACHINE_ID:-false}
cp ${PATHRT}/fv3_${COMPILE_NR}.exe fv3.exe

# modulefile for FV3 prerequisites:
if [[ $MACHINE_ID == gaea.* ]]; then
if [[ $MACHINE_ID == gaea.* ]] || [[ $MACHINE_ID == linux.* ]]; then
cp ${PATHRT}/modules.fv3_${COMPILE_NR} modules.fv3
else
cp ${PATHRT}/modules.fv3_${COMPILE_NR}.lua modules.fv3.lua
Expand Down