-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(just): define benchmark subcommand * chore(github): workflow for benchmarking * chore(github): update workflows to actions/checkout@v3 * fix(github): issue with runner labels * fix(just): lint - wip: find out a safe way to save output for benchmarks to a proper file folder * wip: attempt caching between jobs * fix(just): make sure to save via nu * fix(just): enable execute permissions over virto-node * fix(jus): benchmarks over node's pallets * feat(ci): generate a PR after benchmarking * fix(github-actions): rename jobs on benchmarking workflow * fix(just): pathname to kreivo-runtime Cargo
- Loading branch information
Showing
6 changed files
with
95 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Benchmarks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build Target | ||
runs-on: [self-hosted, builder] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: just build-local runtime-benchmarks | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.run_number }}-virto-node | ||
path: ./target/release/virto-node | ||
- uses: actions/cache@v4 | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-target-cache | ||
|
||
benchmark: | ||
name: Run Benchmarks | ||
needs: build | ||
runs-on: [self-hosted, benchmarks] | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
mkdir -p .benchmarking-logs target/release | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ github.run_number }}-virto-node | ||
path: ./target/release | ||
- run: | | ||
just benchmarks | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.run_id }}-benchmark_logs | ||
path: ./.benchmarking-logs | ||
- uses: peter-evans/create-pull-request@v6 | ||
with: | ||
add-paths: runtime/kreivo/src/weights | ||
commit-message: '[ci] calculate weights' | ||
branch: benchmarks | ||
branch-suffix: ${{ github.sha }} | ||
title: "Benchmarking: Calculate weights for ${{ github.sha }}" | ||
body: | | ||
This Pull Request is automatically raised when pushing over `master` | ||
and should be resolved and reviewed manually. | ||
assignees: ${{ github.actor_id }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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