Skip to content

Commit 44470bc

Browse files
committed
test
1 parent 34794e5 commit 44470bc

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

.github/workflows/run-benchmarks.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# .github/workflows/benchmarks.yml
21
name: Validate-Benchmarks
32

43
on:
@@ -22,7 +21,6 @@ jobs:
2221
SKIP_BENCHMARKS: "0"
2322

2423
steps:
25-
# ──────────────────────────────────────────────────────────────────
2624
- name: Check out PR branch
2725
if: ${{ env.SKIP_BENCHMARKS != '1' }}
2826
uses: actions/checkout@v4
@@ -123,25 +121,35 @@ jobs:
123121
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV"
124122
fi
125123
126-
- name: Run & validate benchmarks
124+
- name: Ensure artifact folder exists
127125
if: ${{ env.SKIP_BENCHMARKS != '1' }}
128-
uses: nick-fields/retry@v3
129-
with:
130-
timeout_minutes: 180
131-
max_attempts: 1
132-
retry_wait_seconds: 60
133-
command: |
134-
chmod +x scripts/benchmark_action.sh
135-
scripts/benchmark_action.sh
136-
137-
# Persist the prepared patch even if the previous step failed.
126+
run: mkdir -p .bench_patch
127+
128+
- name: Run & validate benchmarks (script controls retries)
129+
if: ${{ env.SKIP_BENCHMARKS != '1' }}
130+
timeout-minutes: 180
131+
run: |
132+
chmod +x scripts/benchmark_action.sh
133+
scripts/benchmark_action.sh
134+
135+
- name: List artifact contents (for debugging)
136+
if: ${{ always() }}
137+
run: |
138+
echo "Workspace: $GITHUB_WORKSPACE"
139+
if [ -d ".bench_patch" ]; then
140+
echo "== .bench_patch =="
141+
ls -la .bench_patch || true
142+
else
143+
echo ".bench_patch directory is missing"
144+
fi
145+
138146
- name: Upload patch artifact (if prepared)
139147
if: ${{ always() }}
140148
uses: actions/upload-artifact@v4
141149
with:
142150
name: bench-patch
143-
path: ${{ github.workspace }}/.bench_patch/**
144-
if-no-files-found: ignore
151+
path: ./.bench_patch
152+
# Omit if-no-files-found so we fail loudly if missing unexpectedly
145153

146154
# (6) — final check after run
147155
- name: Check skip label after run

0 commit comments

Comments
 (0)