Skip to content

Commit

Permalink
Update subsystem-benchmarks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Sep 12, 2024
1 parent ad16e6c commit 1fbb8a9
Showing 1 changed file with 45 additions and 29 deletions.
74 changes: 45 additions & 29 deletions .github/workflows/subsystem-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,44 @@ jobs:
runs-on: ubuntu-latest
outputs:
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
RUNNER: ${{ steps.set_runner.outputs.RUNNER }}
steps:
- name: Checkout
uses: actions/checkout@v4
- id: set_image
run: cat .github/env >> $GITHUB_OUTPUT
- id: set_runner
run: |
# Run merge queues on persistent runners
if [[ $GITHUB_REF_NAME == *"gh-readonly-queue"* ]]; then
echo "RUNNER=arc-runners-polkadot-sdk-beefy-persistent" >> $GITHUB_OUTPUT
else
echo "RUNNER=arc-runners-polkadot-sdk-beefy" >> $GITHUB_OUTPUT
fi
build:
timeout-minutes: 80
needs: [set-image]
runs-on: arc-runners-polkadot-sdk-benchmark
runs-on: ${{ needs.set-image.outputs.RUNNER }}
container:
image: ${{ needs.set-image.outputs.IMAGE }}
strategy:
fail-fast: false
matrix:
features: [
features:
[
{
name: "polkadot-availability-recovery",
bench: "availability-recovery-regression-bench",
},
# {
# name: "polkadot-availability-distribution",
# bench: "availability-distribution-regression-bench",
# },
# {
# name: "polkadot-node-core-approval-voting",
# bench: "approval-voting-regression-bench",
# },
{
name: "polkadot-availability-distribution",
bench: "availability-distribution-regression-bench",
},
{
name: "polkadot-node-core-approval-voting",
bench: "approval-voting-regression-bench",
},
{
name: "polkadot-statement-distribution",
bench: "statement-distribution-regression-bench",
Expand Down Expand Up @@ -97,7 +107,7 @@ jobs:
with:
path: ./charts

- name: Setup git & copy artifacts
- name: Setup git
run: |
# Fixes "detected dubious ownership" error in the ci
git config --global --add safe.directory '*'
Expand All @@ -123,7 +133,19 @@ jobs:

- name: Generate ${{ env.BENCH }}
env:
BENCH: statement-distribution-regression-bench
BENCH: availability-distribution-regression-bench
uses: benchmark-action/github-action-benchmark@v1
with:
tool: "customSmallerIsBetter"
name: ${{ env.BENCH }}
output-file-path: ./charts/${{ env.BENCH }}/${{ env.BENCH }}.json
benchmark-data-dir-path: ./bench/${{ env.BENCH }}
github-token: ${{ steps.app-token.outputs.token }}
auto-push: true

- name: Generate ${{ env.BENCH }}
env:
BENCH: approval-voting-regression-bench
uses: benchmark-action/github-action-benchmark@v1
with:
tool: "customSmallerIsBetter"
Expand All @@ -133,20 +155,14 @@ jobs:
github-token: ${{ steps.app-token.outputs.token }}
auto-push: true

- run: |
ls -lsaR ./bench
ls -lsaR ./charts
git status
git diff
# - name: Push changes
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "GitHub Action"
# git remote remove origin
# git remote add origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/${{ github.repository }}
# git status
# git diff
# git add ./bench
# git commit -m "Update subsystem benchmarks"
# git push --set-upstream origin gh-pages
- name: Generate ${{ env.BENCH }}
env:
BENCH: statement-distribution-regression-bench
uses: benchmark-action/github-action-benchmark@v1
with:
tool: "customSmallerIsBetter"
name: ${{ env.BENCH }}
output-file-path: ./charts/${{ env.BENCH }}/${{ env.BENCH }}.json
benchmark-data-dir-path: ./bench/${{ env.BENCH }}
github-token: ${{ steps.app-token.outputs.token }}
auto-push: true

0 comments on commit 1fbb8a9

Please sign in to comment.