Skip to content

Commit b5f6c04

Browse files
sbryngelsonclaude
andcommitted
Clean up stale dirs before creating source copies
Self-hosted runners don't clean workspaces between runs, so config directories from cancelled prior runs can persist. Add rm -rf before cp -al/rsync to prevent "same file" hardlink errors when copying into an existing directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d98e894 commit b5f6c04

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/scripts/run_frontier_all_benchmarks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ for cfg in "${configs[@]}"; do
3131
read -r version cluster device interface <<< "$cfg"
3232
dir="${version}-${cluster}-${device}-${interface}"
3333
echo "Creating source copy: $dir from $version/"
34+
rm -rf "$dir"
3435
cp -al "$version" "$dir" 2>/dev/null || cp -r "$version" "$dir"
3536
done
3637

.github/scripts/run_frontier_all_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ for cfg in "${configs[@]}"; do
3636
read -r cluster device interface <<< "$cfg"
3737
dir="test-${cluster}-${device}-${interface}"
3838
echo "Creating source copy: $dir"
39+
rm -rf "$dir"
3940
rsync -a --link-dest="$(pwd)" $excludes ./ "$dir/"
4041
done
4142

0 commit comments

Comments
 (0)