Repository navigation
55 lines (48 loc) · 1.66 KB
/
Copy pathDailyBenchmarks.yml
File metadata and controls
55 lines (48 loc) · 1.66 KB
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Daily Benchmarks
on:
schedule:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day
workflow_dispatch: # Allow manual triggering
permissions:
contents: read
actions: read
jobs:
# Build release guest binaries needed by the benchmark suite.
build-guests:
uses: ./.github/workflows/dep_build_guests.yml
secrets: inherit
with:
arch: X64
config: release
# Run benchmarks across all hypervisor/cpu combos. The artifacts they leave
# are the baseline for the pull requests that branch from the commits they
# measure.
benchmarks:
needs: [build-guests]
strategy:
fail-fast: true
matrix:
arch: [X64]
hypervisor: ['hyperv-ws2025', mshv3, kvm]
cpu_vendor: [amd, intel]
uses: ./.github/workflows/dep_benchmarks.yml
secrets: inherit
with:
hypervisor: ${{ matrix.hypervisor }}
cpu_vendor: ${{ matrix.cpu_vendor }}
arch: ${{ matrix.arch }}
# File a GitHub issue if any job fails.
notify-failure:
runs-on: ubuntu-latest
needs: [build-guests, benchmarks]
if: always() && (needs.build-guests.result == 'failure' || needs.benchmarks.result == 'failure')
permissions:
issues: write
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Notify Benchmark Failure
run: ./dev/notify-ci-failure.sh --title="Benchmark Failure - ${{ github.run_number }}" --labels="area/benchmarks,area/testing,lifecycle/needs-review,release-blocker"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}