Skip to content

Commit

Permalink
Print mirror info for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbernede committed Jun 26, 2024
1 parent 5484cc7 commit 904f971
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ stages:
- clean

include:
- project: 'lc-templates/id_tokens'
file: 'id_tokens.yml'
- local: .gitlab/core-ci.yml
rules:
- if: $MY_ENV_NAME != null
Expand Down
4 changes: 3 additions & 1 deletion .gitlab/core-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ get-spack:
script:
- . ${MY_SPACK_PATH}/share/spack/setup-env.sh
- spack ${MY_SPACK_DEBUG} env activate --without-view spack-environments/${MY_ENV_NAME}
- spack mirror add --oci-username ${CI_REGISTRY_USER} --oci-password ${CI_REGISTRY_PASSWORD} buildcache-destination "oci://${CI_REGISTRY_IMAGE}"
- spack config blame mirrors
- spack mirror -v -d add --oci-username ${CI_REGISTRY_USER} --oci-password ${CI_REGISTRY_PASSWORD} buildcache-destination "oci://${CI_REGISTRY_IMAGE}"
- spack config blame mirrors
# - spack ${MY_SPACK_DEBUG} concretize || spack ${MY_SPACK_DEBUG} concretize
- spack ${MY_SPACK_DEBUG} --color=always
--config-scope "${CI_PROJECT_DIR}/.gitlab/spack"
Expand Down
6 changes: 6 additions & 0 deletions .gitlab/spack/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ ci:
tags: [ruby, shell]
script:
- spack ${MY_SPACK_DEBUG} env activate --without-view ${SPACK_CONCRETE_ENV_DIR}
- spack config blame mirrors
- spack mirror set --oci-username ${CI_REGISTRY_USER} --oci-password ${CI_REGISTRY_PASSWORD} buildcache-destination
- spack config blame mirrors
- spack ${MY_SPACK_DEBUG} ci rebuild
- match:
- 'target=ppc64le:'
build-job:
tags: [lassen, shell]
script:
- spack ${MY_SPACK_DEBUG} env activate --without-view ${SPACK_CONCRETE_ENV_DIR}
- spack config blame mirrors
- spack mirror set --oci-username ${CI_REGISTRY_USER} --oci-password ${CI_REGISTRY_PASSWORD} buildcache-destination
- spack config blame mirrors
- spack ${MY_SPACK_DEBUG} ci rebuild
match_behavior: first

Expand All @@ -43,7 +47,9 @@ ci:
- export SPACK_DISABLE_LOCAL_CONFIG=""
- export SPACK_USER_CACHE_PATH="${MY_SPACK_USER_CACHE}"
- spack --version
- spack config blame mirrors
- spack mirror add --oci-username ${CI_REGISTRY_USER} --oci-password ${CI_REGISTRY_PASSWORD} buildcache-destination oci://${CI_REGISTRY_IMAGE}
- spack config blame mirrors
- noop-job:
tags: [oslic, shell]
- cleanup-job:
Expand Down
2 changes: 1 addition & 1 deletion scripts/get-spack
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ else
git branch -D ${MY_SPACK_BRANCH} || true
git fetch --depth 1 ${MY_SPACK_REPO} ${MY_SPACK_BRANCH}:${MY_SPACK_BRANCH}
git checkout ${MY_SPACK_BRANCH}
git tag ${MY_PIPELINE_ID}
git tag ${CI_PIPELINE_ID}
git branch -D temp
cd -
fi
Expand Down

0 comments on commit 904f971

Please sign in to comment.