Repository navigation
fix(campaign): treat Slurm's default TMPDIR=/tmp as unset - #1771
Merged
Merged
Conversation
…ot scripts Slurm sets TMPDIR to its TmpFS (/tmp) when the submit environment has none, so the fill-if-unset TMPDIR never fired (RAL probe job 415134). Refs #1769 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 12, 2026
Merged
Merged
Merged
Merged
Merged
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
Follow-up to #1768. A live probe on a RAL compute node (job 415134) showed Slurm sets
TMPDIR=/tmpitself when the submit environment has none, so the${TMPDIR:-...}emitted for a campaign'scache_root:never fired. The generated script now replaces aTMPDIRthat is unset, empty or exactly/tmp; any other value still wins.Closes #1769 (library leg).
API Changes
cache_root:set: theTMPDIRline becomesif [ -z "${TMPDIR:-}" ] || [ "$TMPDIR" = /tmp ]; then export TMPDIR="<cache_root>/tmp"; fi. Other cache variables unchanged. No change withoutcache_root:.See full details below.
Test Plan
pytest test_autofit/campaign: 158 pass; the bash-run test now also coversTMPDIR=/tmp→ replaced (unset → replaced,/scratch→ kept)pytest test_autofit/: 4288 passed, 2 skipped, 1 xfailedFull API Changes (for automation & release notes)
Changed
autofit.campaign.scheduler.slurm._cache_exports:TMPDIRtreated as unset when it equals/tmpMigration
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:
Branch gates passed: full PyAutoFit suite above;
bash -n+ three-caseenv -isource test of each activate.sh.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code