Skip to content
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: Ensure that CLI and wasm compilers are sync in noir_wasm_testing #2079

Merged
merged 43 commits into from
Aug 4, 2023

Conversation

TomAFrench
Copy link
Member

@TomAFrench TomAFrench commented Jul 28, 2023

Description

Problem*

Resolves

Summary*

This is a pretty hacky solution to the mismatch of noirc versions between CLI and WASM. We should in future get wasm to reuse the build artifacts we have commited.

Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@TomAFrench
Copy link
Member Author

@jonybur Ahhhh, yeah. I forgot that the nix flake builds for a native backend by default. Good catch.

Perhaps we could solve this by updating the flake.nix to allow building the nargo cli with the wasm backend? This might be easier than adding barretenberg to the test runner job.

@TomAFrench
Copy link
Member Author

Let's not worry about running the release acceptance tests on this. We can add these in later once we're pulling build-nargo into this repo properly. We're just hacking here.

.github/workflows/wasm.yml Outdated Show resolved Hide resolved
.github/workflows/wasm.yml Outdated Show resolved Hide resolved
@TomAFrench
Copy link
Member Author

I'm going to merge this PR as we're using the same version of the compiler on both CLI and WASM now. Any remaining issues can be addressed in @jonybur's PR #1921

@TomAFrench TomAFrench merged commit 4e0a050 into jb/noir-testing-workflow Aug 4, 2023
6 of 7 checks passed
@TomAFrench TomAFrench deleted the tom/noir-wasm-testing branch August 4, 2023 14:09
github-merge-queue bot pushed a commit that referenced this pull request Aug 7, 2023
* Edit workflow

* Output built directory

* Fix noir_wasm copy

* Fix workflow

* Add mkdir to workflow

* Remove logs

* chore: Ensure that CLI and wasm compilers are sync in `noir_wasm_testing` (#2079)

---------

Co-authored-by: jonybur <jobur93@gmail.com>

* Update .github/workflows/wasm.yml

* chore: run browser tests rather than nodejs tests

* chore: fix test command in CI

* chore: bring noir-wasm-testing repo contents into wasm crate

---------

Co-authored-by: jonybur <jobur93@gmail.com>

* chore: update compile command to handle not being at repo root

* chore: remove unnecessary checkout

* chore: update location to look for nargo binary

* chore: add missing $

* chore: remove self-referential dependency

* chore: switch to `noir-lang/noir-source-resolver` version which exists

* chore: place downloaded wasm artifact in `crates/wasm` so it can resolve the resolver

* Revisions

* chore: fix CI workflow

* chore: remove usage of `matrix.target`

* chore: fix path to binary

* chore: remove unwanted printing when compiling noir program

* chore: update `Nargo.toml` to be compliant with new format

* chore: remove unnecessary checkout

* chore: add todo to workflow

* Update .github/workflows/wasm.yml

* Update crates/wasm/noir-script/src/main.nr

* Update crates/wasm/test/browser/index.test.ts

---------

Co-authored-by: TomAFrench <tom@tomfren.ch>
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants