Skip to content

smoke-test recipes: one-shot RESCHEDULE_BEGIN, sync-style HF token lookup - #228

Merged
OwenPriceSkelly merged 1 commit into
mainfrom
smoke-test-reschedule-hf-token
Sep 11, 2026
Merged

OwenPriceSkelly merged 1 commit into
mainfrom
smoke-test-reschedule-hf-token

Conversation

@OwenPriceSkelly

Copy link
Copy Markdown
Member

Ports two fixes from the deployed Delta/Perlmutter .sbatch copies (patched 2026-09-11) into the generic recipes in scripts/.

1. RESCHEDULE_BEGIN rode down the chain (SLURM)

The in-job resubmit was a bare sbatch --begin="$RESCHEDULE_BEGIN" --parsable "$SELF_PATH". sbatch defaults to --export=ALL, so the test kickoff the header and docs recommend (RESCHEDULE_BEGIN=now+3minutes sbatch ...) propagated to generation 2, which then rescheduled 3 minutes ahead, and so on forever.

Fix: env -u RESCHEDULE_BEGIN sbatch ... so the next generation recomputes from CADENCE_DAYS/RUN_HOUR. Those two knobs still persist via --export=ALL, as intended.

The PBS recipe already passes only SELF_PATH/CLUSTER via qsub -v, so RESCHEDULE_AT never propagated there. Left alone.

2. HF token lookup (both recipes)

Both recipes read only ~/.cache/huggingface/token. They now match the sync scripts' order: an existing HF_TOKEN env var wins; otherwise the first readable of $HF_TOKEN_FILE, ~/.hf_token, ~/.cache/huggingface/token (whitespace stripped with tr -d '[:space:]'). HUGGING_FACE_HUB_TOKEN is exported alongside; a warning is printed if nothing is found.

Docs

docs/nightly-smoke-testing.md: the testing section now says the override is one-shot and why (SLURM env -u vs PBS qsub -v semantics); the knobs table gains HF_TOKEN/HF_TOKEN_FILE with a short paragraph on the lookup order.

Verification

bash -n passes on both recipes. Behavioural change already exercised by the patched Delta/Perlmutter copies.

🤖 Generated with Claude Code

…okup

Port two fixes from the deployed Delta/Perlmutter copies (patched 2026-09-11)
into the generic SLURM recipe, plus the token fix into the PBS recipe.

1. RESCHEDULE_BEGIN propagation (SLURM only). The in-job resubmit used bare
   `sbatch --begin=...`, which defaults to --export=ALL, so the documented
   test kickoff `RESCHEDULE_BEGIN=now+3minutes sbatch ...` rode down the
   chain and made every generation reschedule 3 minutes ahead forever.
   Resubmit with `env -u RESCHEDULE_BEGIN` so the next generation recomputes
   from CADENCE_DAYS/RUN_HOUR, which still persist. The PBS recipe already
   passes only SELF_PATH/CLUSTER via `qsub -v`, so it is unaffected.

2. HF token lookup (both recipes). Only ~/.cache/huggingface/token was read.
   Match the sync scripts: respect an existing HF_TOKEN, else the first
   readable of HF_TOKEN_FILE, ~/.hf_token, ~/.cache/huggingface/token
   (whitespace stripped); export HUGGING_FACE_HUB_TOKEN too; warn if none.

Docs: note the override is one-shot and document the token knobs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@OwenPriceSkelly
OwenPriceSkelly merged commit e37f0c1 into main Sep 11, 2026
5 checks passed
@OwenPriceSkelly
OwenPriceSkelly deleted the smoke-test-reschedule-hf-token branch September 11, 2026 16:48
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