Skip to content

Plumbs noir (for review only) NO MERGE#3427

Closed
charlielye wants to merge 18 commits intomasterfrom
cl/plumb_noir_pre_pull
Closed

Plumbs noir (for review only) NO MERGE#3427
charlielye wants to merge 18 commits intomasterfrom
cl/plumb_noir_pre_pull

Conversation

@charlielye
Copy link
Contributor

@charlielye charlielye commented Nov 27, 2023

This PR is here simply to provide something cleaner to review, otherwise we see all the noir pull changes.
Actual passing PR to review is here: #3420

  • Adds noir-packages job to build the ts packages.
  • Fix sed use in bb.js to work on Mac.
  • Bootstrap scripts for noir, call it from bootstrap.sh.
  • Fix to build_local.
  • Use the noir bootstrap scripts to build the docker containers.
  • yarn-project now builds the protocol circuits from the noir build in bootstrap and dockerfile.
  • yarn-project portals the noir packages in. *What does this mean for releases!?
  • Fixes as we're now on noir 19.
  • Remove noir-protocol-circuits/src/target from repo as they're now built.
  • Bootstrap improvements:
    • Defaults to a "lighter" bootstrap.
    • bootstrap.sh clean resets repo to as if fresh clone. (be careful).
    • Introduces ability to test the bootstrap process via a docker container. (might add a nightly job, plus alternative ubuntu releases).

nvm install
set -eu

# if [ "$(uname)" = "Darwin" ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed commented in "full" pr.
Depending on nvm is nasty. It's now assumed the user has node 18 installed and available.
I believe we get appropriate version warnings if they dont.

const decodedInputs: DecodedInputs = abiDecode(PrivateKernelInitSimulatedJson.abi as Abi, _witnessMap);

// Cast the inputs as the return type
return decodedInputs.return_value as ReturnType;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not getting why this one has typecasts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why it wasn't an issue before.
This is the fact that JSON doesnt have type info so string != 'blah'

Copy link
Collaborator

@ludamad ludamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm other than comment

charlielye added a commit that referenced this pull request Nov 27, 2023
For a less noisey review:
#3427
It contains everything prior to the noir pulls. This is PR we actually
want to merge though.


* Adds `noir-packages` job to build the ts packages.
* Fix `sed` use in bb.js to work on Mac.
* Bootstrap scripts for noir, call it from bootstrap.sh.
* Fix to `build_local`.
* Use the noir bootstrap scripts to build the docker containers.
* `yarn-project` now builds the protocol circuits from the noir build in
bootstrap and dockerfile.
* `yarn-project` portals the noir packages in. **What does this mean for
releases!?*
* Fixes as we're now on noir 19.
* Remove `noir-protocol-circuits/src/target` from repo as they're now
built.
* Bootstrap improvements:
  * Defaults to a "lighter" bootstrap.
  * `bootstrap.sh clean` resets repo to as if fresh clone. (be careful).
* Introduces ability to test the bootstrap process via a docker
container. (might add a nightly job, plus alternative ubuntu releases).
@charlielye charlielye closed this Nov 27, 2023
AztecBot pushed a commit to AztecProtocol/build-system that referenced this pull request Nov 28, 2023
For a less noisey review:
AztecProtocol/aztec-packages#3427
It contains everything prior to the noir pulls. This is PR we actually
want to merge though.


* Adds `noir-packages` job to build the ts packages.
* Fix `sed` use in bb.js to work on Mac.
* Bootstrap scripts for noir, call it from bootstrap.sh.
* Fix to `build_local`.
* Use the noir bootstrap scripts to build the docker containers.
* `yarn-project` now builds the protocol circuits from the noir build in
bootstrap and dockerfile.
* `yarn-project` portals the noir packages in. **What does this mean for
releases!?*
* Fixes as we're now on noir 19.
* Remove `noir-protocol-circuits/src/target` from repo as they're now
built.
* Bootstrap improvements:
  * Defaults to a "lighter" bootstrap.
  * `bootstrap.sh clean` resets repo to as if fresh clone. (be careful).
* Introduces ability to test the bootstrap process via a docker
container. (might add a nightly job, plus alternative ubuntu releases).
AztecBot pushed a commit to AztecProtocol/barretenberg that referenced this pull request Nov 28, 2023
For a less noisey review:
AztecProtocol/aztec-packages#3427
It contains everything prior to the noir pulls. This is PR we actually
want to merge though.


* Adds `noir-packages` job to build the ts packages.
* Fix `sed` use in bb.js to work on Mac.
* Bootstrap scripts for noir, call it from bootstrap.sh.
* Fix to `build_local`.
* Use the noir bootstrap scripts to build the docker containers.
* `yarn-project` now builds the protocol circuits from the noir build in
bootstrap and dockerfile.
* `yarn-project` portals the noir packages in. **What does this mean for
releases!?*
* Fixes as we're now on noir 19.
* Remove `noir-protocol-circuits/src/target` from repo as they're now
built.
* Bootstrap improvements:
  * Defaults to a "lighter" bootstrap.
  * `bootstrap.sh clean` resets repo to as if fresh clone. (be careful).
* Introduces ability to test the bootstrap process via a docker
container. (might add a nightly job, plus alternative ubuntu releases).
@ludamad ludamad deleted the cl/plumb_noir_pre_pull branch August 22, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants