Skip to content

Suppress more test logs (#8536) #1794

Suppress more test logs (#8536)

Suppress more test logs (#8536) #1794

Workflow file for this run

name: Benchmark Main
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
sdk-benchmark:
if: github.repository == 'open-telemetry/opentelemetry-java'
permissions:
contents: write # for git push to benchmarks branch
name: Benchmark SDK
runs-on: oracle-bare-metal-64cpu-1024gb-x86-64-ubuntu-24
container:
image: ubuntu:26.04@sha256:53958ec7b67c2c9355df922dd08dbf0360611f8c3cdb656875e81873db9ffdba
timeout-minutes: 120 # since there is only a single bare metal runner across all repos
steps:
- name: Install Git
run: |
apt-get update
apt-get install -y git
- name: Configure Git safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- id: setup-java
name: Set up Java for build
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
with:
distribution: temurin
java-version: 21
- name: Set up gradle
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
- name: Run jmh
run: ./gradlew jmhJar
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
# TODO (jack-berg): Select or build appropriate benchmarks for other key areas:
# - Log SDK export
# - Trace SDK export
# - Metric SDK export
# - Noop implementation
- name: Run Benchmark
run: |
cd sdk/all/build
java -jar libs/opentelemetry-sdk-*-jmh.jar -rf json MetricRecordBenchmark SpanRecordBenchmark LogRecordBenchmark
- name: Use CLA approved github bot
run: .github/scripts/use-cla-approved-bot.sh
- name: Store benchmark results
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1.22.1
with:
tool: 'jmh'
output-file-path: sdk/all/build/jmh-result.json
gh-pages-branch: benchmarks
github-token: ${{ secrets.GITHUB_TOKEN }}
benchmark-data-dir-path: "benchmarks"
auto-push: true