Skip to content

Commit 30e8c89

Browse files
committed
Merge branch fix/cloning-embeddable-dashboard into fix/embeddable-panel-input-updates
2 parents 99ad8ea + 01ac187 commit 30e8c89

File tree

16,781 files changed

+962803
-565240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

16,781 files changed

+962803
-565240
lines changed

.backportrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"targetBranchChoices": [
44
{ "name": "master", "checked": true },
55
{ "name": "7.x", "checked": true },
6+
"7.10",
67
"7.9",
78
"7.8",
89
"7.7",
@@ -27,7 +28,7 @@
2728
"targetPRLabels": ["backport"],
2829
"branchLabelMapping": {
2930
"^v8.0.0$": "master",
30-
"^v7.10.0$": "7.x",
31+
"^v7.11.0$": "7.x",
3132
"^v(\\d+).(\\d+).\\d+$": "$1.$2"
3233
}
3334
}

.browserslistrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ last 2 Chrome versions
44
last 2 Safari versions
55
> 0.25%
66
not ie 11
7+
not op_mini all
8+
not samsung 4
79

810
[dev]
911
last 1 chrome versions

.ci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# NOTE: This Dockerfile is ONLY used to run certain tasks in CI. It is not used to run Kibana or as a distributable.
22
# If you're looking for the Kibana Docker image distributable, please see: src/dev/build/tasks/os_packages/docker_generator/templates/dockerfile.template.ts
33

4-
ARG NODE_VERSION=10.21.0
4+
ARG NODE_VERSION=10.22.1
55

66
FROM node:${NODE_VERSION} AS base
77

.ci/Jenkinsfile_baseline_capture

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ kibanaPipeline(timeoutMinutes: 120) {
1111
'CI_PARALLEL_PROCESS_NUMBER=1'
1212
]) {
1313
parallel([
14-
'oss-visualRegression': {
15-
workers.ci(name: 'oss-visualRegression', size: 's-highmem', ramDisk: true) {
16-
kibanaPipeline.functionalTestProcess('oss-visualRegression', './test/scripts/jenkins_visual_regression.sh')()
14+
'oss-baseline': {
15+
workers.ci(name: 'oss-baseline', size: 'l', ramDisk: true, runErrorReporter: false) {
16+
kibanaPipeline.functionalTestProcess('oss-baseline', './test/scripts/jenkins_baseline.sh')()
1717
}
1818
},
19-
'xpack-visualRegression': {
20-
workers.ci(name: 'xpack-visualRegression', size: 's-highmem', ramDisk: true) {
21-
kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh')()
19+
'xpack-baseline': {
20+
workers.ci(name: 'xpack-baseline', size: 'l', ramDisk: true, runErrorReporter: false) {
21+
kibanaPipeline.functionalTestProcess('xpack-baseline', './test/scripts/jenkins_xpack_baseline.sh')()
2222
}
2323
},
2424
])

.ci/Jenkinsfile_coverage

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ kibanaPipeline(timeoutMinutes: 240) {
1212
]) {
1313
workers.base(name: 'coverage-worker', size: 'l', ramDisk: false, bootstrapped: false) {
1414
catchError {
15+
16+
kibanaPipeline.bash("""
17+
echo '${TIME_STAMP}'
18+
""", "### Print Canonical Time Stamp")
19+
1520
kibanaCoverage.runTests()
16-
kibanaTeamAssign.load('team_assignment', "### Upload Team Assignment JSON")
1721
handleIngestion(TIME_STAMP)
1822
}
1923
handleFail()
@@ -30,8 +34,8 @@ def handleIngestion(timestamp) {
3034
kibanaCoverage.collectVcsInfo("### Collect VCS Info")
3135
kibanaCoverage.generateReports("### Merge coverage reports")
3236
kibanaCoverage.uploadCombinedReports()
33-
kibanaCoverage.ingest(env.JOB_NAME, BUILD_NUMBER, BUILD_URL, timestamp, previousSha, '### Ingest && Upload')
3437
kibanaCoverage.uploadCoverageStaticSite(timestamp)
38+
kibanaCoverage.ingest(env.JOB_NAME, BUILD_NUMBER, BUILD_URL, timestamp, previousSha, teamAssignmentsPath(), '### Generate Team Assignments && Ingest')
3539
}
3640

3741
def handlePreviousSha() {
@@ -42,11 +46,15 @@ def handlePreviousSha() {
4246

4347
def handleFail() {
4448
def buildStatus = buildUtils.getBuildStatus()
45-
if(params.NOTIFY_ON_FAILURE && buildStatus != 'SUCCESS' && buildStatus != 'ABORTED' && buildStatus != 'UNSTABLE') {
49+
if (params.NOTIFY_ON_FAILURE && buildStatus != 'SUCCESS' && buildStatus != 'ABORTED' && buildStatus != 'UNSTABLE') {
4650
slackNotifications.sendFailedBuild(
4751
channel: '#kibana-qa',
4852
username: 'Kibana QA'
4953
)
5054
}
5155
}
5256

57+
def teamAssignmentsPath() {
58+
return 'src/dev/code_coverage/ingest_coverage/team_assignment/team_assignments.txt'
59+
}
60+

.ci/Jenkinsfile_security_cypress

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@ kibanaPipeline(timeoutMinutes: 180) {
99
channel: '#security-solution-slack-testing'
1010
) {
1111
catchError {
12-
workers.base(size: 's', ramDisk: false) {
13-
kibanaPipeline.bash('test/scripts/jenkins_security_solution_cypress.sh', 'Execute Security Solution Cypress Tests')
12+
withEnv([
13+
'CI_PARALLEL_PROCESS_NUMBER=1'
14+
]) {
15+
def job = 'xpack-securityCypress'
16+
17+
workers.ci(name: job, size: 'l', ramDisk: true) {
18+
kibanaPipeline.bash('test/scripts/jenkins_xpack_build_kibana.sh', 'Build Default Distributable')
19+
kibanaPipeline.functionalTestProcess(job, 'test/scripts/jenkins_security_solution_cypress.sh')()
20+
}
1421
}
1522
}
1623
}
1724

1825
if (params.NOTIFY_ON_FAILURE) {
19-
kibanaPipeline.sendMail(to: 'gloria.delatorre@elastic.co')
26+
kibanaPipeline.sendMail(to: 'siem_dev_team@elastic.co')
2027
}
2128
}

.ci/end2end.groovy

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,31 @@ pipeline {
3737
deleteDir()
3838
gitCheckout(basedir: "${BASE_DIR}", githubNotifyFirstTimeContributor: false,
3939
shallow: false, reference: "/var/lib/jenkins/.git-references/kibana.git")
40+
41+
// Filter when to run based on the below reasons:
42+
// - On a PRs when:
43+
// - There are changes related to the APM UI project
44+
// - only when the owners of those changes are members of the given GitHub teams
45+
// - On merges to branches when:
46+
// - There are changes related to the APM UI project
47+
// - FORCE parameter is set to true.
4048
script {
49+
def apm_updated = false
4150
dir("${BASE_DIR}"){
42-
def regexps =[ "^x-pack/plugins/apm/.*" ]
43-
env.APM_UPDATED = isGitRegionMatch(patterns: regexps)
51+
apm_updated = isGitRegionMatch(patterns: [ "^x-pack/plugins/apm/.*" ])
52+
}
53+
if (isPR()) {
54+
def isMember = isMemberOf(user: env.CHANGE_AUTHOR, team: ['apm-ui', 'uptime'])
55+
setEnvVar('RUN_APM_E2E', params.FORCE || (apm_updated && isMember))
56+
} else {
57+
setEnvVar('RUN_APM_E2E', params.FORCE || apm_updated)
4458
}
4559
}
4660
}
4761
}
4862
stage('Prepare Kibana') {
4963
options { skipDefaultCheckout() }
50-
when {
51-
anyOf {
52-
expression { return params.FORCE }
53-
expression { return env.APM_UPDATED != "false" }
54-
}
55-
}
64+
when { expression { return env.RUN_APM_E2E != "false" } }
5665
environment {
5766
JENKINS_NODE_COOKIE = 'dontKillMe'
5867
}
@@ -70,12 +79,7 @@ pipeline {
7079
}
7180
stage('Smoke Tests'){
7281
options { skipDefaultCheckout() }
73-
when {
74-
anyOf {
75-
expression { return params.FORCE }
76-
expression { return env.APM_UPDATED != "false" }
77-
}
78-
}
82+
when { expression { return env.RUN_APM_E2E != "false" } }
7983
steps{
8084
notifyTestStatus('Running smoke tests', 'PENDING')
8185
dir("${BASE_DIR}"){

.ci/pipeline-library/src/test/prChanges.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class PrChangesTest extends KibanaBasePipelineTest {
9090
props([
9191
githubPrs: [
9292
getChanges: { [
93-
[filename: 'docs/developer/architecture/code-exploration.asciidoc'],
93+
[filename: 'docs/developer/plugin-list.asciidoc'],
9494
] },
9595
],
9696
])

.eslintignore

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,34 @@
1313
/x-pack/build
1414
node_modules
1515
target
16+
snapshots.js
1617

1718
!/.eslintrc.js
1819

1920
# plugin overrides
2021
/src/core/lib/kbn_internal_native_observable
2122
/src/legacy/plugin_discovery/plugin_pack/__tests__/fixtures/plugins/broken
22-
/src/legacy/ui/public/flot-charts
2323
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
2424
/src/plugins/vis_type_timelion/public/_generated_/**
25-
/src/plugins/vis_type_timelion/public/flot/jquery.flot.*
26-
/src/plugins/timelion/public/flot/jquery.flot.*
2725
/x-pack/legacy/plugins/**/__tests__/fixtures/**
28-
/x-pack/plugins/apm/e2e/**/snapshots.js
2926
/x-pack/plugins/apm/e2e/tmp/*
3027
/x-pack/plugins/canvas/canvas_plugin
31-
/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts
3228
/x-pack/plugins/canvas/shareable_runtime/build
3329
/x-pack/plugins/canvas/storybook/build
34-
/x-pack/plugins/monitoring/public/lib/jquery_flot
3530
/x-pack/plugins/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/**
3631
/x-pack/legacy/plugins/infra/common/graphql/types.ts
3732
/x-pack/legacy/plugins/infra/public/graphql/types.ts
3833
/x-pack/legacy/plugins/infra/server/graphql/types.ts
3934
/x-pack/legacy/plugins/maps/public/vendor/**
4035

4136
# package overrides
42-
/packages/eslint-config-kibana
37+
/packages/elastic-eslint-config-kibana
4338
/packages/kbn-interpreter/src/common/lib/grammar.js
44-
/packages/kbn-plugin-generator/sao_template/template
39+
/packages/kbn-plugin-generator/template
4540
/packages/kbn-pm/dist
4641
/packages/kbn-test/src/functional_test_runner/__tests__/fixtures/
4742
/packages/kbn-test/src/functional_test_runner/lib/config/__tests__/fixtures/
4843
/packages/kbn-ui-framework/dist
4944
/packages/kbn-ui-framework/doc_site/build
5045
/packages/kbn-ui-framework/generator-kui/*/templates/
51-
46+
/packages/kbn-ui-shared-deps/flot_charts

0 commit comments

Comments
 (0)