-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Use es snapshot cache for jest integration tests (#196695)
- Loading branch information
Showing
3 changed files
with
16 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
# If cached snapshots are baked into the agent, copy them into our workspace first | ||
# We are doing this rather than simply changing the ES base path because many workers | ||
# run with the workspace mounted in memory or on a local ssd | ||
cacheDir="$ES_CACHE_DIR/cache" | ||
if [[ -d "$cacheDir" ]]; then | ||
mkdir -p .es/cache | ||
echo "--- Copying ES snapshot cache" | ||
echo "Copying cached snapshots from $cacheDir to .es/cache" | ||
cp -R "$cacheDir"/* .es/cache/ | ||
fi |
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