Skip to content

Commit

Permalink
Add a few debugging messages for the CI (#682)
Browse files Browse the repository at this point in the history
* Add a few debugging messages for the CI

* Fix yaml merging

---------

Co-authored-by: jmcarcell <[email protected]>
  • Loading branch information
jmcarcell and jmcarcell authored Dec 5, 2024
1 parent c555d49 commit 46c4edf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/concretize-current-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,26 @@ jobs:
elif [ "${{ matrix.build_type }}" = "nightly" ]; then
env=key4hep-nightly-opt
pip3 install pyyaml
python3 /key4hep-spack/scripts/fetch_nightly_versions.py --path /key4hep-spack/environments/key4hep-common/packages.yaml --extra-path /key4hep-spack/environments/key4hep-nightly-opt/packages.yaml ""
python3 /key4hep-spack/scripts/fetch_nightly_versions.py --path /key4hep-spack/environments/key4hep-common/packages.yaml --extra-path /key4hep-spack/environments/key4hep-common-opt/packages.yaml ""
else
echo "Unknown build type"
exit 1
fi
cd /key4hep-spack/environments/${env}
spack env activate .
spack config add "upstreams:nightly-from-scratch:install_tree: $rel"
echo "========="
echo "spack.yaml"
cat spack.yaml
echo "========="
echo "packages.yaml"
cat packages.yaml
echo "========="
echo "key4hep-common/packages.yaml"
cat /key4hep-spack/environments/key4hep-common/packages.yaml
echo "========="
spack concretize >> conc.txt
cat conc.txt
echo "========================================="
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/concretize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,24 @@ jobs:
elif [ "${{ matrix.build_type }}" = "nightly" ]; then
env=key4hep-nightly-opt
pip3 install pyyaml
python3 /key4hep-spack/scripts/fetch_nightly_versions.py --path /key4hep-spack/environments/key4hep-common/packages.yaml --extra-path /key4hep-spack/environments/key4hep-nightly-opt/packages.yaml ""
python3 /key4hep-spack/scripts/fetch_nightly_versions.py --path /key4hep-spack/environments/key4hep-common/packages.yaml --extra-path /key4hep-spack/environments/key4hep-common-opt/packages.yaml ""
else
echo "Unknown build type"
exit 1
fi
cd /key4hep-spack/environments/${env}
echo "========="
echo "spack.yaml"
cat spack.yaml
echo "========="
echo "packages.yaml"
cat packages.yaml
echo "========="
echo "key4hep-common/packages.yaml"
cat /key4hep-spack/environments/key4hep-common/packages.yaml
echo "========="
spack env activate .
spack concretize
Expand Down

0 comments on commit 46c4edf

Please sign in to comment.