Skip to content

fix: send HPC temp files to the shared disk (TMPDIR) in activate.sh - #46

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/hpc-keep-off-home
Nov 12, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/hpc-keep-off-home

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

On RAL, compute nodes keep $HOME and /tmp on 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 unset TMPDIR with a tmp/ next to it, so Python's tempfile, 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 empty JAX_COMPILATION_CACHE_DIR still disables the JAX cache. Laptop .venv users never reach this branch.

Part of PyAutoLabs/PyAutoFit#1767 (phase A).

Scripts Changed

  • activate.sh: fill-if-unset TMPDIR after the PYAUTO_HPC_CACHE block

Upstream PR

PyAutoLabs/PyAutoFit#1768 (independent: this file does not use the new API)

Test Plan

  • bash -n activate.sh
  • Sourced under env -i with a fake PYAUTO_HPC_BASE: TMPDIR = <base parent>/tmp (created), XDG_CACHE_HOME and JAX_COMPILATION_CACHE_DIR under .cache/; a preset TMPDIR=/keep and an empty JAX value are both kept
  • n/a Smoke tests: no workspace script changed, and smoke does not source this file

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

@Jammy2211
Jammy2211 merged commit 0a21f70 into main Nov 12, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/hpc-keep-off-home branch November 12, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant