Setting CMS variables in slc5-cms
I'm exercising with cvmfs in GitHub actions and trying to run some OD test runs with plain slc5-cms with cvmfs mounted through the GitHub action. The cvmfs is nicely visible to the container, but I struggle for setting the CMS variables.
When starting the container, I get
::: Setting up CMS environment... [done]
so I assume
source /cvmfs/cms.cern.ch/cmsset_default.sh is done through entrypoint.sh
However, cmsrel and cmsenv aliases are not defined.
I can use the original scramv1 commands, instead.
If I do
source /cvmfs/cms.cern.ch/cmsset_default.sh again, the aliases are set but the cmsrel command still does not work:
### Check alias ### alias cmsenv='eval `scramv1 runtime -sh`' alias cmsrel='scramv1 project CMSSW' ### Check again cmsrel ### /mnt/vol/commands.sh: line 29: cmsrel: command not found
I can use the scramv1 variants and it works, but I do not understand why the aliases do not. Is it something particular for the lightweight containers?
- The workflow is in https://github.com/katilp/cvmfs-github-action/blob/main/.github/workflows/minimal.yml
- The commands passed to the container in https://github.com/katilp/cvmfs-github-action/blob/main/commands.sh
- The test output with various trials is in https://github.com/katilp/cvmfs-github-action/runs/1844954774?check_suite_focus=true