Skip to content

Benchmark

Benchmark #339

Workflow file for this run

name: Benchmark
on:
issue_comment:
types: [created]
schedule:
- cron: "0 23 * * *"
workflow_dispatch:
inputs:
reuse:
description: "reuse: Reuse existing benchmark server if possible"
required: false
default: true
type: boolean
reuse_runid:
description: "reuse_runid: Use this run id for benchmark name for reuse"
required: false
type: string
default: "wf"
benchmark-config-name:
description: "benchmark-config-name: Select benchmark config name"
required: false
default: workflow_dispatch_messagepack_h2c
type: choice
options:
- workflow_dispatch_memorypack_h2
- workflow_dispatch_memorypack_h2c
- workflow_dispatch_memorypack_h3
- workflow_dispatch_messagepack_h2
- workflow_dispatch_messagepack_h2c
- workflow_dispatch_messagepack_h3
- workflow_dispatch_messagepack_h2c_eastus
- workflow_dispatch_messagepack_h2_nugetclient
- workflow_dispatch_messagepack_h2_nugetserver
- workflow_dispatch_messagepack_h2c_nugetclient
- workflow_dispatch_messagepack_h2c_nugetserver
- workflow_dispatch_messagepack_h3_nugetclient
- workflow_dispatch_messagepack_h3_nugetserver
- workflow_dispatch_messagepack_h2c_serverstreaming
- issue
- schedule
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
jobs:
loader:
uses: Cysharp/Actions/.github/workflows/benchmark-loader.yaml@main
with:
benchmark-name-prefix: "magiconion-${{ github.event.issue.number || (inputs.reuse && inputs.reuse_runid || github.run_number) }}"
benchmark-config-path: "perf/BenchmarkApp/configs/${{ inputs.benchmark-config-name || github.event_name }}.yaml"
secrets: inherit
benchmark:
needs: [loader]
if: ${{ needs.loader.outputs.is-benchmarkable }}
strategy:
max-parallel: 3 # 3 parallel max
fail-fast: false # no care about other benchmark
matrix: ${{ fromJson(needs.loader.outputs.matrix) }}
uses: Cysharp/Actions/.github/workflows/benchmark-execute.yaml@main
with:
benchmark-name: "${{ matrix.benchmarkName }}"
benchmark-config-path: "${{ matrix.config }}"
branch: "${{ matrix.branch }}"
secrets: inherit
cleanup-failed:
if: ${{ failure() || success() }}
needs: [benchmark]
uses: Cysharp/Actions/.github/workflows/benchmark-cleanup.yaml@main
secrets: inherit
actions-timeline:

Check failure on line 77 in .github/workflows/benchmark.yml

View workflow run for this annotation

GitHub Actions / Benchmark

Invalid workflow file

The workflow is not valid. .github/workflows/benchmark.yml (Line: 77, Col: 3): Error calling workflow 'Cysharp/Actions/.github/workflows/actions-timeline.yaml@main'. The workflow is requesting 'actions: read', but is only allowed 'actions: none'.
needs: [loader, benchmark, cleanup-failed]
uses: Cysharp/Actions/.github/workflows/actions-timeline.yaml@main
secrets: inherit