Skip to content
Snippets Groups Projects
Commit a85d0e15 authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

fix in case spack.lock doesn't exist

parent fe3455c3
No related branches found
No related tags found
No related merge requests found
...@@ -183,8 +183,6 @@ build-spack-env-on-runner: ...@@ -183,8 +183,6 @@ build-spack-env-on-runner:
- spack repo add . - spack repo add .
- spack env create $SPACK_DEV_ENV spack.yaml - spack env create $SPACK_DEV_ENV spack.yaml
- spack env activate $SPACK_DEV_ENV - spack env activate $SPACK_DEV_ENV
# see comments in sync-gitlab-spack-instance
- rm $SPACK_ROOT/var/spack/environments/$SPACK_DEV_ENV/spack.lock
- spack install -y -j2 --fresh --no-check-signature --test root - spack install -y -j2 --fresh --no-check-signature --test root
after_script: after_script:
- mkdir spack_logs - mkdir spack_logs
...@@ -248,7 +246,7 @@ sync-gitlab-spack-instance: ...@@ -248,7 +246,7 @@ sync-gitlab-spack-instance:
- cp $CI_PROJECT_DIR/spack.yaml $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.yaml - cp $CI_PROJECT_DIR/spack.yaml $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.yaml
# There is a known spack bug (https://github.com/spack/spack/issues/29447) in installing test dependencies for installation tests. The workaround suggested # There is a known spack bug (https://github.com/spack/spack/issues/29447) in installing test dependencies for installation tests. The workaround suggested
# in the issue is to NOT concretize separately, but simply remove the .lock file and let the enironment be concretized by the spack install command: # in the issue is to NOT concretize separately, but simply remove the .lock file and let the enironment be concretized by the spack install command:
- rm $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.lock - rm $SPACK_ROOT/var/spack/environments/$SPACK_NFS_ENV/spack.lock || echo "No spack.lock file"
- spack install -y -j2 --fresh --no-check-signature --test root - spack install -y -j2 --fresh --no-check-signature --test root
- spack module tcl refresh -y - spack module tcl refresh -y
- spack reindex - spack reindex
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment