fix(scheduler): fail fast when feature gate discovery fails (#2050) #18
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
| # Copyright 2026 NVIDIA CORPORATION | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # Runs benchmarks on every push to main and publishes a per-commit history | |
| # chart to GitHub Pages at /dev/bench/. | |
| # | |
| # Use workflow_dispatch with `gh-pages-branch: gh-pages-test` to dry-run | |
| # against a throwaway branch before merging changes to this workflow. | |
| name: Benchmark History | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'pkg/scheduler/**' | |
| - 'go.mod' | |
| - 'go.sum' | |
| workflow_dispatch: | |
| inputs: | |
| gh-pages-branch: | |
| description: 'Branch to publish history to (use a throwaway like gh-pages-test for dry runs)' | |
| required: false | |
| default: 'gh-pages' | |
| auto-push: | |
| description: 'Push results to gh-pages-branch' | |
| required: false | |
| type: boolean | |
| default: true | |
| concurrency: | |
| group: benchmark-main | |
| cancel-in-progress: false | |
| jobs: | |
| benchmark: | |
| name: Run and publish benchmarks | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| deployments: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.26.3' | |
| cache: true | |
| - name: Download envtest binaries | |
| run: | | |
| make envtest | |
| echo "KUBEBUILDER_ASSETS=$(bin/setup-envtest use 1.34.0 -p path --bin-dir bin)" >> $GITHUB_ENV | |
| - name: Run benchmarks | |
| run: make benchmark BENCH_OUTPUT=bench.txt | |
| - name: Publish benchmark history | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| name: KAI Scheduler | |
| tool: go | |
| output-file-path: bench.txt | |
| gh-pages-branch: ${{ github.event.inputs.gh-pages-branch || 'gh-pages' }} | |
| benchmark-data-dir-path: dev/bench | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: ${{ github.event_name == 'push' || github.event.inputs.auto-push == 'true' }} | |
| alert-threshold: '150%' | |
| fail-on-alert: false | |
| comment-on-alert: true |