Skip to content

Commit 584e132

Browse files
committed
remove unused spack config scopes and add mirror
* used to break for Jenkins and on slurm nodes * add spec -I call for debug purposes * use jenkins queue * add mirror /wang/.../spack/mirror Change-Id: I4b5bdf2de7101e0879d927c7cf1f1f443f89ad53
1 parent 0ed0dee commit 584e132

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

.ci/01_ensure_gcc.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
umask 0002
44

55
# ensure that system compiler are available
6-
rm -f $HOME/.spack/linux/compilers.yaml
6+
rm -f etc/linux/compilers.yaml
77
spack compiler add
8+
# ensure that our chosen gcc is there
9+
# make parameter?
810
spack fetch -D [email protected]
9-
srun -p compile -c8 -t6:00:00 spack install --show-log-on-error [email protected]
11+
srun -p jenkins -c8 -t6:00:00 spack install --show-log-on-error [email protected]
1012
# remove system compiler
11-
rm -f $HOME/.spack/linux/compilers.yaml
12-
# add gcc to local configuration
13-
spack compiler add --scope site $(spack location -i [email protected])
13+
rm -f etc/linux/compilers.yaml
14+
# add our gcc
15+
spack compiler add $(spack location -i [email protected])

.ci/02_install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ modulespec=$2
66
compiler=$3
77

88
spack fetch -D "$modulespec"
9+
spack spec -I "$modulespec"
910
if [ "$4" = "local" ]
1011
then
1112
spack install --only dependencies --show-log-on-error -j4 "$modulespec"
1213
else
13-
srun -p compile -c8 -t6:00:00 spack install --only dependencies --show-log-on-error "$modulespec"
14+
srun -p jenkins -c8 -t6:00:00 spack install --only dependencies --show-log-on-error "$modulespec"
1415
fi
1516
# fancy bash-magic to get the hash of the installed package
1617
newhash=$(spack install --show-log-on-error -j4 "$modulespec" | tail -n1 | tr "-" "\n" | tail -n1)

etc/spack/mirrors.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mirrors:
2+
global: file:///wang/environment/software/jessie/spack/mirror

lib/spack/spack/config.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -216,22 +216,11 @@ def __repr__(self):
216216
ConfigScope('defaults', _defaults_path)
217217
ConfigScope('defaults/%s' % _platform, os.path.join(_defaults_path, _platform))
218218

219-
#: System configuration is per machine.
220-
#: No system-level configs should be checked into spack by default
221-
_system_path = os.path.join(spack.system_etc_path, 'spack')
222-
ConfigScope('system', _system_path)
223-
ConfigScope('system/%s' % _platform, os.path.join(_system_path, _platform))
224219

225220
#: Site configuration is per spack instance, for sites or projects.
226221
#: No site-level configs should be checked into spack by default.
227222
_site_path = os.path.join(spack.etc_path, 'spack')
228223
ConfigScope('site', _site_path)
229-
ConfigScope('site/%s' % _platform, os.path.join(_site_path, _platform))
230-
231-
#: User configuration can override both spack defaults and site config.
232-
_user_path = spack.user_config_path
233-
ConfigScope('user', _user_path)
234-
ConfigScope('user/%s' % _platform, os.path.join(_user_path, _platform))
235224

236225

237226
def highest_precedence_scope():

0 commit comments

Comments
 (0)