Skip to content

Commit

Permalink
fix name in merge report
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Jan 13, 2025
1 parent 4a5ea32 commit d624ba4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/scripts/merge-bench-reports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ for report in ./reports/*; do
FILE_PATH=$(echo $(ls $report))

# Extract the $NAME_PLURAL array from each report and merge it
combined_reports=$(jq '[."'"$NAME_PLURAL"'"[]] + '"$combined_reports" <<< "$(cat "$report/$FILE_PATH")")
if [ "$2" == "1" ]; then
echo $report
combined_reports=$(jq '[."'"$NAME_PLURAL"'"[]] + '"$combined_reports" <<< "$(cat "$report")")
else
combined_reports=$(jq '[."'"$NAME_PLURAL"'"[]] + '"$combined_reports" <<< "$(cat "$report/$FILE_PATH")")
fi
done

# Wrap the merged memory reports into a new object as to keep the $NAME_PLURAL key
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Merge compilation reports using jq
run: |
mv ./.github/scripts/merge-bench-reports.sh merge-bench-reports.sh
./merge-bench-reports.sh program
./merge-bench-reports.sh program 1
mv ./program.json ./gates_report_brillig.json
- name: Compare Brillig bytecode size reports
Expand Down
2 changes: 1 addition & 1 deletion test_programs/gates_report_brillig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ done

echo "]" >> Nargo.toml

nargo info --force-brillig --json --inliner-aggressiveness $1 | jq -r ".programs[].functions = []" > gates_report_brillig.json
nargo info --silence-warnings --force-brillig --json --inliner-aggressiveness $1 | jq -r ".programs[].functions = []" > gates_report_brillig.json

rm Nargo.toml

0 comments on commit d624ba4

Please sign in to comment.