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
nested temporary directories for easystack items #4291
Comments
Every item in the easystack file calls set_up_configuration, which will set the tmpdir (via the option parser?), and I guess this nesting then happens on lines 1878-1882 of https://github.com/easybuilders/easybuild-framework/blob/develop/easybuild/tools/options.py#L1878. I'm not entirely sure yet why it happens, as the environment variables should be reset for every easystack item. However, inserting an |
It only happens when |
The nested directory gets created here: https://github.com/easybuilders/easybuild-framework/blob/develop/easybuild/tools/options.py#L1860. I suspect it has to do with setting |
Reproducer based on what more or less happens in the actual code:
This results in:
Uncommenting the
Alternatively, the |
…h each easystack item (fixes easybuilders#4291)
We use easystack files for our software stack, and I've run into weird issues several times where a build would fail due to what looked like an issue with the temporary directory. In all cases, the temporary directory looked like:
/tmp/eb_something/eb_something/eb_something/....etc...
and sometimes the error clearly stated that this path got too long.
It seems that each easystack item sets its own temporary directory as a subdirectory of the previous one, leading to this nested structure. While looking into it a bit more, I found that it's probably being caused by this call to
set_up_configuration
, which sets up theeb_tmpdir
:https://github.com/easybuilders/easybuild-framework/blob/develop/easybuild/main.py#L277
Adding a
print
there indeed shows the issue with a simple easystack:The text was updated successfully, but these errors were encountered: