Repository navigation
fix: send HPC temp files to the shared disk (TMPDIR) in activate.sh - #65
Merged
Merged
Conversation
Refs PyAutoLabs/PyAutoFit#1767 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On RAL, compute nodes keep
$HOMEand/tmpon a tiny local disk that does not hold the login node's/home. Tools writing caches and temp files there have been crashing nodes (RAL admin warning 2026-11-12, repeating 2026-09-25). Its HPC cache block already moves tool caches to.cache/next to the PyAuto base. It now also fills an unsetTMPDIRwith atmp/next to it, so Python'stempfile, JAX and numba stop writing to/tmp. A value already set (for example by the job or the RAL login shell) still wins, and an explicitly emptyJAX_COMPILATION_CACHE_DIRstill disables the JAX cache. Laptop.venvusers never reach this branch.Part of PyAutoLabs/PyAutoFit#1767 (phase A).
Scripts Changed
activate.sh: fill-if-unsetTMPDIRafter thePYAUTO_HPC_CACHEblockUpstream PR
PyAutoLabs/PyAutoFit#1768 (independent: this file does not use the new API)
Test Plan
bash -n activate.shenv -iwith a fakePYAUTO_HPC_BASE:TMPDIR=<base parent>/tmp(created),XDG_CACHE_HOMEandJAX_COMPILATION_CACHE_DIRunder.cache/; a presetTMPDIR=/keepand an empty JAX value are both keptGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code