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

fix build-test logs being ovewritten by install-test logs

parent 2f52a147
No related branches found
No related tags found
3 merge requests!301create new experimental release,!300add spack post-installation testing,!279update py-elephant to 0.12.0
Pipeline #21002 failed with stage
in 14 hours and 38 seconds
......@@ -170,6 +170,9 @@ build-spack-env-on-runner:
- cp packages.yaml $SPACK_DEV_PATH/etc/spack/packages.yaml
# SPACK PATCH: see https://github.com/spack/spack/pull/35290
- sed -i 's/solver.solve(abstract_specs)/solver.solve(abstract_specs, tests=kwargs.get("tests", False))/g' $SPACK_DEV_PATH/lib/spack/spack/concretize.py
# the post-build logs on install-time-test-logs.txt gets ovewritten by the post-install logs.
# quick fix for that: (TODO: investigate more and open PR)
- sed -i "s/self.file_like, 'w'/self.file_like, 'a'/g" $SPACK_DEV_PATH/lib/spack/llnl/util/tty/log.py
- |
cat <<EOF > $SPACK_DEV_PATH/etc/spack/defaults/upstreams.yaml
upstreams:
......@@ -235,6 +238,9 @@ sync-gitlab-spack-instance:
fi
# SPACK PATCH: see https://github.com/spack/spack/pull/35290
- sed -i 's/solver.solve(abstract_specs)/solver.solve(abstract_specs, tests=kwargs.get("tests", False))/g' $SPACK_PATH/lib/spack/spack/concretize.py
# the post-build logs on install-time-test-logs.txt gets ovewritten by the post-install logs.
# quick fix for that: (TODO: investigate more and open PR)
- sed -i "s/self.file_like, 'w'/self.file_like, 'a'/g" $SPACK_PATH/lib/spack/llnl/util/tty/log.py
- cp $CI_PROJECT_DIR/packages.yaml $SPACK_PATH/etc/spack/packages.yaml
- . $SPACK_PATH/share/spack/setup-env.sh
# - spack bootstrap untrust github-actions
......
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