Skip to content

Commit c4c04f6

Browse files
author
Ralph Castain
committed
Cleanup minor typo
1 parent 2c19971 commit c4c04f6

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

contrib/build-server/hwloc-nightly-tarball.sh

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ outputroot=$HOME/hwloc/nightly
1919
# where to find the build script
2020
script_uri=contrib/nightly/make_snapshot_tarball
2121

22+
# helper scripts dir
23+
script_dir=$HOME/scripts
24+
2225
# The tarballs to make
2326
if [ $# -eq 0 ] ; then
2427
# Branches v1.6 and earlier were not updated to build nightly
@@ -54,16 +57,18 @@ cd $build_root
5457
pending_coverity=$build_root/tarballs-to-run-through-coverity.txt
5558
rm -f $pending_coverity
5659
touch $pending_coverity
57-
debug=100
5860

5961
# Loop making them
62+
module unload autotools
6063
for branch in $branches; do
64+
echo "=== Branch: $branch"
6165
# Get the last tarball version that was made
6266
prev_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
6367

6468
# Form a URL-specific script name
6569
script=$branch-`basename $script_uri`
6670

71+
echo "=== Getting script from: $raw_uri"
6772
wget --quiet --no-check-certificate --tries=10 $raw_uri/$branch/$script_uri -O $script
6873
if test ! $? -eq 0 ; then
6974
echo "wget of hwloc nightly tarball create script failed."
@@ -79,6 +84,7 @@ for branch in $branches; do
7984
module load "autotools/hwloc-$branch"
8085
# module load "tex-live/hwloc-$branch"
8186

87+
echo "=== Running script..."
8288
./$script \
8389
$build_root/$branch \
8490
$results_addr \
@@ -87,25 +93,37 @@ for branch in $branches; do
8793
$branch \
8894
>/dev/null 2>&1
8995

96+
module unload autotools
97+
echo "=== Done running script"
98+
9099
# Did the script generate a new tarball? If so, save it so that we can
91100
# spawn the coverity checker on it afterwards. Only for this for the
92101
# master (for now).
93102
latest_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
103+
echo "=== Latest snapshot: $latest_snapshot"
94104
if test "$prev_snapshot" != "$latest_snapshot" && \
95105
test "$branch" = "master"; then
106+
echo "=== Saving output for a Coverity run"
96107
echo "$outputroot/$branch/hwloc-$latest_snapshot.tar.bz2" >> $pending_coverity
97108
echo "=== Posting tarball to open-mpi.org"
98109
# tell the web server to cleanup old nightly tarballs
99110
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch"
100111
# upload the new ones
101112
scp -P 2222 $outputroot/$branch/hwloc-$latest_snapshot.tar.* [email protected]:public_html/software/hwloc/nightly/$branch/
102-
scp -P 2222 $outputroot/$branch/$latest_snapshot.txt [email protected]:public_html/software/hwloc/nightly/$branch/
113+
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/software/hwloc/nightly/$branch/
103114
# direct the web server to regenerate the checksums
104115
ssh -p 2222 [email protected] "cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt"
105116
ssh -p 2222 [email protected] "cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt"
117+
else
118+
echo "=== NOT saving output for a Coverity run"
106119
fi
107120

108-
module unload autotools
121+
# Failed builds are not removed. But if a human forgets to come
122+
# in here and clean up the old failed builds, we can accumulate
123+
# many over time. So remove any old failed builds that are over
124+
# 4 weeks old.
125+
${script_dir}/remove-old.pl 7 $build_root/$branch
126+
109127
done
110128

111129
# If we had any new snapshots to send to coverity, process them now

0 commit comments

Comments
 (0)