mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[QA] update code coverage to use its own script (#100199)
* do run build script for code coverage * fix notifyOnError call * remove maxWorkers argument Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
be97fae12e
commit
bc3b9d694b
2 changed files with 39 additions and 2 deletions
31
test/scripts/jenkins_code_coverage.sh
Executable file
31
test/scripts/jenkins_code_coverage.sh
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd "$KIBANA_DIR"
|
||||
source src/dev/ci_setup/setup_env.sh
|
||||
|
||||
if [[ ! "$TASK_QUEUE_PROCESS_ID" ]]; then
|
||||
./test/scripts/jenkins_build_plugins.sh
|
||||
fi
|
||||
|
||||
# doesn't persist, also set in kibanaPipeline.groovy
|
||||
export KBN_NP_PLUGINS_BUILT=true
|
||||
|
||||
echo " -> Ensuring all functional tests are in a ciGroup"
|
||||
node scripts/ensure_all_tests_in_ci_group;
|
||||
|
||||
echo " -> Ensuring all x-pack functional tests are in a ciGroup"
|
||||
node x-pack/scripts/functional_tests --assert-none-excluded \
|
||||
--include-tag ciGroup1 \
|
||||
--include-tag ciGroup2 \
|
||||
--include-tag ciGroup3 \
|
||||
--include-tag ciGroup4 \
|
||||
--include-tag ciGroup5 \
|
||||
--include-tag ciGroup6 \
|
||||
--include-tag ciGroup7 \
|
||||
--include-tag ciGroup8 \
|
||||
--include-tag ciGroup9 \
|
||||
--include-tag ciGroup10 \
|
||||
--include-tag ciGroup11 \
|
||||
--include-tag ciGroup12 \
|
||||
--include-tag ciGroup13 \
|
||||
--include-tag ciGroupDocker
|
|
@ -189,17 +189,23 @@ def ingest(jobName, buildNumber, buildUrl, timestamp, previousSha, teamAssignmen
|
|||
}
|
||||
}
|
||||
|
||||
def prepareKibana() {
|
||||
kibanaPipeline.notifyOnError {
|
||||
runbld("./test/scripts/jenkins_code_coverage.sh", "Verify tests")
|
||||
}
|
||||
}
|
||||
|
||||
def runTests() {
|
||||
parallel([
|
||||
'kibana-intake-agent': workers.intake('kibana-intake', './test/scripts/jenkins_unit.sh'),
|
||||
'kibana-oss-agent' : workers.functional(
|
||||
'kibana-oss-tests',
|
||||
{ kibanaPipeline.buildKibana() },
|
||||
{ prepareKibana() },
|
||||
ossProks()
|
||||
),
|
||||
'kibana-xpack-agent' : workers.functional(
|
||||
'kibana-xpack-tests',
|
||||
{ kibanaPipeline.buildKibana() },
|
||||
{ prepareKibana() },
|
||||
xpackProks()
|
||||
),
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue