Skip to content

fix: keep HPC caches and temp files off $HOME and /tmp in activate.sh - #40

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 branch (PYAUTO_HPC_BASE set) moved nothing off $HOME. It now gets the same cache block as the other assistants (pip, matplotlib, numba, CUDA/Triton, astropy, JAX → .cache/ next to the PyAuto base) plus TMPDIR → 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: full cache + TMPDIR block in the PYAUTO_HPC_BASE branch

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 7031876 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