-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (48 loc) · 1.85 KB
/
overhead-benchmark-daily.yml
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
48
49
50
51
52
53
54
55
56
57
58
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
- name: Run tests
working-directory: benchmark-overhead
run: ./gradlew test
- 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@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
with:
add: "benchmark-overhead/results"
cwd: "./gh-pages"
branch: "gh-pages"
message: "update test result data"
author_name: opentelemetrybot
author_email: [email protected]
committer_name: opentelemetrybot
committer_email: [email protected]
workflow-notification:
needs:
- run-overhead-tests
if: always()
uses: ./.github/workflows/reusable-workflow-notification.yml
with:
success: ${{ needs.run-overhead-tests.result == 'success' }}