-
Notifications
You must be signed in to change notification settings - Fork 15
fix script to init EESSI for csh shells, fixes also the CI for csh and speeds up CI
#102
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
Conversation
| - name: Check out software-layer repository | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
|
||
| - name: Avoid processing man-db trigger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, I'm going to steal this for the EESSI GitHub Action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the slow-down caused by the sudo apt install zsh ksh fish tcsh below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a general thing, slow is relative, it typically 20-30 second for updating man-db, which we will never use so might as well disable it.
MaKaNu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine from my side. Congrats for taming this csh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trz42 it seems you are way more talented than me, to handle csh error message.
After all the "Illegal variable name." and "then: then/endif not found" error messages, I am happy to see this script finally working correctly.
ocaisa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, now needs to be deployed...
|
bot: build repo:eessi.io-2025.06-software instance:eessi-bot-mc-aws for:arch=x86_64/amd/zen2 |
|
New job on instance
|
|
New job on instance
|
|
Deployment PR merged |
The init script for
csh, e.g.,/cvmfs/software.eessi.io/versions/2023.06/init/lmod/csh, wasn't working properly (some syntax issues with oneliners forif-then-endifconstructs as well as slightly off syntax for running commands (cshuses backticks and does not support$(...)syntax).CI for
cshwas fixed, mostly by adjusting to different syntax required and working around that - in non-interactive shells - aliases (such asmodule) aren't retained for subsequent commands after sourcing the init script. Some polishing was applied to the test script (test_init_scripts.sh) as well (mostly replacing tabs with spaces).Finally, installation of CernVM-FS (and other packages) was sped up by preventing the processing of the
man-dbtrigger. Unless we needmanpages in CI this should be fine. Note, only for the workflowtests_init_module.yml.