-
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.
Add machinery to bootstrap the cc_app with code coverage
data from gcs, using "gsutil", to search for static site data, per ci job.
- Loading branch information
1 parent
08a5453
commit d79ce34
Showing
3 changed files
with
29 additions
and
0 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
24 changes: 24 additions & 0 deletions
24
src/dev/code_coverage/shell_scripts/bootstrap_app_inital_data.sh
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,24 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo "### Bootstrapping App Initial Data" | ||
|
||
BUCKET="gs://kibana-ci-artifacts/jobs/elastic+kibana+code-coverage" | ||
export BUCKET | ||
CURRENT_BUILD_ID=$1 | ||
export CURRENT_BUILD_ID | ||
PAST_BUILD_ID=$((CURRENT_BUILD_ID - 15)) | ||
export PAST_BUILD_ID | ||
|
||
queryDataStore () { | ||
# Sink errors to /dev/null...THEE BITBUCKET :) | ||
for x in `seq ${PAST_BUILD_ID} ${CURRENT_BUILD_ID}` | ||
do | ||
gsutil ls -a ${BUCKET}/${x} 2>/dev/null |grep Z 1>> bootstrapped.txt | ||
done | ||
} | ||
queryDataStore | ||
|
||
|
||
echo "### Bootstrapping App Initial Data - Complete" |
Empty file.