Skip to content

Commit 68592d7

Browse files
sbryngelsonclaude
andcommitted
ci: clean build dir before case-opt pre-build; drop retry
Stale build artifacts from a previous job with a different compiler (e.g. gfortran CPU build followed by nvfortran GPU case-opt build) cause linker failures: undefined references to _gfortran_* symbols. Add rm -rf build at the start of prebuild-case-optimization.sh so every pre-build starts on a clean slate regardless of what the runner workspace contains. This fixes the liblapack.a cross-compiler link failure. Also remove the nick-fields/retry wrapper from the Frontier login-node pre-build step: one clean attempt is sufficient and retries were only masking the root cause. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fb6101d commit 68592d7

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/scripts/prebuild-case-optimization.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ case "$cluster" in
2121
*) echo "ERROR: Unknown cluster '$cluster'"; exit 1 ;;
2222
esac
2323

24+
rm -rf build
25+
2426
. ./mfc.sh load -c "$flag" -m g
2527
source .github/scripts/gpu-opts.sh
2628

.github/workflows/test.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,7 @@ jobs:
338338

339339
- name: Pre-Build (login node)
340340
if: matrix.cluster != 'phoenix'
341-
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
342-
with:
343-
max_attempts: 2
344-
retry_wait_seconds: 60
345-
timeout_minutes: 120
346-
command: bash .github/scripts/prebuild-case-optimization.sh ${{ matrix.cluster }} ${{ matrix.device }} ${{ matrix.interface }}
347-
on_retry_command: rm -rf build
341+
run: bash .github/scripts/prebuild-case-optimization.sh ${{ matrix.cluster }} ${{ matrix.device }} ${{ matrix.interface }}
348342

349343
- name: Run Case-Optimization Tests
350344
run: bash .github/workflows/${{ matrix.cluster }}/submit.sh .github/scripts/run_case_optimization.sh ${{ matrix.device }} ${{ matrix.interface }}

0 commit comments

Comments
 (0)