Skip to content

Conversation

@trz42
Copy link
Collaborator

@trz42 trz42 commented Feb 22, 2023

First version of the script to be called by the EESSI bot. Works with the updated script eessi_container.sh (see #232).

First version of bot/build.sh

  • .json & yq have been replaced by a .cfg (.ini file format) & scripts/cfg_files.sh
    • requires tool yq to parse .json files containing information from the bot to the bot/build.sh
    • yq is required where the bot jobs run (since it is a binary versions for x86_64 and aarch64 have to be installed)
    • while yq seems to be a nice tool, we may not want to depend on it and also not want to deal with different binaries; a possible change might require to not handover information in a .json file but rather a simpler .ini or .cfg file and then use parsing functions provided by scripts/cfg_files.sh
  • also adds passing --generic to install_software_layer.sh

Updates to eessi_container.sh

  • PR also contains small update to eessi_container.sh itself (improving output messages concerning --resume information)
  • adds support for a command line argument flag terminator --, e.g., can be called
    ./eessi_container.sh ARGS_TO_eessi_container.sh -- other_script_to_run_in_container.sh ARGS_TO_other_script
    

Bot-side code is added through EESSI/eessi-bot-software-layer#155

truib and others added 23 commits January 24, 2023 21:59
fixed bugs

- determining IP address for proxy host was wrong
- handling of positional parameters for executing commands with arguments was wrong
- added handling of HTTPS_PROXY
- moved CONTAINER setting from site_config to repository section (different
  repositories could require different containers)
- added handling of CPU_TARGET and EESSI_SOFTWARE_SUBDIR_OVERRIDE
- updated TODOs
- added setting of EESSI_REPOS_CFG_FILE_OVERRIDE
- bug fixes
…/software-layer into enhancement/bot-build-with-swl-216
…ware-layer into enhancement/bot-build-with-eessi-container
cherry-picked via 23e773c
Note only applied part for bot/build.sh
cherry-picked via bfb1b29
Note, only applied part for bot/build.sh
@boegel
Copy link
Contributor

boegel commented Feb 24, 2023

@trz42 Please sync with main now that #232 is merged...

@trz42 trz42 changed the title bot/build.sh using eessi_container.sh bot/build.sh using eessi_container.sh Mar 7, 2023
Copy link
Contributor

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel
Copy link
Contributor

boegel commented Mar 17, 2023

Merging this, since it's ready, and so is EESSI/eessi-bot-software-layer#155

@boegel boegel merged commit 25943f5 into EESSI:main Mar 17, 2023
@trz42 trz42 deleted the enhancement/bot-build-with-eessi-container branch March 18, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants