Skip to content

Commit

Permalink
chore(ci): add new e2e base target (#7179)
Browse files Browse the repository at this point in the history
I've noticed that we have to do a fair amount of installing from apt
relatively often which only happens once the `+build` target is done.
Ideally we'd do this in parallel so I've split off a different target in
order to try and get earthly to be more proactive.
  • Loading branch information
TomAFrench authored Jun 25, 2024
1 parent c661fde commit 26fc599
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions yarn-project/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ anvil:
FROM ../build-images+build
SAVE ARTIFACT /opt/foundry/bin/anvil

end-to-end:
end-to-end-base:
FROM ubuntu:noble
# add repository for chromium
RUN apt-get update && apt-get install -y software-properties-common \
Expand All @@ -221,10 +221,15 @@ end-to-end:
ENV ACVM_BINARY_PATH=/usr/src/noir/noir-repo/target/release/acvm
ENV PROVER_AGENT_CONCURRENCY=8
RUN mkdir -p $BB_WORKING_DIRECTORY $ACVM_WORKING_DIRECTORY

RUN ln -s /usr/src/yarn-project/.yarn/releases/yarn-3.6.3.cjs /usr/local/bin/yarn

end-to-end:
FROM +end-to-end-base

COPY +anvil/anvil /opt/foundry/bin/anvil
COPY +end-to-end-prod/usr/src /usr/src
WORKDIR /usr/src/yarn-project/end-to-end
RUN ln -s /usr/src/yarn-project/.yarn/releases/yarn-3.6.3.cjs /usr/local/bin/yarn
ENTRYPOINT ["yarn", "test"]

scripts-prod:
Expand Down

0 comments on commit 26fc599

Please sign in to comment.