Skip to content

refactor(proto): drop ClusterComponentInfo.instance_id #1510

refactor(proto): drop ClusterComponentInfo.instance_id

refactor(proto): drop ClusterComponentInfo.instance_id #1510

name: Patch Testing Cycles
on:
pull_request:
branches: [main, dev, multilinear_v6]
types: [opened, synchronize]
jobs:
patch-testing-cycles:
runs-on:
[
runs-on,
runner=16cpu-linux-x64,
spot=false,
disk=large,
"run-id=${{ github.run_id }}",
]
permissions:
contents: read
packages: read
pull-requests: write
issues: write
steps:
- name: "Checkout sources"
uses: "actions/checkout@v6"
with:
fetch-depth: 0
- name: Setup CI
uses: ./.github/actions/setup
with:
pull_token: ${{ secrets.PRIVATE_PULL_TOKEN }}
- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli --no-default-features -- prove install-toolchain
- name: "Run patch testing on new branch"
run: |
cd ./patch-testing
SP1_PATCH_BENCH=../new_cycle_stats.json cargo test --release -- --test-threads=1
- name: "Checkout old patches"
run: |
cd ./patch-testing
git checkout origin/${{ github.event.pull_request.base.ref }} -- . ':(exclude)new_cycle_stats.json' ':(exclude)sp1-test/' ':(exclude)sp1-test-macro/'
- name: "Run patch testing on old branch"
run: |
# Install the toolchain from the old head.
cargo run -p sp1-cli -- prove install-toolchain
cd ./patch-testing
SP1_PATCH_BENCH=../old_cycle_stats.json cargo test --release -- --test-threads=1
- name: "Compare results"
run: |
cd ./patch-testing
cargo run --bin compare-results
env:
OLD_CYCLE_STATS: ${{ github.workspace }}/patch-testing/old_cycle_stats.json
NEW_CYCLE_STATS: ${{ github.workspace }}/patch-testing/new_cycle_stats.json
- name: "Upload cycle stats"
uses: actions/upload-artifact@v4
with:
name: patch-testing-results
path: |
patch-testing/new_cycle_stats.json
patch-testing/old_cycle_stats.json
retention-days: 1