58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
name: Overhead benchmark (daily)
|
|
on:
|
|
schedule:
|
|
# daily at 5:00 UTC
|
|
- cron: "0 5 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run-overhead-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
with:
|
|
ref: gh-pages
|
|
path: gh-pages
|
|
|
|
- name: Free disk space
|
|
run: .github/scripts/gha-free-disk-space.sh
|
|
|
|
- name: Copy results from gh-pages branch
|
|
run: |
|
|
rsync -avv gh-pages/benchmark-overhead/results/ benchmark-overhead/results/
|
|
|
|
- name: Run tests
|
|
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
|
|
with:
|
|
arguments: test
|
|
build-root-directory: benchmark-overhead
|
|
|
|
- name: Inspect the results dir
|
|
working-directory: benchmark-overhead
|
|
run: ls -lR results
|
|
|
|
- name: Copy results back to gh-pages branch
|
|
run: rsync -avv benchmark-overhead/results/ gh-pages/benchmark-overhead/results/ && rm -rf benchmark-overhead/results
|
|
|
|
- name: Commit updated results
|
|
uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # v9.1.3
|
|
with:
|
|
add: "benchmark-overhead/results"
|
|
cwd: "./gh-pages"
|
|
branch: "gh-pages"
|
|
message: "update test result data"
|
|
author_name: opentelemetrybot
|
|
author_email: 107717825+opentelemetrybot@users.noreply.github.com
|
|
committer_name: opentelemetrybot
|
|
committer_email: 107717825+opentelemetrybot@users.noreply.github.com
|
|
|
|
workflow-notification:
|
|
needs:
|
|
- run-overhead-tests
|
|
if: always()
|
|
uses: ./.github/workflows/reusable-workflow-notification.yml
|
|
with:
|
|
success: ${{ needs.run-overhead-tests.result == 'success' }}
|