mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
52e78e2437
commit
ae6f0fa9b1
5 changed files with 13 additions and 29 deletions
|
@ -11,14 +11,14 @@ kibanaPipeline(timeoutMinutes: 120) {
|
|||
'CI_PARALLEL_PROCESS_NUMBER=1'
|
||||
]) {
|
||||
parallel([
|
||||
'oss-visualRegression': {
|
||||
workers.ci(name: 'oss-visualRegression', size: 's-highmem', ramDisk: true) {
|
||||
kibanaPipeline.functionalTestProcess('oss-visualRegression', './test/scripts/jenkins_visual_regression.sh')()
|
||||
'oss-baseline': {
|
||||
workers.ci(name: 'oss-baseline', size: 's-highmem', ramDisk: true, runErrorReporter: false) {
|
||||
kibanaPipeline.functionalTestProcess('oss-baseline', './test/scripts/jenkins_baseline.sh')()
|
||||
}
|
||||
},
|
||||
'xpack-visualRegression': {
|
||||
workers.ci(name: 'xpack-visualRegression', size: 's-highmem', ramDisk: true) {
|
||||
kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh')()
|
||||
'xpack-baseline': {
|
||||
workers.ci(name: 'xpack-baseline', size: 's-highmem', ramDisk: true, runErrorReporter: false) {
|
||||
kibanaPipeline.functionalTestProcess('xpack-baseline', './test/scripts/jenkins_xpack_baseline.sh')()
|
||||
}
|
||||
},
|
||||
])
|
||||
|
|
|
@ -9,10 +9,3 @@ linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
|||
installDir="$PARENT_DIR/install/kibana"
|
||||
mkdir -p "$installDir"
|
||||
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
||||
|
||||
echo " -> running visual regression tests from kibana directory"
|
||||
yarn percy exec -t 10000 -- -- \
|
||||
node scripts/functional_tests \
|
||||
--debug --bail \
|
||||
--kibana-install-dir "$installDir" \
|
||||
--config test/visual_regression/config.ts;
|
|
@ -14,16 +14,5 @@ tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|||
mkdir -p "$WORKSPACE/kibana-build-xpack"
|
||||
cp -pR install/kibana/. $WORKSPACE/kibana-build-xpack/
|
||||
|
||||
# cd "$KIBANA_DIR"
|
||||
# source "test/scripts/jenkins_xpack_page_load_metrics.sh"
|
||||
|
||||
cd "$KIBANA_DIR"
|
||||
source "test/scripts/jenkins_xpack_saved_objects_field_metrics.sh"
|
||||
|
||||
echo " -> running visual regression tests from x-pack directory"
|
||||
cd "$XPACK_DIR"
|
||||
yarn percy exec -t 10000 -- -- \
|
||||
node scripts/functional_tests \
|
||||
--debug --bail \
|
||||
--kibana-install-dir "$installDir" \
|
||||
--config test/visual_regression/config.ts;
|
|
@ -1,4 +1,4 @@
|
|||
def withPostBuildReporting(Closure closure) {
|
||||
def withPostBuildReporting(Map params, Closure closure) {
|
||||
try {
|
||||
closure()
|
||||
} finally {
|
||||
|
@ -9,8 +9,10 @@ def withPostBuildReporting(Closure closure) {
|
|||
print ex
|
||||
}
|
||||
|
||||
catchErrors {
|
||||
runErrorReporter([pwd()] + parallelWorkspaces)
|
||||
if (params.runErrorReporter) {
|
||||
catchErrors {
|
||||
runErrorReporter([pwd()] + parallelWorkspaces)
|
||||
}
|
||||
}
|
||||
|
||||
catchErrors {
|
||||
|
|
|
@ -118,11 +118,11 @@ def base(Map params, Closure closure) {
|
|||
|
||||
// Worker for ci processes. Extends the base worker and adds GCS artifact upload, error reporting, junit processing
|
||||
def ci(Map params, Closure closure) {
|
||||
def config = [ramDisk: true, bootstrapped: true] + params
|
||||
def config = [ramDisk: true, bootstrapped: true, runErrorReporter: true] + params
|
||||
|
||||
return base(config) {
|
||||
kibanaPipeline.withGcsArtifactUpload(config.name) {
|
||||
kibanaPipeline.withPostBuildReporting {
|
||||
kibanaPipeline.withPostBuildReporting(config) {
|
||||
closure()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue