* Revert "temporarily disable firefox functional tests in PRs (#71116)" This reverts commit54bd07f81b
. * Revert "[savedObjects field count] run in baseline job (#70999)" This reverts commit53ee7a762d
. * Revert "[CI] Add pipeline task queue framework and merge workers into one (#64011)" This reverts commit465ed21194
. * Revert revert of change to jenkins_xpack_visual_regression.sh Co-authored-by: spalger <spalger@users.noreply.github.com>
43 lines
1.8 KiB
Bash
Executable file
43 lines
1.8 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source test/scripts/jenkins_test_setup_oss.sh
|
|
|
|
if [[ -z "$CODE_COVERAGE" ]]; then
|
|
checks-reporter-with-killswitch "Functional tests / Group ${CI_GROUP}" yarn run grunt "run:functionalTests_ciGroup${CI_GROUP}";
|
|
|
|
if [ "$CI_GROUP" == "1" ]; then
|
|
source test/scripts/jenkins_build_kbn_sample_panel_action.sh
|
|
yarn run grunt run:pluginFunctionalTestsRelease --from=source;
|
|
yarn run grunt run:exampleFunctionalTestsRelease --from=source;
|
|
yarn run grunt run:interpreterFunctionalTestsRelease;
|
|
fi
|
|
else
|
|
echo " -> Running Functional tests with code coverage"
|
|
export NODE_OPTIONS=--max_old_space_size=8192
|
|
|
|
echo " -> making hard link clones"
|
|
cd ..
|
|
cp -RlP kibana "kibana${CI_GROUP}"
|
|
cd "kibana${CI_GROUP}"
|
|
|
|
echo " -> running tests from the clone folder"
|
|
#yarn run grunt "run:functionalTests_ciGroup${CI_GROUP}";
|
|
node scripts/functional_tests --debug --include-tag "ciGroup$CI_GROUP" --exclude-tag "skipCoverage" || true;
|
|
|
|
if [[ -d target/kibana-coverage/functional ]]; then
|
|
echo " -> replacing kibana${CI_GROUP} with kibana in json files"
|
|
sed -i "s|kibana${CI_GROUP}|kibana|g" target/kibana-coverage/functional/*.json
|
|
echo " -> copying coverage to the original folder"
|
|
mkdir -p ../kibana/target/kibana-coverage/functional
|
|
mv target/kibana-coverage/functional/* ../kibana/target/kibana-coverage/functional/
|
|
fi
|
|
|
|
echo " -> moving junit output, silently fail in case of no report"
|
|
mkdir -p ../kibana/target/junit
|
|
mv target/junit/* ../kibana/target/junit/ || echo "copying junit failed"
|
|
|
|
echo " -> copying screenshots and html for failures"
|
|
cp -r test/functional/screenshots/* ../kibana/test/functional/screenshots/ || echo "copying screenshots failed"
|
|
cp -r test/functional/failure_debug ../kibana/test/functional/ || echo "copying html failed"
|
|
fi
|