Skip to content
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

CI: improve script utils #2323

Merged

Conversation

SimeonEhrig
Copy link
Member

fix and improve loading utility function in CI bash scripts

  • create setup_utilities.sh script to bundle several CI tools in one script
  • call set command in each script -> before if script was executed instead source set -e was not active and the script did not exit, if a failure happened
  • install sudo instead use fake_sudo.sh script, because it is more robust -> if an environment variable was directly set before the sudo command, fake_sudo.sh could not handle this
  • move installation of agc-manager to extra script, that will be also install on GitHub Actions (was not installed before, therefore using agc-manager always returns false)
  • suppress bash trace output, if setup_utilities.sh is sourced because it does not provide a benefit but spam the job output

is ripped of PR #2315

@SimeonEhrig SimeonEhrig force-pushed the CIsetupUtilitiesScript branch from fc8c571 to ade41b7 Compare July 23, 2024 14:35
@SimeonEhrig SimeonEhrig marked this pull request as ready for review July 23, 2024 14:36
@SimeonEhrig SimeonEhrig added this to the 1.2.0 milestone Jul 23, 2024
@SimeonEhrig SimeonEhrig force-pushed the CIsetupUtilitiesScript branch from ade41b7 to b6d0ddb Compare July 24, 2024 07:12
fix and improve loading utility function in CI bash scripts
- create `setup_utilities.sh` script to bundle several CI tools in one script
- call `set` command in each script -> before if script was executed instead source `set -e` was not active and the script did not exit, if a failure happened
- install sudo instead use fake_sudo.sh script, because it is more robust -> if an environment variable was directly set before the sudo command, fake_sudo.sh could not handle this
- move installation of agc-manager to extra script, that will be also install on GitHub Actions (was not installed before, therefore using agc-manager always returns false)
- suppress bash trace output, if `setup_utilities.sh` is sourced because it does not provide a benefit but spam the job output
@SimeonEhrig SimeonEhrig force-pushed the CIsetupUtilitiesScript branch from b6d0ddb to 8ea7e38 Compare July 24, 2024 15:27
@psychocoderHPC psychocoderHPC merged commit 5323600 into alpaka-group:develop Jul 25, 2024
22 checks passed
psychocoderHPC added a commit to psychocoderHPC/alpaka that referenced this pull request Aug 6, 2024
With alpaka-group#2323 we broke the github pages CI job.

```
cd ${GITHUB_WORKSPACE}
./script/install_doxygen.sh
./script/setup_utilities/agc-manager.sh: line 3: ALPAKA_CI_OS_NAME: ALPAKA_CI_OS_NAME must be specified
```
@psychocoderHPC psychocoderHPC mentioned this pull request Aug 6, 2024
psychocoderHPC added a commit to psychocoderHPC/alpaka that referenced this pull request Aug 6, 2024
With alpaka-group#2323 we broke the github pages CI job.

```
cd ${GITHUB_WORKSPACE}
./script/install_doxygen.sh
./script/setup_utilities/agc-manager.sh: line 3: ALPAKA_CI_OS_NAME: ALPAKA_CI_OS_NAME must be specified
```
psychocoderHPC added a commit that referenced this pull request Aug 6, 2024
With #2323 we broke the github pages CI job.

```
cd ${GITHUB_WORKSPACE}
./script/install_doxygen.sh
./script/setup_utilities/agc-manager.sh: line 3: ALPAKA_CI_OS_NAME: ALPAKA_CI_OS_NAME must be specified
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants