[GCP] Garbage collection #725
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark Go (PR) | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
benchmark: | |
name: Performance regression check | |
runs-on: ubuntu-latest | |
permissions: | |
# allow posting comments to pull request | |
pull-requests: write | |
steps: | |
- name: Fetch Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Install Go | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
with: | |
go-version-file: go.mod | |
- name: Run benchmark | |
run: set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 # v1.20.4 | |
with: | |
tool: 'go' | |
output-file-path: output.txt | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: false | |
alert-threshold: "150%" | |
fail-on-alert: false # Don't make red crosses on the PR, it's almost certainly a false positive currently | |
comment-on-alert: true # notify on PR if alert triggers | |
summary-always: true # always comment on PRs to leave job summary |