Overhead benchmark (daily) #1040
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: Overhead benchmark (daily) | |
| on: | |
| schedule: | |
| # daily at 5:00 UTC | |
| - cron: "0 5 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| run-overhead-tests: | |
| permissions: | |
| contents: write # for writing to the gh-pages branch | |
| 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@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2 | |
| - 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: | |
| permissions: | |
| issues: write | |
| needs: | |
| - run-overhead-tests | |
| if: always() | |
| uses: ./.github/workflows/reusable-workflow-notification.yml | |
| with: | |
| success: ${{ needs.run-overhead-tests.result == 'success' }} |