Skip to content

Commit

Permalink
test msr
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteNacked committed May 6, 2024
1 parent bf37650 commit fd4b77c
Showing 1 changed file with 1 addition and 53 deletions.
54 changes: 1 addition & 53 deletions .github/workflows/test-measurements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,66 +39,14 @@ jobs:
- name: "Build: Gear"
run: ./scripts/gear.sh build gear --release --locked --features=runtime-benchmarks

- name: "Collect: Gear workspace tests"
run: |
./scripts/gear.sh check_extensions
mkdir -p ./target/analysis/tests/
mkdir -p ./target/analysis/output/
cargo build --release --package regression-analysis
for i in `seq 1 $COUNT`; do echo $i; cargo nextest run --package pallet-* --profile ci --no-fail-fast --release -j1 > ./target/analysis/output/$i 2>&1 || { exit_code=$?; if [ x$exit_code != x0 ]; then cat ./target/analysis/output/$i; fi; exit $exit_code; }; mv ./target/nextest/ci/junit.xml ./target/analysis/tests/$i; done
./target/release/regression-analysis collect-data --data-folder-path ./target/analysis/tests/ --output-path ./target/pallet-tests.json
- name: "Generate report: Gear workspace tests"
run: >-
./target/release/regression-analysis convert
--data-folder-path ./target/analysis/tests/
--output-file ./target/action-pallet-output.json
- name: "Collect: pallet-gear benches"
run: >-
./target/release/gear benchmark pallet --pallet=pallet_gear
--steps=50
--repeat=20
--chain=dev
--extrinsic=*
--extrinsic=instantiate_module_code_section_per_kb,instantiate_module_data_section_per_kb,instantiate_module_global_section_per_kb,instantiate_module_table_section_per_kb,instantiate_module_type_section_per_kb
--heap-pages=4096
--output ./target/weights.json
--template ./.maintain/regression-analysis-weight-template.hbs
- name: "Generate report: pallet-gear benches"
run: |
./target/release/regression-analysis weights --input-file ./target/weights.json --output-file ./target/action-hostfn-weights.json host-fn
./target/release/regression-analysis weights --input-file ./target/weights.json --output-file ./target/action-instruction-weights.json instruction
./target/release/regression-analysis weights --input-file ./target/weights.json --output-file ./target/action-extrinsic-weights.json extrinsic
- name: "Deploy: Gear workspace tests"
uses: ./.github/actions/deploy-benchmark
with:
name: Gear workspace tests
file: ./target/action-pallet-output.json
ssh-deploy-key: ${{ secrets.PERFORMANCE_CHARTS_DEPLOY_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: "Deploy: pallet-gear host function weights"
uses: ./.github/actions/deploy-benchmark
with:
name: pallet-gear host function weights
file: ./target/action-hostfn-weights.json
ssh-deploy-key: ${{ secrets.PERFORMANCE_CHARTS_DEPLOY_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: "Deploy: pallet-gear instruction weights"
uses: ./.github/actions/deploy-benchmark
with:
name: pallet-gear instruction weights
file: ./target/action-instruction-weights.json
ssh-deploy-key: ${{ secrets.PERFORMANCE_CHARTS_DEPLOY_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: "Deploy: pallet-gear extrinsic weights"
uses: ./.github/actions/deploy-benchmark
with:
name: pallet-gear extrinsic weights
file: ./target/action-extrinsic-weights.json
ssh-deploy-key: ${{ secrets.PERFORMANCE_CHARTS_DEPLOY_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fd4b77c

Please sign in to comment.