mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[ci] Use es snapshot cache for jest integration tests (#196695)
This commit is contained in:
parent
cf5d2e70da
commit
8bf08bfee6
3 changed files with 16 additions and 11 deletions
14
.buildkite/scripts/copy_es_snapshot_cache.sh
Executable file
14
.buildkite/scripts/copy_es_snapshot_cache.sh
Executable file
|
@ -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
|
|
@ -8,17 +8,7 @@ source .buildkite/scripts/common/util.sh
|
|||
|
||||
.buildkite/scripts/bootstrap.sh
|
||||
.buildkite/scripts/download_build_artifacts.sh
|
||||
|
||||
# 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
|
||||
.buildkite/scripts/copy_es_snapshot_cache.sh
|
||||
|
||||
is_test_execution_step
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ source .buildkite/scripts/common/util.sh
|
|||
is_test_execution_step
|
||||
|
||||
.buildkite/scripts/bootstrap.sh
|
||||
.buildkite/scripts/copy_es_snapshot_cache.sh
|
||||
|
||||
echo '--- Jest Integration Tests'
|
||||
.buildkite/scripts/steps/test/jest_parallel.sh jest.integration.config.js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue