|
1 | | -# .github/workflows/benchmarks.yml |
2 | 1 | name: Validate-Benchmarks |
3 | 2 |
|
4 | 3 | on: |
|
22 | 21 | SKIP_BENCHMARKS: "0" |
23 | 22 |
|
24 | 23 | steps: |
25 | | - # ────────────────────────────────────────────────────────────────── |
26 | 24 | - name: Check out PR branch |
27 | 25 | if: ${{ env.SKIP_BENCHMARKS != '1' }} |
28 | 26 | uses: actions/checkout@v4 |
@@ -123,25 +121,35 @@ jobs: |
123 | 121 | echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV" |
124 | 122 | fi |
125 | 123 |
|
126 | | - - name: Run & validate benchmarks |
| 124 | + - name: Ensure artifact folder exists |
127 | 125 | 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 | +
|
138 | 146 | - name: Upload patch artifact (if prepared) |
139 | 147 | if: ${{ always() }} |
140 | 148 | uses: actions/upload-artifact@v4 |
141 | 149 | with: |
142 | 150 | 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 |
145 | 153 |
|
146 | 154 | # (6) — final check after run |
147 | 155 | - name: Check skip label after run |
|
0 commit comments