Skip to content

Commit 913be5b

Browse files
authored
chore: remove malformed functions from brillig reports (#6898)
1 parent 186fbb7 commit 913be5b

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/reports.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
7777
- name: Compare gates reports
7878
id: gates_diff
79-
uses: noir-lang/noir-gates-diff@1931aaaa848a1a009363d6115293f7b7fc72bb87
79+
uses: noir-lang/noir-gates-diff@84ada11295b9a1e1da7325af4e45e2db9f775175
8080
with:
8181
report: gates_report.json
8282
summaryQuantile: 0.9 # only display the 10% most significant circuit size diffs in the summary (defaults to 20%)
@@ -121,7 +121,7 @@ jobs:
121121
122122
- name: Compare Brillig bytecode size reports
123123
id: brillig_bytecode_diff
124-
uses: noir-lang/noir-gates-diff@d88f7523b013b9edd3f31c5cfddaef87a3fe1b48
124+
uses: noir-lang/noir-gates-diff@84ada11295b9a1e1da7325af4e45e2db9f775175
125125
with:
126126
report: gates_report_brillig.json
127127
header: |
@@ -170,7 +170,7 @@ jobs:
170170
171171
- name: Compare Brillig execution reports
172172
id: brillig_execution_diff
173-
uses: noir-lang/noir-gates-diff@d88f7523b013b9edd3f31c5cfddaef87a3fe1b48
173+
uses: noir-lang/noir-gates-diff@84ada11295b9a1e1da7325af4e45e2db9f775175
174174
with:
175175
report: gates_report_brillig_execution.json
176176
header: |

test_programs/gates_report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ for pathname in $test_dirs; do
2424
fi
2525

2626
GATES_INFO=$($BACKEND gates -b "$artifacts_path/$ARTIFACT_NAME/target/program.json")
27-
MAIN_FUNCTION_INFO=$(echo $GATES_INFO | jq -r ".functions[0] | {package_name: "\"$ARTIFACT_NAME\"", functions: [{name: \"main\", acir_opcodes, opcodes: .acir_opcodes, circuit_size}]}")
27+
MAIN_FUNCTION_INFO=$(echo $GATES_INFO | jq -r ".functions[0] | {package_name: "\"$ARTIFACT_NAME\"", functions: [{name: \"main\", acir_opcodes, opcodes: .acir_opcodes, circuit_size}], unconstrained_functions: []}")
2828
echo -n $MAIN_FUNCTION_INFO >> gates_report.json
2929

3030
if (($ITER == $NUM_ARTIFACTS)); then

test_programs/gates_report_brillig.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ done
2828

2929
echo "]" >> Nargo.toml
3030

31-
nargo info --force-brillig --json > gates_report_brillig.json
31+
nargo info --force-brillig --json | jq -r ".programs[].functions = []" > gates_report_brillig.json
3232

3333
rm Nargo.toml

test_programs/gates_report_brillig_execution.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ done
3838

3939
echo "]" >> Nargo.toml
4040

41-
nargo info --profile-execution --json > gates_report_brillig_execution.json
41+
nargo info --profile-execution --json | jq -r ".programs[].functions = []" > gates_report_brillig_execution.json
4242

43-
rm Nargo.toml
43+
rm Nargo.toml

0 commit comments

Comments
 (0)