Skip to content

Commit e4443e6

Browse files
author
AztecBot
committed
[1 changes] fix: Minimal change to avoid reverting entire PR #6685 (noir-lang/noir#6778)
1 parent fca9600 commit e4443e6

File tree

205 files changed

+5701
-1951
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+5701
-1951
lines changed

.noir-sync-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
31640e91ba75b9c5200ea66d1f54cc5185e0d196
1+
0925a332dbaa561aad195c143079588158498dad
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
set -eu
3+
4+
echo "Merging reports"
5+
6+
REPORT_NAME=$1
7+
NAME_PLURAL=""$REPORT_NAME"s"
8+
9+
combined_reports="[]"
10+
11+
# Iterate over each report and merge them
12+
for report in ./reports/*; do
13+
# The report is saved under ./$REPORT_NAME_{ matrix_report }/$REPORT_NAME_{ matrix_report }.json
14+
FILE_PATH=$(echo $(ls $report))
15+
16+
# Extract the $NAME_PLURAL array from each report and merge it
17+
combined_reports=$(jq '[."'"$NAME_PLURAL"'"[]] + '"$combined_reports" <<< "$(cat "$report/$FILE_PATH")")
18+
done
19+
20+
combined_reports=$(jq '[."'$NAME_PLURAL'"[]] + '"$combined_reports" <<< "$(cat ./$REPORT_NAME.json)")
21+
22+
# Wrap the merged memory reports into a new object as to keep the $NAME_PLURAL key
23+
final_report="{\"$NAME_PLURAL\": $combined_reports}"
24+
25+
echo "$final_report" > $REPORT_NAME.json
26+
27+
cat $REPORT_NAME.json

noir/noir-repo/.github/workflows/cache-cleanup.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
cleanup:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1616
steps:
1717
- name: Cleanup
1818
run: |

noir/noir-repo/.github/workflows/deny.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency: deny-${{ github.head_ref || github.run_id }}
1818
jobs:
1919
deny:
2020
name: deny
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: EmbarkStudios/cargo-deny-action@v1

noir/noir-repo/.github/workflows/docs-dead-links.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
markdown-link-check:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
steps:
1818
- uses: actions/checkout@master
1919
- uses: gaurav-nelson/github-action-markdown-link-check@v1

noir/noir-repo/.github/workflows/docs-pr.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
add_label:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
outputs:
1010
has_label: ${{ steps.check-labels.outputs.result }}
1111
steps:
@@ -49,7 +49,7 @@ jobs:
4949
}
5050
5151
build_preview:
52-
runs-on: ubuntu-latest
52+
runs-on: ubuntu-22.04
5353
steps:
5454
- name: Checkout code
5555
uses: actions/checkout@v4
@@ -93,7 +93,7 @@ jobs:
9393

9494
deploy_preview:
9595
needs: [build_preview, add_label]
96-
runs-on: ubuntu-latest
96+
runs-on: ubuntu-22.04
9797
permissions:
9898
pull-requests: write
9999
if: needs.add_label.outputs.has_label == 'true'
@@ -121,7 +121,7 @@ jobs:
121121

122122
add_comment:
123123
needs: [deploy_preview]
124-
runs-on: ubuntu-latest
124+
runs-on: ubuntu-22.04
125125
permissions:
126126
pull-requests: write
127127
steps:

noir/noir-repo/.github/workflows/formatting.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
jobs:
1616
clippy:
1717
name: cargo clippy
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
timeout-minutes: 30
2020
env:
2121
RUSTFLAGS: -Dwarnings
@@ -41,7 +41,7 @@ jobs:
4141

4242
rustfmt:
4343
name: cargo fmt
44-
runs-on: ubuntu-latest
44+
runs-on: ubuntu-22.04
4545
timeout-minutes: 30
4646
env:
4747
RUSTFLAGS: -Dwarnings
@@ -67,7 +67,7 @@ jobs:
6767

6868
eslint:
6969
name: eslint
70-
runs-on: ubuntu-latest
70+
runs-on: ubuntu-22.04
7171
timeout-minutes: 30
7272

7373
steps:
@@ -115,7 +115,7 @@ jobs:
115115
nargo_fmt:
116116
needs: [build-nargo]
117117
name: Nargo fmt
118-
runs-on: ubuntu-latest
118+
runs-on: ubuntu-22.04
119119
timeout-minutes: 30
120120

121121
steps:

noir/noir-repo/.github/workflows/publish-acvm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
publish:
1212
name: Publish in order
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout sources
1616
uses: actions/checkout@v4

noir/noir-repo/.github/workflows/publish-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
publish-docs:
1212
name: Publish docs
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414

1515
steps:
1616
- name: Checkout release branch

noir/noir-repo/.github/workflows/publish-es-packages.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ run-name: Publish ES Packages from ${{ inputs.noir-ref }} under @${{ inputs.npm-
1616

1717
jobs:
1818
build-noirc_abi_wasm:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-22.04
2020
steps:
2121
- name: Checkout Noir repo
2222
uses: actions/checkout@v4
@@ -50,7 +50,7 @@ jobs:
5050
retention-days: 10
5151

5252
build-noir_wasm:
53-
runs-on: ubuntu-latest
53+
runs-on: ubuntu-22.04
5454
steps:
5555
- name: Checkout sources
5656
uses: actions/checkout@v4
@@ -87,7 +87,7 @@ jobs:
8787
retention-days: 3
8888

8989
build-acvm_js:
90-
runs-on: ubuntu-latest
90+
runs-on: ubuntu-22.04
9191
steps:
9292
- name: Checkout sources
9393
uses: actions/checkout@v4
@@ -121,7 +121,7 @@ jobs:
121121
retention-days: 3
122122

123123
publish-es-packages:
124-
runs-on: ubuntu-latest
124+
runs-on: ubuntu-22.04
125125
needs: [build-acvm_js, build-noirc_abi_wasm, build-noir_wasm]
126126
steps:
127127
- name: Checkout sources

noir/noir-repo/.github/workflows/publish-nightly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
dispatch-publish-es:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- name: Dispatch to publish-nargo
1313
uses: benc-uk/workflow-dispatch@v1

noir/noir-repo/.github/workflows/pull-request-title.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
jobs:
1616
conventional-title:
1717
name: Validate PR title is Conventional Commit
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
steps:
2020
- name: Check title
2121
if: github.event_name == 'pull_request_target'
@@ -30,7 +30,7 @@ jobs:
3030
3131
force-push-comment:
3232
name: Warn external contributors about force-pushing
33-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-22.04
3434
if: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != 'noir-lang/noir' }}
3535
permissions:
3636
pull-requests: write

noir/noir-repo/.github/workflows/recrawler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
algolia_recrawl:
99
name: Algolia Recrawl
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- name: Algolia crawler creation and crawl
1313
uses: algolia/algoliasearch-crawler-github-actions@v1.1.0

noir/noir-repo/.github/workflows/release.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
outputs:
1212
release-pr: ${{ steps.release.outputs.pr }}
1313
tag-name: ${{ steps.release.outputs.tag_name }}
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
steps:
1616
- name: Run release-please
1717
id: release
@@ -23,7 +23,7 @@ jobs:
2323
name: Update acvm workspace package versions
2424
needs: [release-please]
2525
if: ${{ needs.release-please.outputs.release-pr }}
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-22.04
2727
steps:
2828
- name: Checkout release branch
2929
uses: actions/checkout@v4
@@ -66,7 +66,7 @@ jobs:
6666
name: Update docs
6767
needs: [release-please, update-acvm-workspace-package-versions]
6868
if: ${{ needs.release-please.outputs.release-pr }}
69-
runs-on: ubuntu-latest
69+
runs-on: ubuntu-22.04
7070

7171
steps:
7272
- name: Checkout release branch
@@ -110,7 +110,7 @@ jobs:
110110
111111
release-end:
112112
name: Release End
113-
runs-on: ubuntu-latest
113+
runs-on: ubuntu-22.04
114114
# We want this job to always run (even if the dependant jobs fail) as we need apply changes to the sticky comment.
115115
if: ${{ always() }}
116116

@@ -145,7 +145,7 @@ jobs:
145145
name: Build binaries
146146
needs: [release-please]
147147
if: ${{ needs.release-please.outputs.tag-name }}
148-
runs-on: ubuntu-latest
148+
runs-on: ubuntu-22.04
149149
steps:
150150
- name: Dispatch to publish workflow
151151
uses: benc-uk/workflow-dispatch@v1
@@ -160,7 +160,7 @@ jobs:
160160
name: Publish ES packages
161161
needs: [release-please]
162162
if: ${{ needs.release-please.outputs.tag-name }}
163-
runs-on: ubuntu-latest
163+
runs-on: ubuntu-22.04
164164
steps:
165165
- name: Dispatch to publish-es-packages
166166
uses: benc-uk/workflow-dispatch@v1
@@ -174,7 +174,7 @@ jobs:
174174
name: Publish acvm
175175
needs: [release-please]
176176
if: ${{ needs.release-please.outputs.tag-name }}
177-
runs-on: ubuntu-latest
177+
runs-on: ubuntu-22.04
178178

179179
steps:
180180
- name: Dispatch to publish-acvm

0 commit comments

Comments
 (0)