You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
86bf0842e0
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/cache](https://redirect.github.com/actions/cache) | action | major | `v4.3.0` -> `v5.0.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>actions/cache (actions/cache)</summary> ### [`v5.0.0`](https://redirect.github.com/actions/cache/compare/v4.3.0...v5.0.0) [Compare Source](https://redirect.github.com/actions/cache/compare/v4.3.0...v5.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/open-telemetry/opentelemetry-go). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi40Mi4yIiwidXBkYXRlZEluVmVyIjoiNDIuNDIuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiU2tpcCBDaGFuZ2Vsb2ciLCJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
56 lines
2.0 KiB
YAML
56 lines
2.0 KiB
YAML
name: Benchmark
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
# Declare default permissions as read only.
|
|
permissions: read-all
|
|
|
|
env:
|
|
DEFAULT_GO_VERSION: "~1.25.0"
|
|
jobs:
|
|
benchmark:
|
|
permissions:
|
|
contents: write # required for pushing to gh-pages branch
|
|
name: Benchmarks
|
|
runs-on: oracle-bare-metal-64cpu-512gb-x86-64
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
|
with:
|
|
go-version: ${{ env.DEFAULT_GO_VERSION }}
|
|
check-latest: true
|
|
cache-dependency-path: "**/go.sum"
|
|
- name: Run benchmarks
|
|
run: make benchmark | tee output.txt
|
|
- name: Download previous benchmark data
|
|
uses: actions/cache/restore@a7833574556fa59680c1b7cb190c1735db73ebf0 # v5.0.0
|
|
with:
|
|
path: ./benchmarks
|
|
# `github.event.before` means the commit before the push (i.e. the previous commit).
|
|
# So we can fetch the exact benchmark data from the previous commit.
|
|
key: ${{ runner.os }}-benchmark-${{ github.event.before }}
|
|
- name: Store benchmarks result
|
|
uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7
|
|
with:
|
|
name: Benchmarks
|
|
tool: 'go'
|
|
output-file-path: output.txt
|
|
external-data-json-path: ./benchmarks/data.json
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
gh-pages-branch: benchmarks
|
|
fail-on-alert: true
|
|
alert-threshold: "400%"
|
|
# Add benchmark summary to GitHub workflow run report
|
|
summary-always: true
|
|
- name: Save benchmark data
|
|
uses: actions/cache/save@a7833574556fa59680c1b7cb190c1735db73ebf0 # v5.0.0
|
|
# The cache will be saved even if a step fails.
|
|
if: always()
|
|
with:
|
|
path: ./benchmarks
|
|
# Use the current commit SHA as the cache key.
|
|
key: ${{ runner.os }}-benchmark-${{ github.sha }}
|