Repository navigation
47 lines (44 loc) · 1.82 KB
/
Copy pathbenchmarks.yml
File metadata and controls
47 lines (44 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: SDK Benchmark Tests
on:
push:
branches: [ main ]
permissions:
contents: read
jobs:
sdk-benchmarks:
permissions:
contents: write # required for pushing to gh-pages
runs-on: oracle-bare-metal-64cpu-1024gb-x86-64-ubuntu-24
container:
image: python:3.14-slim@sha256:a2b82f3c48559aa0a8446d9af49826b6e2b2016f4cd2afabfe6013ec53729170
steps:
- name: Install Git # since Git isn't available in the container image used above
run: |
apt-get update
apt-get install -y git
- name: Make repo safe for Git inside container
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout Core Repo @ SHA - ${{ github.sha }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Run tox
run: uvx --with tox-uv tox -e benchmark-opentelemetry-sdk -- --benchmark-json=opentelemetry-sdk/output.json
- name: Report on SDK benchmark results
uses: benchmark-action/github-action-benchmark@4322e5726e6334590d251fc4f92bec0efafc45dc # v1.22.2
with:
name: OpenTelemetry Python SDK Benchmarks
tool: pytest
output-file-path: opentelemetry-sdk/output.json
gh-pages-branch: gh-pages
github-token: ${{ secrets.GITHUB_TOKEN }}
# Make a commit on `gh-pages` with benchmarks from previous step
benchmark-data-dir-path: "benchmarks"
auto-push: true
max-items-in-chart: 100
# Alert with a commit comment on possible performance regression
alert-threshold: '200%'
comment-on-alert: true
alert-comment-cc-users: "@open-telemetry/python-approvers,@open-telemetry/python-maintainers"