Skip to content

Commit b47798d

Browse files
Add weekly build/test scripts (#1213)
This PR will add scripting for weekly unit testing and build caching of the unified env through Jenkins, cron jobs, etc. Also a few updates for Acorn, including a change to spack stack create env --compiler that allows compiler version to be specified (spack stack create env --compiler intel -> envs/myenv-intel; spack stack create env --compiler intel@2022 -> envs/myenv-intel-2022), which is needed to differentiate on platforms platform where more than one version of a compiler is installed.
1 parent 0e42c22 commit b47798d

File tree

27 files changed

+456
-59
lines changed

27 files changed

+456
-59
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Nightly 01 Directory Setup
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Nightly 01 Directory Setup
7+
shell: bash
8+
run: |
9+
# Write RUNID to file so that following steps use the
10+
# same date and don't pick up the next day's date
11+
RUNID=`date +"%Y%m%d"`
12+
echo "${RUNID}" > RUNID_SAVE.log
13+
# Get day of week for later use and write to file
14+
DOW=$(date +%u)
15+
echo "${DOW}" > DOW_SAVE.log
16+
#
17+
cd util/weekly_build
18+
./01_DirectorySetup.sh ${RUNID} ${BASEDIR} ${PLATFORM}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Nightly 02 Get Spack-Stack
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Nightly 02 Get Spack-Stack
7+
shell: bash
8+
run: |
9+
RUNID=$(<RUNID_SAVE.log)
10+
cd util/weekly_build
11+
./02_GetSpackStack.sh ${RUNID} ${BASEDIR} ${PLATFORM}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Nightly 03 Setup Env
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Nightly 03 Setup Env
7+
shell: bash
8+
run: |
9+
RUNID=$(<RUNID_SAVE.log)
10+
cd util/weekly_build
11+
./03_SetupEnv.sh ${RUNID} ${BASEDIR} ${PLATFORM}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Nightly 04 Spack Install
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Nightly 04 Spack Install
7+
shell: bash
8+
run: |
9+
RUNID=$(<RUNID_SAVE.log)
10+
DOW=$(<DOW_SAVE.log)
11+
# Build everything from scratch on Sundays, otherwise
12+
# use build cache to speed up the installations.
13+
# Monday is 1 ... Sunday is 7
14+
if [[ $DOW == 7 ]]; then
15+
export REUSE_BUILD_CACHE="NO"
16+
else
17+
export REUSE_BUILD_CACHE="YES"
18+
fi
19+
cd util/weekly_build
20+
./04_SpackInstall.sh ${RUNID} ${BASEDIR} ${PLATFORM}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Nightly 05 Build Cache
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Nightly 05 Build Cache
7+
shell: bash
8+
run: |
9+
RUNID=$(<RUNID_SAVE.log)
10+
cd util/weekly_build
11+
./05_BuildCache.sh ${RUNID} ${BASEDIR} ${PLATFORM}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Nightly 07 Cleanup
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Nightly 07 Cleanup
7+
shell: bash
8+
run: |
9+
RUNID=$(<RUNID_SAVE.log)
10+
cd util/weekly_build
11+
./05_BuildCache.sh ${RUNID} ${BASEDIR} ${PLATFORM}

configs/sites/tier1/acorn/compilers.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ compilers:
66
cxx: CC
77
f77: ftn
88
fc: ftn
9-
flags:
10-
cflags: -static-libgcc -static-libstdc++ -Bstatic -lstdc++ -Bdynamic -lm -lpthread
11-
cxxflags: -static-libgcc -static-libstdc++ -Bstatic -lstdc++ -Bdynamic -lm -lpthread
12-
fflags: -static-libgcc -static-libstdc++ -Bstatic -lstdc++ -Bdynamic -lm -lpthread
9+
flags: {}
1310
operating_system: sles15
1411
modules:
1512
- PrgEnv-intel/8.5.0
@@ -30,10 +27,7 @@ compilers:
3027
cxx: CC
3128
f77: ftn
3229
fc: ftn
33-
flags:
34-
cflags: -static-libgcc -static-libstdc++ -Bstatic -lstdc++ -Bdynamic -lm -lpthread
35-
cxxflags: -static-libgcc -static-libstdc++ -Bstatic -lstdc++ -Bdynamic -lm -lpthread
36-
fflags: -static-libgcc -static-libstdc++ -Bstatic -lstdc++ -Bdynamic -lm -lpthread
30+
flags: {}
3731
operating_system: sles15
3832
modules:
3933
- PrgEnv-intel/8.5.0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mirrors:
2+
local-source: file:///lfs/h1/emc/nceplibs/noscrub/spack-stack/cache
3+
local-binary: file:///lfs/h1/emc/nceplibs/noscrub/spack-stack/cache
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
mirrors:
2-
local-source:
3-
fetch:
4-
url: file:///neptune_diagnostics/spack-stack/source-cache/
5-
access_pair:
6-
- null
7-
- null
8-
access_token: null
9-
profile: null
10-
endpoint_url: null
11-
push:
12-
url: file:///neptune_diagnostics/spack-stack/source-cache/
13-
access_pair:
14-
- null
15-
- null
16-
access_token: null
17-
profile: null
18-
endpoint_url: null
2+
local-source: file:///neptune_diagnostics/spack-stack/source-cache
3+
local-binary: file:///neptune_diagnostics/spack-stack/build-cache
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
mirrors:
2-
local-source:
3-
fetch:
4-
url: file:///p/cwfs/projects/NEPTUNE/spack-stack/source-cache
5-
access_pair:
6-
- null
7-
- null
8-
access_token: null
9-
profile: null
10-
endpoint_url: null
11-
push:
12-
url: file:///p/cwfs/projects/NEPTUNE/spack-stack/source-cache
13-
access_pair:
14-
- null
15-
- null
16-
access_token: null
17-
profile: null
18-
endpoint_url: null
2+
local-source: file:///p/cwfs/projects/NEPTUNE/spack-stack/source-cache
3+
local-binary: file:///p/cwfs/projects/NEPTUNE/spack-stack/build-cache

0 commit comments

Comments
 (0)