Skip to content

fix: treat Slurm's default TMPDIR=/tmp as unset in activate.sh - #64

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/hpc-tmpdir-slurm-default
Nov 12, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/hpc-tmpdir-slurm-default

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the TMPDIR line added in PyAutoLabs/PyAutoFit#1767. Slurm sets TMPDIR=/tmp itself when the job environment has none (RAL probe job 415134), so ${TMPDIR:-...} never fired in jobs submitted with a restricted --export. The HPC branch of activate.sh now replaces a TMPDIR that is unset, empty or exactly /tmp with tmp/ next to the cache; any other value still wins.

Part of PyAutoLabs/PyAutoFit#1769.

Scripts Changed

  • activate.sh: TMPDIR block treats /tmp as unset

Upstream PR

PyAutoLabs/PyAutoFit#1771 (independent: this file does not use the library change)

Test Plan

  • bash -n activate.sh
  • Sourced under env -i + set -u with a fake PYAUTO_HPC_BASE: unset → shared tmp/, TMPDIR=/tmp → shared tmp/, TMPDIR=/scratch → kept
  • n/a Smoke tests: no workspace script changed, and smoke does not source this file

Heart RED development override

Authorized live by the human on 2026-11-12 for this task (PyAutoFit#1769): "Override, ship + merge". That covers opening these PRs and merging them in the same turn once every required check is green. Heart remains RED for release purposes; this branch does not claim to fix Heart.

Exact RED reasons at ship time:

  • PyAutoNerves: 2 commit(s) behind origin
  • PyAutoFit: 2 commit(s) behind origin
  • PyAutoLens: on branch feature/mge-feature-review (not main)
  • PyAutoLens: 2 uncommitted source change(s)
  • workspace validation not passing (2 failed, cloud#43034177136: autogalaxy_test scripts/misc/zero_contour_compat_jax.py, autolens_test scripts/misc/critical_curves_zero_contour_jit_grad.py)
  • manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml
  • PyAutoArray: open PR 8d old
  • release validation incomplete: no rehearsal for current source

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

Refs PyAutoLabs/PyAutoFit#1769

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 96eb8b0 into main Nov 12, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/hpc-tmpdir-slurm-default branch November 12, 2026 11:10
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