Skip to content

Commit 3bb6621

Browse files
sbryngelsonclaude
andcommitted
Address review feedback: guard GITHUB_WORKSPACE, fix comments
- Use ${GITHUB_WORKSPACE:?} to fail fast if variable is unset - Fix ntasks-per-node comment to say "tasks (MPI ranks)" not "cores" - Fix monitor script comment: polling-based, not non-blocking Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a8882c5 commit 3bb6621

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/scripts/monitor_slurm_job.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ squeue_failures=0
6161
last_heartbeat=$(date +%s)
6262

6363
while true; do
64-
# Try to read from tail output (non-blocking via timeout)
64+
# Try to read from tail output with a 1s timeout (polling-based)
6565
# Read multiple lines if available to avoid falling behind
6666
lines_read=0
6767
while IFS= read -r -t 1 line <&3 2>/dev/null; do

.github/workflows/phoenix/submit-bench.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sbatch_cpu_opts="\
2121

2222
sbatch_gpu_opts="\
2323
#SBATCH --gres=gpu:H200:2
24-
#SBATCH --ntasks-per-node=8 # Number of cores per node required\
24+
#SBATCH --ntasks-per-node=8 # Number of tasks (MPI ranks) per node\
2525
"
2626

2727
if [ "$2" = "cpu" ]; then

.github/workflows/phoenix/submit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sbatch_cpu_opts="\
2424

2525
sbatch_gpu_opts="\
2626
#SBATCH --gres=gpu:H200:2
27-
#SBATCH --ntasks-per-node=8 # Number of cores per node required\
27+
#SBATCH --ntasks-per-node=8 # Number of tasks (MPI ranks) per node\
2828
"
2929

3030
if [ "$2" = "cpu" ]; then

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
201201
steps:
202202
- name: Clean workspace
203-
run: rm -rf "$GITHUB_WORKSPACE"/* "$GITHUB_WORKSPACE"/.[!.]* 2>/dev/null || true
203+
run: rm -rf "${GITHUB_WORKSPACE:?}"/* "${GITHUB_WORKSPACE:?}"/.[!.]* 2>/dev/null || true
204204

205205
- name: Clone
206206
uses: actions/checkout@v4

0 commit comments

Comments
 (0)