mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* [QA][Code Coverage] fixup for auto config handling pr ## Summary Embed buildkite pipeline definition. Follow up pr to change cc per auto config handling. Also, resolves https://github.com/elastic/kibana/issues/132706 Increase worker count for `node scripts/build_kibana_platform_plugins` to 4 workers. Normalize file names within coverage files such that nyc correctly builds the combined summaries. _Ci runs this on myriad servers, so the paths are different, which "breaks" nyc's output_ Split the final merge of functional coverage into 2 passes due to [nyc issue](https://github.com/istanbuljs/nyc/issues/1263) Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
30 lines
821 B
Bash
Executable file
30 lines
821 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
buildPlatformPlugins() {
|
|
echo "--- Build Platform Plugins"
|
|
|
|
NODE_OPTIONS=--max_old_space_size=14336 \
|
|
node scripts/build_kibana_platform_plugins \
|
|
--no-examples --test-plugins --workers 4
|
|
}
|
|
|
|
runFTRInstrumented() {
|
|
local ftrConfig=$1
|
|
echo "--- $ runFTRInstrumented against $ftrConfig"
|
|
|
|
NODE_OPTIONS=--max_old_space_size=16384 \
|
|
./node_modules/.bin/nyc \
|
|
--nycrc-path ./src/dev/code_coverage/nyc_config/nyc.server.config.js \
|
|
node scripts/functional_tests \
|
|
--config="$ftrConfig" \
|
|
--exclude-tag "skipCoverage"
|
|
}
|
|
|
|
reportMergeFunctional() {
|
|
echo "--- Merging code coverage for FTR Configs"
|
|
|
|
NODE_OPTIONS=--max_old_space_size=16384 yarn nyc report \
|
|
--nycrc-path src/dev/code_coverage/nyc_config/nyc.functional.config.js --reporter json
|
|
}
|