Skip to content

Commit

Permalink
chore(ci): run noir tests in parallel to building e2e tests (#9977)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Nov 15, 2024
1 parent 386fc74 commit 6f3c3fe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ jobs:
run: earthly-ci --no-output ./+barretenberg-acir-tests-bb.js

noir-format:
needs: [build, configure]
needs: [build-images, configure]
runs-on: ${{ needs.configure.outputs.username }}-x86
if: needs.configure.outputs.noir == 'true' || needs.configure.outputs.noir-projects == 'true'
steps:
Expand All @@ -524,7 +524,7 @@ jobs:
earthly-ci --no-output ./+format
noir-test:
needs: [build, configure]
needs: [build-images, configure]
runs-on: ${{ needs.configure.outputs.username }}-x86
if: needs.configure.outputs.noir == 'true'
steps:
Expand All @@ -537,6 +537,7 @@ jobs:
run: earthly-ci --no-output ./noir+test

noir-examples:
# We delay this job until after the `build` job has completed as it depends on bb being built.
needs: [build, configure]
runs-on: ${{ needs.configure.outputs.username }}-x86
if: needs.configure.outputs.noir == 'true'
Expand All @@ -550,6 +551,7 @@ jobs:
run: earthly-ci --no-output ./noir+examples

noir-packages-test:
# We delay this job until after the `build` job has completed as it depends on bb.js being built.
needs: [build, configure]
runs-on: ${{ needs.configure.outputs.username }}-x86
if: needs.configure.outputs.barretenberg == 'true' || needs.configure.outputs.noir == 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ We can now use `nargo` to generate a _Prover.toml_ file, where our input values
```sh
cd hello_world
nargo check
```

Let's feed some valid values into this file:

Expand All @@ -87,7 +88,7 @@ The command also automatically compiles your Noir program if it was not already
With circuit compiled and witness generated, we're ready to prove.

## Proving backend

Different proving backends may provide different tools and commands to work with Noir programs. Here Barretenberg's `bb` CLI tool is used as an example:

```sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ We can now use `nargo` to generate a _Prover.toml_ file, where our input values
```sh
cd hello_world
nargo check
```

Let's feed some valid values into this file:

Expand All @@ -87,7 +88,7 @@ The command also automatically compiles your Noir program if it was not already
With circuit compiled and witness generated, we're ready to prove.

## Proving backend

Different proving backends may provide different tools and commands to work with Noir programs. Here Barretenberg's `bb` CLI tool is used as an example:

```sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ We can now use `nargo` to generate a _Prover.toml_ file, where our input values
```sh
cd hello_world
nargo check
```

Let's feed some valid values into this file:

Expand All @@ -89,7 +90,7 @@ The command also automatically compiles your Noir program if it was not already
With circuit compiled and witness generated, we're ready to prove.

## Proving backend

Different proving backends may provide different tools and commands to work with Noir programs. Here Barretenberg's `bb` CLI tool is used as an example:

```sh
Expand Down

0 comments on commit 6f3c3fe

Please sign in to comment.