Document GPG signing key (#7783) #1268
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 Main | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| sdk-benchmark: | |
| permissions: | |
| contents: write # for git push to benchmarks branch | |
| name: Benchmark SDK | |
| runs-on: oracle-bare-metal-64cpu-512gb-x86-64 | |
| container: | |
| image: ubuntu:24.04@sha256:66460d557b25769b102175144d538d88219c077c678a49af4afca6fbfc1b5252 | |
| timeout-minutes: 20 # 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - id: setup-java | |
| name: Set up Java for build | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Set up gradle | |
| uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 | |
| - name: Run jmh | |
| run: ./gradlew jmhJar | |
| env: | |
| DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | |
| - name: Run Benchmark | |
| run: | | |
| cd sdk/trace/build | |
| java -jar libs/opentelemetry-sdk-trace-*-jmh.jar -rf json SpanBenchmark SpanPipelineBenchmark ExporterBenchmark | |
| - name: Use CLA approved github bot | |
| run: .github/scripts/use-cla-approved-github-bot.sh | |
| - name: Store benchmark results | |
| uses: benchmark-action/github-action-benchmark@4bdcce38c94cec68da58d012ac24b7b1155efe8b # v1.20.7 | |
| with: | |
| tool: 'jmh' | |
| output-file-path: sdk/trace/build/jmh-result.json | |
| gh-pages-branch: benchmarks | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| benchmark-data-dir-path: "benchmarks" | |
| auto-push: true |