From ac7157694883dc1fe83c2222ac3b984ee15b4b25 Mon Sep 17 00:00:00 2001 From: Maxim Vezenov Date: Tue, 14 Jan 2025 03:02:21 +0000 Subject: [PATCH] check len of programs array --- .github/workflows/reports.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reports.yml b/.github/workflows/reports.yml index 1e892562d3..53eb741f1c 100644 --- a/.github/workflows/reports.yml +++ b/.github/workflows/reports.yml @@ -120,17 +120,19 @@ jobs: ./gates_report_brillig.sh 9223372036854775807 mv gates_report_brillig.json ./reports/gates_report_brillig_inliner_max.json + jq '.programs | length' ./reports/gates_report_brillig_inliner_max.json ./gates_report_brillig.sh 0 jq '.programs |= map(.package_name |= (. + "_inliner_zero"))' gates_report_brillig.json > ./reports/gates_report_brillig_inliner_zero.json + jq '.programs | length' ./reports/gates_report_brillig_inliner_zero.json ./gates_report_brillig.sh -9223372036854775808 jq '.programs |= map(.package_name |= (. + "_inliner_min"))' gates_report_brillig.json > ./reports/gates_report_brillig_inliner_min.json - cat ./reports/gates_report_brillig_inliner_min.json + jq '.programs | length' ./reports/gates_report_brillig_inliner_min.json ls ./reports jq -s '{ programs: map(.programs) | add }' ./reports/* > ../gates_report_brillig.json - cat ../gates_report_brillig.json + jq '.programs | length' ../gates_report_brillig.json - name: Compare Brillig bytecode size reports id: brillig_bytecode_diff