Repository navigation
fix: treat Slurm's default TMPDIR=/tmp as unset in activate.sh - #41
Merged
Merged
Conversation
Refs PyAutoLabs/PyAutoFit#1769 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
Follow-up to the TMPDIR line added in PyAutoLabs/PyAutoFit#1767. Slurm sets
TMPDIR=/tmpitself when the job environment has none (RAL probe job 415134), so${TMPDIR:-...}never fired in jobs submitted with a restricted--export. The HPC branch ofactivate.shnow replaces aTMPDIRthat is unset, empty or exactly/tmpwithtmp/next to the cache; any other value still wins.Part of PyAutoLabs/PyAutoFit#1769.
Scripts Changed
activate.sh:TMPDIRblock treats/tmpas unsetUpstream PR
PyAutoLabs/PyAutoFit#1771 (independent: this file does not use the library change)
Test Plan
bash -n activate.shenv -i+set -uwith a fakePYAUTO_HPC_BASE: unset → sharedtmp/,TMPDIR=/tmp→ sharedtmp/,TMPDIR=/scratch→ keptHeart 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:
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code