From 247c4ddfdeeaf6d251333cf0c18fc1c15e48c664 Mon Sep 17 00:00:00 2001 From: "Adrien M. Bernede" Date: Tue, 17 Aug 2021 18:00:47 -0700 Subject: [PATCH 1/2] This is a ugly hack to fix permissions --- .gitlab-ci.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f3969dd..e4c9478 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,11 +18,11 @@ variables: # We only do one generation per stage because we found conflicts otherwise #[one-generate-per-stage--] stages: - - get-spack + - first - generate-quartz - generate-lassen - build - - rm-spack + - last #[--one-generate-per-stage] .on-quartz: @@ -34,7 +34,7 @@ stages: #[get-spack--] get-spack: extends: [.on-quartz] - stage: get-spack + stage: first script: - scripts/get-spack #[--get-spack] @@ -42,10 +42,20 @@ get-spack: #[rm-spack--] rm-spack: extends: [.on-quartz] - stage: rm-spack + stage: last script: - scripts/remove-spack #[--rm-spack] +# Ugly hack to allow someone else to write in the install dir. +# The issue is that .spack-db/index.json and ohers have permissions restricted +# to the owner. +fix-permissions: + extends: [.on-quartz] + stage: last + script: + - chmod -R g+rwX /usr/workspace/radiuss/install/radiuss-stack/spack_path_placeholder/spack_path_placeholder/spack_path_placeholder/spack_path_pla/spack-db + when: always + include: - .gitlab/generate.yml From a4041750ae0f52e19bc351cd5b6e39df98d17e07 Mon Sep 17 00:00:00 2001 From: "Adrien M. Bernede" Date: Wed, 18 Aug 2021 10:05:02 -0700 Subject: [PATCH 2/2] Fix --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4c9478..ce80492 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,7 +54,7 @@ fix-permissions: extends: [.on-quartz] stage: last script: - - chmod -R g+rwX /usr/workspace/radiuss/install/radiuss-stack/spack_path_placeholder/spack_path_placeholder/spack_path_placeholder/spack_path_pla/spack-db + - chmod -R g+rwX /usr/workspace/radiuss/install/radiuss-stack/spack_path_placeholder/spack_path_placeholder/spack_path_placeholder/spack_path_pla/.spack-db when: always include: