mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-19 11:00:37 +08:00
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 3.0.2 to 4.0.1. - [Release notes](https://github.com/dorny/paths-filter/releases) - [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md) - [Commits](https://github.com/dorny/paths-filter/compare/de90cc6fb38fc0963ad72b210f1f284cd68cea36...fbd0ab8f3e69293af611ebaee6363fc25e6d187d) --- updated-dependencies: - dependency-name: dorny/paths-filter dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
95 lines
2.9 KiB
YAML
95 lines
2.9 KiB
YAML
name: Benchmarks Diff (Root) (Go)
|
|
run-name: Benchmarks Diff (Root) (Go) - ${{ github.run_id }} - @${{ github.actor }}
|
|
|
|
on:
|
|
merge_group:
|
|
|
|
jobs:
|
|
changes:
|
|
name: Check for relevant changes
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: read
|
|
outputs:
|
|
changed: ${{ steps.changes.outputs.changed }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
|
id: changes
|
|
with:
|
|
base: ${{ github.event.pull_request.base.ref || github.event.merge_group.base_ref }}
|
|
ref: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }}
|
|
filters: |
|
|
changed:
|
|
- '.github/workflows/benchmark-code-root.yaml'
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- 'build.assets/Makefile'
|
|
- 'build.assets/Dockerfile*'
|
|
- 'Makefile'
|
|
|
|
benchmark:
|
|
name: Benchmarks (Root) (Go)
|
|
needs: changes
|
|
if: ${{ needs.changes.outputs.changed == 'true' }}
|
|
runs-on: ubuntu-22.04-32core
|
|
permissions:
|
|
contents: read
|
|
|
|
container:
|
|
image: ghcr.io/gravitational/teleport-buildbox:teleport19
|
|
options: --cap-add=SYS_ADMIN --privileged
|
|
env:
|
|
TELEPORT_XAUTH_TEST: yes
|
|
WEBASSETS_SKIP_BUILD: 1
|
|
BENCH_TIME: "2s"
|
|
BENCH_COUNT: 10
|
|
GIT_BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha || github.event.before }}
|
|
GIT_HEAD_SHA: ${{ github.sha }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Prepare workspace
|
|
uses: ./.github/actions/prepare-workspace
|
|
|
|
- name: Run head benchmarks
|
|
timeout-minutes: 10
|
|
run: |
|
|
make test-go-bench-root BENCH_OUTPUT=test-logs/bench-${GIT_HEAD_SHA}.txt
|
|
|
|
- name: Checkout base commit
|
|
uses: actions/checkout@v6
|
|
with:
|
|
clean: false # Preserve previous results
|
|
ref: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha || github.event.before }}
|
|
|
|
- name: Run base benchmarks
|
|
timeout-minutes: 10
|
|
run: |
|
|
make test-go-bench-root BENCH_OUTPUT=test-logs/bench-${GIT_BASE_SHA}.txt
|
|
|
|
- name: Generate benchstat output
|
|
shell: bash
|
|
run: |
|
|
make benchstat BENCH_FILES="test-logs/bench-${GIT_BASE_SHA}.txt test-logs/bench-${GIT_HEAD_SHA}.txt"
|
|
|
|
- name: Publish benchstat summary
|
|
shell: bash
|
|
run: |
|
|
{
|
|
echo "## Go benchmark diff"
|
|
echo ""
|
|
echo "**Base:** \`${GIT_BASE_SHA}\`"
|
|
echo "**Head:** \`${GIT_HEAD_SHA}\`"
|
|
echo ""
|
|
echo '```'
|
|
cat test-logs/benchstat.txt
|
|
echo '```'
|
|
} >> "$GITHUB_STEP_SUMMARY"
|