forked from AztecProtocol/aztec-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Do not rebuild yarn-projects on bench-comment (AztecProtocol#6396
) The bench-comment job was re-running bootstrap.sh on yarn-project (see [here](https://github.com/AztecProtocol/aztec-packages/actions/runs/9081368520/job/24957398753?pr=6211#step:7:314), most likely because the "Download base benchmark" step on ci.yml was downloading a new file to `yarn-projects`, which caused the `COPY . .` in yarn project build to miss cache. This downloads the bench files outside the source folder, so it doesn't trigger a rebuild.
- Loading branch information
1 parent
9321aef
commit 797115b
Showing
3 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
VERSION 0.8 | ||
FROM node:18.19.0 | ||
|
||
pack-base-benchmark: | ||
# Copies the base benchmark (ie the master run) into a container and packs it as an artifact, | ||
# so it can be consumed from bench-comment. Note that we need to download base-benchmark | ||
# outside of this target beforehand. We cannot run it within an Earthly container because it needs | ||
# access to the .git folder, and we cannot run it with a LOCALLY statement because Earthly does | ||
# not support secrets when running locally (and we need) the AWS access keys to access S3. | ||
# We also cannot COPY the local file directly from bench-comment, since the file must be present | ||
# within the build context so we can copy it (ie within yarn-project/scripts), and that invalidates | ||
# the cache of yarn-project+build since it does a `COPY . .`, and we cannot add the bench file to | ||
# earthlyignore or we would not be able to copy it from anywhere. So we need to place this target | ||
# outside yarn-project altogether, since that folder should not be modified. | ||
ARG LOCAL_BENCH_FOLDER | ||
FROM scratch | ||
LET BENCH_FOLDER=/usr/var/bench | ||
COPY $LOCAL_BENCH_FOLDER $BENCH_FOLDER | ||
SAVE ARTIFACT $BENCH_FOLDER bench |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters