Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b1a3635
added a function to obtain full path to a tool
truib Jan 24, 2023
27bc203
added function to determine IPv4 address
truib Jan 25, 2023
bfe6d36
various updates for bot/build.sh and eessi_container.sh
truib Feb 18, 2023
8372341
provide CVMFS_HTTP_PROXY if necessary
truib Feb 18, 2023
3f1aed9
add functions to derive hostname and port number from proxy URL
truib Jan 27, 2023
b7abfc6
add function to determine config sections
truib Jan 27, 2023
9b7b8a4
add parameter to list repositories, fix bugs
truib Feb 18, 2023
4a414f5
replace FILE with DIR in EESSI_REPOS_CFG_FILE_OVERRIDE
truib Feb 18, 2023
37abf4f
fix whitespace issues
truib Jan 29, 2023
d468a1a
include changes made to test PR for building with the bot
truib Feb 18, 2023
af658ee
fix issues in eessi_container.sh
truib Feb 3, 2023
eb66e1c
fix RUN_QUIET setting
truib Feb 4, 2023
1cb4674
improvements to resuming job environment
truib Feb 18, 2023
0c465da
address requested change
truib Feb 7, 2023
26ab98c
cleaning up leftovers after adding updates from NESSI
truib Feb 18, 2023
a44088e
moving cfg_files.sh to scripts dir
truib Feb 18, 2023
bbbad0d
improved handling of container cache + explicit pull of image
truib Feb 20, 2023
15ae58d
use VERBOSE instead of INFO
truib Feb 20, 2023
764e713
fix test for --list-repos; improve output for --list-repos
truib Feb 20, 2023
47cc1c6
implemented requested changes
truib Feb 21, 2023
6974e4b
add verbose messages on pulling/copying/reusing of container image
boegel Feb 24, 2023
54bdea5
don't require --verbose for info message on pulling/copying/reusing c…
boegel Feb 24, 2023
a4cea9a
add check to make sure that container image exists in tmpdir
boegel Feb 24, 2023
c975832
fix determining filename from container URL
boegel Feb 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/test_eessi_container_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
matrix:
SCRIPT_TEST:
- help
- listrepos_default
- listrepos_custom
- run
- shell
- container
Expand Down Expand Up @@ -39,6 +41,28 @@ jobs:
if [[ ${{matrix.SCRIPT_TEST}} == 'help' ]]; then
./eessi_container.sh --help

# test use of --list-repos without custom repos.cfg
elif [[ ${{matrix.SCRIPT_TEST}} == 'listrepos_default' ]]; then
outfile=out_listrepos.txt
./eessi_container.sh --verbose --list-repos | tee ${outfile}
grep "EESSI-pilot" ${outfile}

# test use of --list-repos with custom repos.cfg
elif [[ ${{matrix.SCRIPT_TEST}} == 'listrepos_custom' ]]; then
outfile=out_listrepos.txt
outfile2=out_listrepos_2.txt
mkdir -p ${PWD}/cfg
echo "[EESSI/20AB.CD]" > cfg/repos.cfg
echo "repo_version = 20AB.CD" >> cfg/repos.cfg
echo "[EESSI/20HT.TP]" >> cfg/repos.cfg
echo "repo_version = 20HT.TP" >> cfg/repos.cfg
./eessi_container.sh --verbose --list-repos | tee ${outfile}
grep "EESSI-pilot" ${outfile}

export EESSI_REPOS_CFG_DIR_OVERRIDE=${PWD}/cfg
./eessi_container.sh --verbose --list-repos | tee ${outfile2}
grep "[EESSI/2023.02]" ${outfile2}

# test use of --mode run
elif [[ ${{matrix.SCRIPT_TEST}} == 'run' ]]; then
outfile=out_run.txt
Expand Down Expand Up @@ -84,6 +108,9 @@ jobs:
tmpdir=$(grep "\-\-resume" ${outfile} | sed "s/.*--resume \([^']*\).*/\1/g")
rm -f ${outfile}

# make sure that container image exists
test -f ${tmpdir}/ghcr.io_eessi_build_node_debian11.sif || (echo "Container image not found in ${tmpdir}" >&2 && ls ${tmpdir} && exit 1)

./eessi_container.sh --verbose --resume ${tmpdir} --mode shell <<< "${test_cmd}" > ${outfile}
cat ${outfile}
grep "Resuming from previous run using temporary storage at ${tmpdir}" ${outfile}
Expand Down
Loading