-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(cli): Forward nargo execute
to noir_artifact_cli
#7406
base: 7381-use-artifact-fs
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Compilation Time'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20
.
Benchmark suite | Current: c5d993a | Previous: 119bf62 | Ratio |
---|---|---|---|
global_var_regression_entry_points |
0.618 s |
0.506 s |
1.22 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @TomAFrench
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Compilation Memory'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20
.
Benchmark suite | Current: 66bcf73 | Previous: b7ace68 | Ratio |
---|---|---|---|
rollup-base-private |
1170 MB |
949.5 MB |
1.23 |
rollup-base-public |
1040 MB |
815.02 MB |
1.28 |
rollup-block-merge |
596.48 MB |
371.19 MB |
1.61 |
rollup-block-root-empty |
550.39 MB |
325.09 MB |
1.69 |
rollup-merge |
548.8 MB |
323.5 MB |
1.70 |
rollup-root |
596.49 MB |
371.18 MB |
1.61 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @TomAFrench
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Execution Memory'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20
.
Benchmark suite | Current: 66bcf73 | Previous: b7ace68 | Ratio |
---|---|---|---|
rollup-base-private |
655.58 MB |
430.27 MB |
1.52 |
rollup-base-public |
594.32 MB |
369.01 MB |
1.61 |
rollup-block-merge |
540.64 MB |
315.32 MB |
1.71 |
rollup-merge |
533.22 MB |
307.91 MB |
1.73 |
rollup-root |
540.62 MB |
315.3 MB |
1.71 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @TomAFrench
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Test Suite Duration'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20
.
Benchmark suite | Current: 7f44036 | Previous: fdfe2bf | Ratio |
---|---|---|---|
AztecProtocol_aztec-packages_noir-projects_noir-protocol-circuits_crates_blob |
66 s |
51 s |
1.29 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @TomAFrench
nargo execute
to noir_artifact_cli::execution
functionsnargo execute
to noir_artifact_cli
64e185e
to
66bcf73
Compare
Hm, I don't understand why the compilation memory would be affected by this PR 🤔 I checked locally for example this one:
which reports a 70% increase in compilation memory above. For me Also tried execution with the same identical result:
|
c85cee3
to
42acd9a
Compare
42acd9a
to
9c2c3d4
Compare
Description
Problem*
Resolves #7380
Builds on #7391
Summary*
Changed
nargo_cli::execute_cmd::run
to create and run an instance ofnoir_artifact_cli::commands::execute_cmd::ExecuteCommand
to completely outsource program execution tonoir_artifact_cli
.Additional Context
Up to now the
ExecuteCommand
innoir_artifact_cli
was part of the binary package; now it's exposed as part of the library through thecommands
module, so we can forward calls fromnargo
by using it as a dependency and just mapping command parameters.Other options would be to:
noir-artifact execute
as a sub-processnoir_artifact_cli::executions
The reason I thought creating and running
ExecuteCommand
would be good are:nargo
aware of wherenoir-artifact
can be found, which requires changing a bunch of scripts that currently usenargo
noir-artefact execute
expects, which is a bit more error pronenargo execute
to work with them as well, and there wouldn't be a need to differentiate.nargo
has to span the compilation and the execution phase; if they are in one process there cannot be any clashes, although at the momentnoir-artifact
doesn't do any lockingexecutions
option there is still some duplication of the workflow, and we're a bit more removed from the conceptual "shelling out"I mainly wanted to leave aztec-packages untouched for now, but with this change at least it would be simpler as
nargo
does little more than call the library functions to do the work.Documentation*
Check one:
PR Checklist*
cargo aartifact
on default settings.