Skip to content

Commit 93ebb5d

Browse files
authored
Merge pull request #283 from LLNL/hotfix/cd-pipeline
Hotfix CD pipeline
2 parents cdd7c1d + 961700c commit 93ebb5d

6 files changed

Lines changed: 68 additions & 36 deletions

File tree

.gitlab/scripts.yml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -78,38 +78,12 @@
7878
script:
7979
- INSTALL_DIR=/usr/gapps/Spheral/$SYS_TYPE/spheral-$SPHERAL_REV_STR
8080
- DEV_PKG_NAME=$SYS_TYPE-spheral-dev-pkg-$SPHERAL_REV_STR
81-
- DEV_PKG_PATH=$INSTALL_DIR/$DEV_PKG_NAME
81+
82+
- env SPHERAL_REV_STR=$SPHERAL_REV_STR INSTALL_DIR=$INSTALL_DIR SPEC=$SPEC SPACK_PKG_NAME=$SPACK_PKG_NAME BUILD_ALLOC="$BUILD_ALLOC" SCRIPT_DIR=$SCRIPT_DIR
83+
bash ./$SCRIPT_DIR/lc/generate-buildcache.sh
84+
8285
- echo $INSTALL_DIR &> install-dir.txt
8386
- echo $DEV_PKG_NAME &> dev-pkg-name.txt
84-
85-
# *** Copy spheral src and all submodules. ***
86-
- mkdir -p $DEV_PKG_PATH/resources && cp -a $CI_PROJECT_DIR/. $DEV_PKG_PATH
87-
88-
### Initialize the upstream spack instance for this platform.
89-
### - We do this to load system configs / externals for this machine.
90-
- ./$SCRIPT_DIR/devtools/tpl-manager.py --init-only --spheral-spack-dir=$UPSTREAM_DIR --spec=none
91-
- source $UPSTREAM_DIR/spack/share/spack/setup-env.sh
92-
93-
### Installation Directory w/ Spheral rev numbers.
94-
95-
### Create a temporary spack environement with only the TPL specs for this specific commit of Spheral
96-
- spack env create -d $INSTALL_DIR
97-
- spack env activate $INSTALL_DIR
98-
- spack add $SPACK_PKG_NAME@develop%$SPEC
99-
- spack concretize --fresh -f
100-
101-
# *** Pre-built binaries for $SYS_TYPE. ***
102-
- spack buildcache create -auf -d $DEV_PKG_PATH/resources $(spack find --format /{hash})
103-
# *** All TPL tar files. ***
104-
- spack mirror create -a -d $DEV_PKG_PATH/resources/mirror --exclude-specs "llnlspheral spheral"
105-
# *** Spack bootstrapping resources. ***
106-
- spack bootstrap mirror --binary-packages $DEV_PKG_PATH/resources
107-
108-
### Wrap it all up.
109-
- tar -czvf "$DEV_PKG_PATH".tar.gz -C $INSTALL_DIR $DEV_PKG_NAME
110-
111-
### Cleanup
112-
- rm -rf $DEV_PKG_PATH
11387

11488
artifacts:
11589
paths:

RELEASE_NOTES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
Version v2024.06.1 -- Release date 2024-07-09
2+
==============================================
3+
4+
* Important Notes:
5+
* This is a patch release for v2024.06.0.
6+
7+
* Bug Fixes / improvements:
8+
* CD pipeline hotfix for installing release builds on LC machines.
9+
* Fixes an issue with the use of the axom::quest::SignedDistance interface.
10+
111
Version v2024.06.0 -- Release date 2024-06-27
212
==============================================
313
* Important Notes:

scripts/lc/generate-buildcache.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
trap 'echo "# $BASH_COMMAND"' DEBUG
2+
3+
SPEC=${SPEC:-gcc@10.3.1}
4+
SPACK_PKG_NAME=${SPACK_PKG_NAME:-spheral}
5+
SPHERAL_SPEC=$SPACK_PKG_NAME@develop%$SPEC
6+
echo $SPHERAL_SPEC
7+
8+
INSTALL_DIR=${INSTALL_DIR:-$PWD/../$SYS_TYPE/spheral-cache}
9+
SPHERAL_REV_STR=${SPHERAL_REV_STR:-undefined}
10+
11+
12+
UPSTREAM_DIR=${UPSTREAM_DIR:-/usr/WS2/sduser/Spheral/spack_upstream/0.22}
13+
SCRIPT_DIR=${SCRIPT_DIR:-'scripts'}
14+
DEV_PKG_NAME=$SYS_TYPE-spheral-dev-pkg-$SPHERAL_REV_STR
15+
DEV_PKG_DIR=$INSTALL_DIR/$DEV_PKG_NAME
16+
17+
CI_PROJECT_DIR=${CI_PROJECT_DIR:-$PWD}
18+
19+
RESOURCE_DIR=$DEV_PKG_DIR/resources
20+
echo $RESOURCE_DIR
21+
22+
echo $INSTALL_DIR
23+
#echo $INSTALL_DIR &> install-dir.txt
24+
25+
echo $DEV_PKG_DIR
26+
#echo $DEV_PKG_NAME &> dev-pkg-name.txt
27+
28+
rm -rf $INSTALL_DIR
29+
mkdir -p $RESOURCE_DIR && cp -a $CI_PROJECT_DIR/. $DEV_PKG_DIR
30+
31+
./$SCRIPT_DIR/devtools/tpl-manager.py --init-only --spheral-spack-dir=$UPSTREAM_DIR --spec=none
32+
source $UPSTREAM_DIR/spack/share/spack/setup-env.sh
33+
34+
spack env rm -y -f $INSTALL_DIR
35+
spack env create -d $INSTALL_DIR
36+
spack env activate $INSTALL_DIR
37+
spack add $SPHERAL_SPEC
38+
spack concretize -f --fresh --deprecated
39+
40+
spack mirror create -a -d $RESOURCE_DIR/mirror --exclude-specs "llnlspheral spheral"
41+
spack buildcache push -auf $RESOURCE_DIR/mirror $(spack find --format /{hash})
42+
43+
spack bootstrap mirror --binary-packages $RESOURCE_DIR
44+
45+
tar -czf $DEV_PKG_DIR.tar.gz -C $INSTALL_DIR $DEV_PKG_NAME
46+

scripts/lc/install-from-dev-pkg.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@ echo $INSTALL_DIR
2222
echo $SCRIPT_DIR
2323
echo $BUILD_ALLOC
2424

25+
rm -rf $INSTALL_DIR
2526
mkdir -p $INSTALL_DIR
2627

2728
./$SCRIPT_DIR/devtools/tpl-manager.py --spack-url $SPACK_URL --init-only --spec=none --no-upstream --spheral-spack-dir $INSTALL_DIR/spheral-spack-tpls
2829

2930
source $INSTALL_DIR/spheral-spack-tpls/spack/share/spack/setup-env.sh
3031
spack bootstrap add --trust local-sources $PWD/resources/metadata/sources
3132
spack bootstrap add --trust local-binaries $PWD/resources/metadata/binaries
32-
spack mirror add spheral-mirror $PWD/resources/mirror
33-
spack mirror add spheral-cache $PWD/resources
34-
spack buildcache update-index -d $PWD/resources
33+
spack mirror rm spheral-mirror
34+
spack mirror rm spheral-cache
35+
spack mirror add --unsigned spheral-mirror $PWD/resources/mirror
36+
spack mirror add --unsigned spheral-cache $PWD/resources
37+
spack buildcache update-index $PWD/resources/mirror
3538

3639
$BUILD_ALLOC spack install --fresh --deprecated --no-check-signature --only dependencies $SPACK_PKG_NAME@develop%$SPEC
3740

scripts/spack/configs/toss_4_x86_64_ib/packages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ packages:
1010
mpi: [mvapich2]
1111
pkgconfig: [pkg-config]
1212
pil: [py-pillow]
13+
jpeg: [libjpeg]
1314
zlib-api: [zlib]
1415
cmake:
1516
version: [3.23.1]

src/Geometry/GeomPolyhedron.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,7 @@ buildAxomData() const {
984984
mSurfaceMeshQueryPtr = new AxOctree(bb, mSurfaceMeshPtr);
985985
mSurfaceMeshQueryPtr->generateIndex();
986986
mSignedDistancePtr = new AxDistance(mSurfaceMeshPtr,
987-
true, // is_watertight
988-
25, // max_objects
989-
10); // max_levels
987+
true); // is_watertight
990988
}
991989

992990
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)