-
Notifications
You must be signed in to change notification settings - Fork 81
flesh out script for checking on missing installations + fix it + test it in CI #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d3ceed5
flesh out script for checking on missing installations + test it in CI
boegel cc15fd5
fix issues in CI workflow raised by OSSF scorecard
boegel a7909ee
add license header + reuse $TMPDIR if set + make sure that $EESSI_PIL…
boegel 5c94074
rename $TMPDIR to $LOCAL_TMPDIR in check_missing_installations.sh, si…
boegel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions | ||
| name: Tests relying on having EESSI pilot repo mounted | ||
| on: [push, pull_request, workflow_dispatch] | ||
| permissions: | ||
| contents: read # to fetch code (actions/checkout) | ||
| jobs: | ||
| eessi_pilot_repo: | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| EESSI_VERSION: | ||
| - 2021.12 | ||
| EESSI_SOFTWARE_SUBDIR: | ||
| - aarch64/generic | ||
| - aarch64/graviton2 | ||
| - aarch64/graviton3 | ||
| - x86_64/amd/zen2 | ||
| - x86_64/amd/zen3 | ||
| - x86_64/intel/haswell | ||
| - x86_64/intel/skylake_avx512 | ||
| - x86_64/generic | ||
| steps: | ||
| - name: Check out software-layer repository | ||
| uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 | ||
|
|
||
| - name: Mount EESSI CernVM-FS pilot repository | ||
| uses: cvmfs-contrib/github-action-cvmfs@d4641d0d591c9a5c3be23835ced2fb648b44c04b # v3.1 | ||
| with: | ||
| cvmfs_config_package: https://github.com/EESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi_latest_all.deb | ||
| cvmfs_http_proxy: DIRECT | ||
| cvmfs_repositories: pilot.eessi-hpc.org | ||
|
|
||
| - name: Test check_missing_installations.sh script | ||
| run: | | ||
| source /cvmfs/pilot.eessi-hpc.org/versions/${{matrix.EESSI_VERSION}}/init/bash | ||
| module load EasyBuild | ||
| eb --version | ||
| export EESSI_PREFIX=/cvmfs/pilot.eessi-hpc.org/versions/${{matrix.EESSI_VERSION}} | ||
| export EESSI_OS_TYPE=linux | ||
| export EESSI_SOFTWARE_SUBDIR=${{matrix.EESSI_SOFTWARE_SUBDIR}} | ||
| env | grep ^EESSI | sort | ||
| ./check_missing_installations.sh | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #!/bin/bash | ||
| # | ||
|
boegel marked this conversation as resolved.
|
||
| # Script to check for missing installations in EESSI pilot software stack (version 2021.12) | ||
| # | ||
| # author: Kenneth Hoste (@boegel) | ||
| # | ||
| # license: GPLv2 | ||
| # | ||
|
|
||
| TOPDIR=$(dirname $(realpath $0)) | ||
|
|
||
| if [ -z ${EESSI_PILOT_VERSION} ]; then | ||
| echo "ERROR: \${EESSI_PILOT_VERSION} must be set to run $0!" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| LOCAL_TMPDIR=$(mktemp -d) | ||
|
|
||
| source $TOPDIR/utils.sh | ||
|
|
||
| source $TOPDIR/configure_easybuild | ||
|
|
||
| echo ">> Checking for missing installations in ${EASYBUILD_INSTALLPATH}..." | ||
| ok_msg="No missing installations, party time!" | ||
| fail_msg="On no, some installations are still missing, how did that happen?!" | ||
| eb_missing_out=$LOCAL_TMPDIR/eb_missing.out | ||
| # we need to use --from-pr to pull in some easyconfigs that are not available in EasyBuild version being used | ||
| # PR #16531: Nextflow-22.10.1.eb | ||
| ${EB:-eb} --from-pr 16531 --easystack eessi-${EESSI_PILOT_VERSION}.yml --experimental --missing | tee ${eb_missing_out} | ||
|
boegel marked this conversation as resolved.
|
||
| grep "No missing modules" ${eb_missing_out} > /dev/null | ||
| check_exit_code $? "${ok_msg}" "${fail_msg}" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.