DUNE-DAQ / daq-release

Scripts and configuration files for the DUNE DAQ release
https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-release/
2 stars 0 forks source link

Reduce length of release paths #337

Closed jcfreeman2 closed 7 months ago

jcfreeman2 commented 7 months ago

For a long time, we've been limited in what names we can give our releases because Spack can't handle path lengths beyond 127 characters. In fact, we're bumping right against the limit - the base release in our candidate releases has a name like rc-v4.3.0-2 rather than rc-dunedaq-v4.3.0-2 because of this limit. Similarly, in this GitHub Action for the purposes of demonstration I tried making a nightly release with the name NABABCDEFG24-01-16 and it didn't work - meaning a nightly release with a name such as NAOFFLINE24-01-16 also wouldn't work.

So how should we reduce the length? Let's look at the immediate parent directory of last night's far detector nightlies:

/cvmfs/dunedaq-development.opensciencegrid.org/nightly/NFD24-01-16/spack-0.20.0-gcc-12.1.0/spack-0.20.0/opt/spack/linux-scientific7-x86_64/gcc-12.1.0/

You can see that both spack-0.20.0 and gcc-12.1.0 appear twice in the path. So one option would be to simply drop the spack-0.20.0-gcc-12.1.0 subdirectory, and we'd have:

/cvmfs/dunedaq-development.opensciencegrid.org/nightly/NFD24-01-16/spack-0.20.0/opt/spack/linux-scientific7-x86_64/gcc-12.1.0/

another would be to simply rename spack-0.20.0-gcc-12.1.0 to gcc-12.1.0:

/cvmfs/dunedaq-development.opensciencegrid.org/nightly/NFD24-01-16/gcc-12.1.0/spack-0.20.0/opt/spack/linux-scientific7-x86_64/gcc-12.1.0/

These seem to be the two reasonable choices, in fact.