-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
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