diff --git a/.github/workflows/test-measurements.yaml b/.github/workflows/test-measurements.yaml index 549ba0eb88e..8bf297bd8fe 100644 --- a/.github/workflows/test-measurements.yaml +++ b/.github/workflows/test-measurements.yaml @@ -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 }}