Skip to content

Commit

Permalink
chore(ci): parallelise noir-projects CI (#9270)
Browse files Browse the repository at this point in the history
This PR splits all of the tests for various noir projects so that they
can be run in parallel.
  • Loading branch information
TomAFrench authored Oct 17, 2024
1 parent 5861d4e commit 44ad5e5
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions noir-projects/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,40 @@ build:
SAVE ARTIFACT mock-protocol-circuits

test:
BUILD +test-protocol-circuits
BUILD +test-aztec-nr
BUILD +test-contracts

test-protocol-circuits:
FROM +build

# Install nargo
COPY ../noir/+nargo/nargo /usr/bin/nargo

RUN cd /usr/src/noir-projects/noir-protocol-circuits && nargo test --silence-warnings

test-aztec-nr:
FROM ../yarn-project/+txe

# Install nargo
COPY ../noir/+nargo/nargo /usr/bin/nargo

COPY +build/. /usr/src/noir-projects

RUN cd /usr/src/noir-projects/noir-protocol-circuits && nargo test --silence-warnings

RUN cd /usr/src/yarn-project/txe && yarn start & \
# Wait for TXE to initialize
sleep 5 && \
cd /usr/src/noir-projects/aztec-nr && \
NARGO_FOREIGN_CALL_TIMEOUT=300000 nargo test --silence-warnings --oracle-resolver http://localhost:8080

test-contracts:
FROM ../yarn-project/+txe

# Install nargo
COPY ../noir/+nargo/nargo /usr/bin/nargo

COPY +build/. /usr/src/noir-projects

RUN cd /usr/src/yarn-project/txe && yarn start & \
# Wait for TXE to initialize
sleep 5 && \
Expand Down

0 comments on commit 44ad5e5

Please sign in to comment.