Skip to content

docs: March 2026 w11 documentation update #575

docs: March 2026 w11 documentation update

docs: March 2026 w11 documentation update #575

Workflow file for this run

name: Benchmarks
# Run benchmarks on pull requests to catch accidental breakage, and on push
# to main/release to keep a warm build cache. Without a push trigger,
# test-bench never runs on main and every new PR starts from a cold cache,
# because GitHub's cache fallback chain only reaches the base branch.
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
push:
# Cache warming only — benchmarks are not re-run on push to main/release.
# GitHub's cache isolation means PR and merge-queue runs can only fall back
# to the base-branch cache. Without this trigger, test-bench never runs on
# main so every new PR starts cold. The push run compiles test binaries
# (warming GOCACHE and GOMODCACHE) but does not execute them; correctness
# is already guaranteed by the merge queue before the commit lands here.
branches:
- main
- release/**
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
benchmarks:
concurrency:
group: ${{ format('{0}-{1}', github.workflow, github.ref) }}
cancel-in-progress: true
runs-on: ubuntu-24.04
steps:
- name: Checkout custom actions
uses: actions/checkout@v6
with:
fetch-depth: 1
# No submodules, LFS, or space cleanup needed: benchmark functions
# only use in-memory or local testdata/ files. Submodules
# (legacy-tests, execution-spec-tests) and LFS fixtures are only
# read by regular Test* functions.
- uses: ./.github/actions/setup-erigon
id: erigon
- name: Run benchmarks
if: github.event_name == 'pull_request'
run: make test-bench
- name: Build test binaries (cache warming)
if: github.event_name != 'pull_request'
run: go test -run=^$ ./...
- uses: ./.github/actions/cleanup-erigon
if: always()