Skip to content

Commit

Permalink
simplify ingest script
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Jan 28, 2021
1 parent 2494b24 commit ec8e877
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,15 @@ TEAM_ASSIGN_PATH=$5
# Build team assignments dat file
node scripts/generate_team_assignments.js --verbose --src .github/CODEOWNERS --dest $TEAM_ASSIGN_PATH

for x in functional; do
echo "### Ingesting coverage for ${x}"
echo "### Ingesting coverage for functional"

COVERAGE_SUMMARY_FILE=target/kibana-coverage/${x}-combined/coverage-summary.json

node scripts/ingest_coverage.js --verbose --path ${COVERAGE_SUMMARY_FILE} --vcsInfoPath ./VCS_INFO.txt --teamAssignmentsPath $TEAM_ASSIGN_PATH
done
COVERAGE_SUMMARY_FILE=target/kibana-coverage/functional-combined/coverage-summary.json
node scripts/ingest_coverage.js --verbose --path ${COVERAGE_SUMMARY_FILE} --vcsInfoPath ./VCS_INFO.txt --teamAssignmentsPath $TEAM_ASSIGN_PATH

# Need to override COVERAGE_INGESTION_KIBANA_ROOT since jest coverage-summary.json has original intake worker path
echo "### Ingesting coverage for jest"
# Need to override COVERAGE_INGESTION_KIBANA_ROOT since json file has original intake worker path
COVERAGE_SUMMARY_FILE=target/kibana-coverage/jest-combined/coverage-summary.json
export COVERAGE_INGESTION_KIBANA_ROOT=/dev/shm/workspace/kibana

node scripts/ingest_coverage.js --verbose --path ${COVERAGE_SUMMARY_FILE} --vcsInfoPath ./VCS_INFO.txt --teamAssignmentsPath $TEAM_ASSIGN_PATH

echo "### Ingesting Code Coverage - Complete"
Expand Down

0 comments on commit ec8e877

Please sign in to comment.