@@ -290,11 +290,11 @@ jobs:
290290 permissions :
291291 id-token : write
292292 contents : write
293- name : " Baseline: main"
293+ name : " Baseline: main(61a80a28) "
294294 env :
295295 # Isolate Go caches per job
296- GOCACHE : /tmp/go-build-candidate -${{ github.run_id }}
297- GOMODCACHE : /tmp/go-mod-candidate -${{ github.run_id }}
296+ GOCACHE : /tmp/go-build-baseline -${{ github.run_id }}
297+ GOMODCACHE : /tmp/go-mod-baseline -${{ github.run_id }}
298298 steps :
299299 - name : Install dependencies
300300 shell : bash
@@ -332,10 +332,6 @@ jobs:
332332 # Configure go.mod to use local FFI
333333 go mod edit -replace github.com/ava-labs/firewood-go-ethhash/ffi=./ffi
334334 go mod download
335-
336- # Stash changes for benchmark without this compare-results fails
337- git add go.mod go.sum || true
338- git stash push -m "temp stash for baseline benchmark" || echo "Nothing to stash"
339335 - name : Run Baseline Benchmark
340336 uses : ./.github/actions/c-chain-reexecution-benchmark
341337 with :
@@ -354,9 +350,8 @@ jobs:
354350 prometheus-username : ${{ secrets.PROMETHEUS_USERNAME || '' }}
355351 prometheus-password : ${{ secrets.PROMETHEUS_PASSWORD || '' }}
356352 - name : Restore go.mod changes
357- shell : nix develop --command bash -x {0}
358353 run : |
359- git stash pop || echo "Nothing to restore"
354+ git checkout go.mod go.sum || echo "Nothing to restore"
360355 - name : Upload baseline results
361356 uses : actions/upload-artifact@v4
362357 with :
@@ -418,10 +413,6 @@ jobs:
418413 # Configure go.mod to use local FFI
419414 go mod edit -replace github.com/ava-labs/firewood-go-ethhash/ffi=./ffi
420415 go mod download
421-
422- # Stash changes for benchmark
423- git add go.mod go.sum || true
424- git stash push -m "temp stash for candidate benchmark" || echo "Nothing to stash"
425416 - name : Run Candidate Benchmark
426417 uses : ./.github/actions/c-chain-reexecution-benchmark
427418 with :
@@ -440,9 +431,8 @@ jobs:
440431 prometheus-username : ${{ secrets.PROMETHEUS_USERNAME || '' }}
441432 prometheus-password : ${{ secrets.PROMETHEUS_PASSWORD || '' }}
442433 - name : Restore go.mod changes
443- shell : nix develop --command bash -x {0}
444434 run : |
445- git stash pop || echo "Nothing to restore"
435+ git checkout go.mod go.sum || echo "Nothing to restore"
446436 - name : Upload candidate results
447437 uses : actions/upload-artifact@v4
448438 with :
0 commit comments