-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Sync from aztec-packages (noir-lang/noir#5971)
feat: LSP completion function detail (noir-lang/noir#5993) feat: add `TypedExpr::get_type` (noir-lang/noir#5992) feat: better error message for misplaced doc comments (noir-lang/noir#5990) fix: Error when comptime types are used in runtime code (noir-lang/noir#5987)
- Loading branch information
Showing
596 changed files
with
17,385 additions
and
15,914 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ on: | |
push: | ||
branches: [master, provernet] | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
branches-ignore: [devnet] | ||
workflow_dispatch: | ||
inputs: {} | ||
|
@@ -28,6 +33,7 @@ env: | |
|
||
jobs: | ||
setup: | ||
if: github.event.pull_request.draft == false | ||
uses: ./.github/workflows/setup-runner.yml | ||
with: | ||
username: ${{ github.event.pull_request.user.login || github.actor }} | ||
|
@@ -36,6 +42,7 @@ jobs: | |
|
||
changes: | ||
runs-on: ubuntu-20.04 | ||
if: github.event.pull_request.draft == false | ||
# Required permissions. | ||
permissions: | ||
pull-requests: read | ||
|
@@ -92,21 +99,21 @@ jobs: | |
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
if: ${{ needs.changes.outputs.build-images == 'true' }} | ||
if: needs.changes.outputs.build-images == 'true' | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
- uses: ./.github/ci-setup-action | ||
if: ${{ needs.changes.outputs.build-images == 'true' }} | ||
if: needs.changes.outputs.build-images == 'true' | ||
with: | ||
concurrency_key: build-images-x86 | ||
- name: "Push Build Images If Changed" | ||
if: ${{ needs.changes.outputs.build-images == 'true' }} | ||
if: needs.changes.outputs.build-images == 'true' | ||
timeout-minutes: 40 | ||
run: | | ||
earthly-ci --push ./build-images/+build | ||
build: | ||
needs: [build-images, changes] | ||
if: ${{ needs.changes.outputs.non-docs == 'true' && needs.changes.outputs.non-misc-ci == 'true' && needs.changes.outputs.non-barretenberg-cpp == 'true' }} | ||
if: needs.changes.outputs.non-docs == 'true' && needs.changes.outputs.non-misc-ci == 'true' && needs.changes.outputs.non-barretenberg-cpp == 'true' | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
outputs: | ||
e2e_list: ${{ steps.e2e_list.outputs.list }} | ||
|
@@ -134,7 +141,7 @@ jobs: | |
# all the non-bench end-to-end integration tests for aztec | ||
e2e: | ||
needs: [build, changes] | ||
if: ${{ needs.changes.outputs.non-barretenberg-cpp == 'true' }} | ||
if: needs.changes.outputs.non-barretenberg-cpp == 'true' | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
|
@@ -164,7 +171,7 @@ jobs: | |
# all the benchmarking end-to-end integration tests for aztec (not required to merge) | ||
bench-e2e: | ||
needs: [build, changes] | ||
if: ${{ needs.changes.outputs.non-barretenberg-cpp == 'true' }} | ||
if: needs.changes.outputs.non-barretenberg-cpp == 'true' | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
|
@@ -197,7 +204,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
needs: [build-images, changes] | ||
# Note: not fully accurate, but to work with bench-summary needs to be the same as bench-e2e | ||
if: ${{ needs.changes.outputs.non-barretenberg-cpp == 'true' }} | ||
if: needs.changes.outputs.non-barretenberg-cpp == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -239,7 +246,7 @@ jobs: | |
run: | | ||
earthly-ci -P +bench-aggregate | ||
- name: "Download base benchmark and package into earthly" | ||
if: ${{ github.event_name == 'pull_request' }} | ||
if: github.event_name == 'pull_request' | ||
run: | | ||
# Download the base benchmark locally (requires AWS creds and .git history) | ||
mkdir -p $BENCH_FOLDER | ||
|
@@ -252,7 +259,7 @@ jobs: | |
BENCH_FOLDER: "./scripts/logs/tmp/bench" | ||
PULL_REQUEST: "${{ github.event.pull_request.number }}" | ||
- name: "Generate summary comment if pull request" | ||
if: ${{ github.event_name == 'pull_request' }} | ||
if: github.event_name == 'pull_request' | ||
working-directory: ./yarn-project/scripts | ||
run: | | ||
earthly-ci -P +bench-comment | ||
|
@@ -262,7 +269,7 @@ jobs: | |
bb-gcc: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg-cpp == 'true' }} | ||
if: needs.changes.outputs.barretenberg-cpp == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -282,7 +289,7 @@ jobs: | |
bb-native-tests: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg-cpp == 'true' }} | ||
if: needs.changes.outputs.barretenberg-cpp == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -300,7 +307,7 @@ jobs: | |
bb-js-test: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -315,7 +322,7 @@ jobs: | |
noir-build-acir-tests: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -329,7 +336,7 @@ jobs: | |
bb-acir-tests-bb: | ||
needs: [noir-build-acir-tests, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -344,7 +351,7 @@ jobs: | |
bb-acir-tests-sol: | ||
needs: [noir-build-acir-tests, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -359,7 +366,7 @@ jobs: | |
bb-acir-tests-sol-honk: | ||
needs: [noir-build-acir-tests, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -374,7 +381,7 @@ jobs: | |
bb-acir-tests-bb-js: | ||
needs: [noir-build-acir-tests, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -389,7 +396,7 @@ jobs: | |
noir-format: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.noir == 'true' || needs.changes.outputs.noir-projects == 'true' }} | ||
if: needs.changes.outputs.noir == 'true' || needs.changes.outputs.noir-projects == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -409,7 +416,7 @@ jobs: | |
noir-test: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -422,7 +429,7 @@ jobs: | |
noir-examples: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -435,7 +442,7 @@ jobs: | |
noir-packages-test: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -449,7 +456,7 @@ jobs: | |
noir-projects: | ||
needs: [build-images, changes, build] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' || needs.changes.outputs.noir-projects == 'true' }} | ||
if: needs.changes.outputs.barretenberg == 'true' || needs.changes.outputs.noir == 'true' || needs.changes.outputs.noir-projects == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -464,7 +471,7 @@ jobs: | |
avm-format: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.avm-transpiler == 'true' || needs.changes.outputs.noir == 'true' }} | ||
if: needs.changes.outputs.avm-transpiler == 'true' || needs.changes.outputs.noir == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -518,7 +525,7 @@ jobs: | |
l1-contracts-test: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.l1-contracts == 'true' }} | ||
if: needs.changes.outputs.l1-contracts == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -531,7 +538,7 @@ jobs: | |
docs-preview: | ||
needs: [build-images, changes] | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
if: ${{ needs.changes.outputs.non-barretenberg-cpp == 'true' }} | ||
if: needs.changes.outputs.non-barretenberg-cpp == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -551,7 +558,7 @@ jobs: | |
bb-bench: | ||
runs-on: ubuntu-20.04 | ||
needs: [build-images, changes] | ||
if: ${{ needs.changes.outputs.barretenberg-cpp == 'true' }} | ||
if: needs.changes.outputs.barretenberg-cpp == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: "${{ env.GIT_COMMIT }}" } | ||
|
@@ -579,7 +586,7 @@ jobs: | |
# https://aztecprotocol.github.io/aztec-packages/dev/bench/ with new benchmark data. | ||
# This also creates an alert if benchmarks exceed the threshold specified below. | ||
- name: Store benchmark result | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
if: github.ref == 'refs/heads/master' | ||
uses: benchmark-action/github-action-benchmark@4de1bed97a47495fc4c5404952da0499e31f5c29 | ||
with: | ||
name: C++ Benchmark | ||
|
@@ -635,7 +642,7 @@ jobs: | |
|
||
protocol-circuits-gates-report: | ||
needs: [build-images, changes] | ||
if: ${{ needs.changes.outputs.non-docs == 'true' && needs.changes.outputs.non-misc-ci == 'true' }} | ||
if: needs.changes.outputs.non-docs == 'true' && needs.changes.outputs.non-misc-ci == 'true' | ||
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
permissions: | ||
pull-requests: write | ||
|
@@ -705,7 +712,8 @@ jobs: | |
# - protocol-circuits-gates-report # non-blocking | ||
if: always() | ||
steps: | ||
- name: Report overall success | ||
- name: Report overall success (non-draft) | ||
if: github.event.pull_request.draft == false | ||
env: | ||
# We treat any skipped or failing jobs as a failure for the workflow as a whole. | ||
FAIL: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} | ||
|
@@ -717,6 +725,9 @@ jobs: | |
echo "All jobs succeeded, merge allowed." | ||
exit 0 | ||
fi | ||
- name: Block merge (draft) | ||
if: github.event.pull_request.draft | ||
run: echo "Can't merge drafts." && exit 1 | ||
|
||
rerun-check: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -754,7 +765,7 @@ jobs: | |
- boxes | ||
- boxes-test | ||
# - protocol-circuits-gates-report # non-blocking | ||
if: ${{ !cancelled() }} | ||
if: github.event.pull_request.draft == false && !cancelled() | ||
steps: | ||
- name: Check for Rerun | ||
env: | ||
|
@@ -773,7 +784,7 @@ jobs: | |
needs: | ||
- merge-check | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.ref == 'refs/heads/master' && failure() && github.run_attempt >= 2 }} | ||
if: github.event.pull_request.draft == false && github.ref == 'refs/heads/master' && failure() && github.run_attempt >= 2 | ||
steps: | ||
- name: Send notification to aztec3-ci channel if workflow failed on master | ||
uses: slackapi/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
e84f7d2e81c1f59e9af015f38c2d477607a9c558 | ||
3c3ed1e3d28946a02071c524dd128afe131bc3da |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
".": "0.52.0", | ||
".": "0.54.0", | ||
"yarn-project/cli": "0.35.1", | ||
"yarn-project/aztec": "0.52.0", | ||
"barretenberg": "0.52.0", | ||
"barretenberg/ts": "0.52.0" | ||
"yarn-project/aztec": "0.54.0", | ||
"barretenberg": "0.54.0", | ||
"barretenberg/ts": "0.54.0" | ||
} |
Oops, something went wrong.