Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
30
Issue boards
Milestones
Wiki
Code
Merge requests
30
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Commits
3c3fc6eb
Commit
3c3fc6eb
authored
2 months ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
feat(CI): deactivate view during concretization and installation
parent
2dbb7fb9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#60299
waiting for manual action with stage
in 2 hours, 27 minutes, and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install_spack_env.sh
+7
-0
7 additions, 0 deletions
install_spack_env.sh
with
7 additions
and
0 deletions
install_spack_env.sh
+
7
−
0
View file @
3c3fc6eb
...
@@ -96,6 +96,9 @@ cp /tmp/spack.yaml ${CI_SPACK_ROOT}/var/spack/environments/$EBRAINS_SPACK_ENV/
...
@@ -96,6 +96,9 @@ cp /tmp/spack.yaml ${CI_SPACK_ROOT}/var/spack/environments/$EBRAINS_SPACK_ENV/
# activate environment
# activate environment
spack
env
activate
--without-view
$EBRAINS_SPACK_ENV
spack
env
activate
--without-view
$EBRAINS_SPACK_ENV
# deactivate view during concretization and installation
spack
env
view disable
spack concretize
--force
--fresh
--test
root
spack concretize
--force
--fresh
--test
root
# dump dag to file
# dump dag to file
...
@@ -144,6 +147,10 @@ fi
...
@@ -144,6 +147,10 @@ fi
# delay exit code until we have updated the cache below
# delay exit code until we have updated the cache below
spack
install
--no-check-signature
-y
-j
$SPACK_JOBS
--fresh
--test
root
&&
spack_install_ret
=
$?
||
spack_install_ret
=
$?
spack
install
--no-check-signature
-y
-j
$SPACK_JOBS
--fresh
--test
root
&&
spack_install_ret
=
$?
||
spack_install_ret
=
$?
# re-enable view
spack
env
view
enable
spack
env
view regenerate
# no need to update the local cache nor the remote cache if we don't want to update
# no need to update the local cache nor the remote cache if we don't want to update
if
[
-n
"
${
OCI_CACHE_PREFIX
}
"
]
&&
[
"
${
UPDATE_SPACK_OCI_CACHES
:-
false
}
"
=
"true"
]
;
then
if
[
-n
"
${
OCI_CACHE_PREFIX
}
"
]
&&
[
"
${
UPDATE_SPACK_OCI_CACHES
:-
false
}
"
=
"true"
]
;
then
# push previously missing (but now installed) packages to the local cache
# push previously missing (but now installed) packages to the local cache
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment