Skip to content

Commit 6bcc56d

Browse files
Merge branch 'master' into fix/siem-eslint
2 parents 2b9890f + 78e9d93 commit 6bcc56d

File tree

874 files changed

+18940
-9645
lines changed

Some content is hidden

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

874 files changed

+18940
-9645
lines changed

.ci/Jenkinsfile_flaky

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,28 @@ def JOB_PARTS = params.CI_GROUP.split(':')
88
def IS_XPACK = JOB_PARTS[0] == 'xpack'
99
def JOB = JOB_PARTS[1]
1010
def CI_GROUP = JOB_PARTS.size() > 2 ? JOB_PARTS[2] : ''
11+
def EXECUTIONS = params.NUMBER_EXECUTIONS.toInteger()
12+
def AGENT_COUNT = getAgentCount(EXECUTIONS)
1113

1214
def worker = getWorkerFromParams(IS_XPACK, JOB, CI_GROUP)
1315

1416
def workerFailures = []
1517

1618
currentBuild.displayName += trunc(" ${params.GITHUB_OWNER}:${params.branch_specifier}", 24)
17-
currentBuild.description = "${params.CI_GROUP}<br />Executions: ${params.NUMBER_EXECUTIONS}"
18-
19-
// Note: If you increase agent count, it will execute NUMBER_EXECUTIONS per agent. It will not divide them up amongst the agents
20-
// e.g. NUMBER_EXECUTIONS = 25, agentCount = 4 results in 100 total executions
21-
def agentCount = 1
19+
currentBuild.description = "${params.CI_GROUP}<br />Agents: ${AGENT_COUNT}<br />Executions: ${params.NUMBER_EXECUTIONS}"
2220

2321
stage("Kibana Pipeline") {
2422
timeout(time: 180, unit: 'MINUTES') {
2523
timestamps {
2624
ansiColor('xterm') {
2725
def agents = [:]
28-
for(def agentNumber = 1; agentNumber <= agentCount; agentNumber++) {
26+
for(def agentNumber = 1; agentNumber <= AGENT_COUNT; agentNumber++) {
27+
def agentNumberInside = agentNumber
28+
def agentExecutions = floor(EXECUTIONS/AGENT_COUNT) + (agentNumber <= EXECUTIONS%AGENT_COUNT ? 1 : 0)
2929
agents["agent-${agentNumber}"] = {
3030
catchError {
31+
print "Agent ${agentNumberInside} - ${agentExecutions} executions"
32+
3133
kibanaPipeline.withWorkers('flaky-test-runner', {
3234
if (!IS_XPACK) {
3335
kibanaPipeline.buildOss()
@@ -37,7 +39,7 @@ stage("Kibana Pipeline") {
3739
} else {
3840
kibanaPipeline.buildXpack()
3941
}
40-
}, getWorkerMap(agentNumber, params.NUMBER_EXECUTIONS.toInteger(), worker, workerFailures))()
42+
}, getWorkerMap(agentNumberInside, agentExecutions, worker, workerFailures))()
4143
}
4244
}
4345
}
@@ -77,17 +79,20 @@ def getWorkerFromParams(isXpack, job, ciGroup) {
7779
}
7880
}
7981

80-
def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWorkers = 14) {
82+
def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWorkerProcesses = 12) {
8183
def workerMap = [:]
82-
def numberOfWorkers = Math.min(numberOfExecutions, maxWorkers)
84+
def numberOfWorkers = Math.min(numberOfExecutions, maxWorkerProcesses)
8385

8486
for(def i = 1; i <= numberOfWorkers; i++) {
8587
def workerExecutions = numberOfExecutions/numberOfWorkers + (i <= numberOfExecutions%numberOfWorkers ? 1 : 0)
8688

8789
workerMap["agent-${agentNumber}-worker-${i}"] = { workerNumber ->
8890
for(def j = 0; j < workerExecutions; j++) {
8991
print "Execute agent-${agentNumber} worker-${workerNumber}: ${j}"
90-
withEnv(["JOB=agent-${agentNumber}-worker-${workerNumber}-${j}"]) {
92+
withEnv([
93+
"JOB=agent-${agentNumber}-worker-${workerNumber}-${j}",
94+
"REMOVE_KIBANA_INSTALL_DIR=1",
95+
]) {
9196
catchError {
9297
try {
9398
worker(workerNumber)
@@ -104,10 +109,23 @@ def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWor
104109
return workerMap
105110
}
106111

112+
def getAgentCount(executions) {
113+
// Increase agent count every 24 worker processess, up to 3 agents maximum
114+
return Math.min(3, 1 + floor(executions/24))
115+
}
116+
107117
def trunc(str, length) {
108118
if (str.size() >= length) {
109119
return str.take(length) + "..."
110120
}
111121

112122
return str;
113123
}
124+
125+
// All of the real rounding/truncating methods are sandboxed
126+
def floor(num) {
127+
return num
128+
.toString()
129+
.split('\\.')[0]
130+
.toInteger()
131+
}

.ci/jobs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ JOB:
1414
- kibana-ciGroup10
1515
- kibana-ciGroup11
1616
- kibana-ciGroup12
17-
# - kibana-visualRegression
17+
- kibana-accessibility
18+
- kibana-visualRegression
1819

1920
# make sure all x-pack-ciGroups are listed in test/scripts/jenkins_xpack_ci_group.sh
2021
- x-pack-firefoxSmoke
@@ -28,7 +29,8 @@ JOB:
2829
- x-pack-ciGroup8
2930
- x-pack-ciGroup9
3031
- x-pack-ciGroup10
31-
# - x-pack-visualRegression
32+
- x-pack-accessibility
33+
- x-pack-visualRegression
3234

3335
# `~` is yaml for `null`
3436
exclude: ~

.ci/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ kibana-ciGroup*)
2121
kibana-visualRegression*)
2222
./test/scripts/jenkins_visual_regression.sh
2323
;;
24+
kibana-accessibility*)
25+
./test/scripts/jenkins_accessibility.sh
26+
;;
2427
kibana-firefoxSmoke*)
2528
./test/scripts/jenkins_firefox_smoke.sh
2629
;;
@@ -34,6 +37,9 @@ x-pack-ciGroup*)
3437
x-pack-visualRegression*)
3538
./test/scripts/jenkins_xpack_visual_regression.sh
3639
;;
40+
x-pack-accessibility*)
41+
./test/scripts/jenkins_xpack_accessibility.sh
42+
;;
3743
x-pack-firefoxSmoke*)
3844
./test/scripts/jenkins_xpack_firefox_smoke.sh
3945
;;

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,10 @@ module.exports = {
355355
'!src/core/server/*.test.mocks.ts',
356356

357357
'src/plugins/**/public/**/*',
358-
'!src/plugins/**/public/index*',
358+
'!src/plugins/**/public/index.{js,ts,tsx}',
359359

360360
'src/plugins/**/server/**/*',
361-
'!src/plugins/**/server/index*',
361+
'!src/plugins/**/server/index.{js,ts,tsx}',
362362
],
363363
allowSameFolder: true,
364364
},
@@ -393,6 +393,7 @@ module.exports = {
393393
'x-pack/test/functional/apps/**/*.js',
394394
'x-pack/legacy/plugins/apm/**/*.js',
395395
'test/*/config.ts',
396+
'test/*/{tests,test_suites,apis,apps}/**/*',
396397
'test/visual_regression/tests/**/*',
397398
'x-pack/test/*/{tests,test_suites,apis,apps}/**/*',
398399
'x-pack/test/*/*config.*ts',

.github/CODEOWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/x-pack/test/functional/services/ml.ts @elastic/ml-ui
4545
# ML team owns the transform plugin, ES team added here for visibility
4646
# because the plugin lives in Kibana's Elasticsearch management section.
47-
/x-pack/legacy/plugins/transform/ @elastic/ml-ui @elastic/es-ui
47+
/x-pack/legacy/plugins/transform/ @elastic/ml-ui @elastic/es-ui
4848

4949
# Operations
5050
/renovate.json5 @elastic/kibana-operations
@@ -68,7 +68,9 @@
6868
# Security
6969
/x-pack/legacy/plugins/security/ @elastic/kibana-security
7070
/x-pack/legacy/plugins/spaces/ @elastic/kibana-security
71+
/x-pack/plugins/spaces/ @elastic/kibana-security
7172
/x-pack/legacy/plugins/encrypted_saved_objects/ @elastic/kibana-security
73+
/x-pack/plugins/encrypted_saved_objects/ @elastic/kibana-security
7274
/src/legacy/server/csp/ @elastic/kibana-security
7375
/x-pack/plugins/security/ @elastic/kibana-security
7476
/x-pack/test/api_integration/apis/security/ @elastic/kibana-security

.i18nrc.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
22
"paths": {
33
"common.ui": "src/legacy/ui",
4-
"data": ["src/legacy/core_plugins/data", "src/plugins/data"],
5-
"expressions": "src/legacy/core_plugins/expressions",
6-
"expressions_np": "src/plugins/expressions",
7-
"kibana_react": "src/legacy/core_plugins/kibana_react",
8-
"navigation": "src/legacy/core_plugins/navigation",
9-
"server": "src/legacy/server",
104
"console": "src/legacy/core_plugins/console",
115
"core": "src/core",
6+
"dashboardEmbeddableContainer": "src/plugins/dashboard_embeddable_container",
7+
"data": ["src/legacy/core_plugins/data", "src/plugins/data"],
8+
"embeddableApi": "src/plugins/embeddable",
9+
"esUi": "src/plugins/es_ui_shared",
10+
"expressions_np": "src/plugins/expressions",
11+
"expressions": "src/legacy/core_plugins/expressions",
1212
"inputControl": "src/legacy/core_plugins/input_control_vis",
13+
"inspector": "src/plugins/inspector",
1314
"inspectorViews": "src/legacy/core_plugins/inspector_views",
1415
"interpreter": "src/legacy/core_plugins/interpreter",
15-
"dashboardEmbeddableContainer": "src/legacy/core_plugins/dashboard_embeddable_container",
1616
"kbn": "src/legacy/core_plugins/kibana",
1717
"kbnDocViews": "src/legacy/core_plugins/kbn_doc_views",
18-
"embeddableApi": "src/plugins/embeddable",
18+
"kbnESQuery": "packages/kbn-es-query",
1919
"kbnVislibVisTypes": "src/legacy/core_plugins/kbn_vislib_vis_types",
20-
"visTypeMarkdown": "src/legacy/core_plugins/vis_type_markdown",
21-
"visTypeMetric": "src/legacy/core_plugins/vis_type_metric",
22-
"visTypeVega": "src/legacy/core_plugins/vis_type_vega",
23-
"visTypeTable": "src/legacy/core_plugins/vis_type_table",
20+
"kibana_react": "src/legacy/core_plugins/kibana_react",
21+
"kibana-react": "src/plugins/kibana_react",
22+
"navigation": "src/legacy/core_plugins/navigation",
2423
"regionMap": "src/legacy/core_plugins/region_map",
24+
"server": "src/legacy/server",
2525
"statusPage": "src/legacy/core_plugins/status_page",
26+
"telemetry": "src/legacy/core_plugins/telemetry",
2627
"tileMap": "src/legacy/core_plugins/tile_map",
2728
"timelion": "src/legacy/core_plugins/timelion",
29+
"uiActions": "src/plugins/ui_actions",
30+
"visTypeMarkdown": "src/legacy/core_plugins/vis_type_markdown",
31+
"visTypeMetric": "src/legacy/core_plugins/vis_type_metric",
32+
"visTypeTable": "src/legacy/core_plugins/vis_type_table",
2833
"visTypeTagCloud": "src/legacy/core_plugins/vis_type_tagcloud",
2934
"visTypeTimeseries": "src/legacy/core_plugins/vis_type_timeseries",
30-
"kbnESQuery": "packages/kbn-es-query",
31-
"inspector": "src/plugins/inspector",
32-
"kibana-react": "src/plugins/kibana_react",
33-
"visualizations": "src/plugins/visualizations",
34-
"telemetry": "src/legacy/core_plugins/telemetry",
35-
"esUi": "src/plugins/es_ui_shared",
36-
"uiActions": "src/plugins/ui_actions"
35+
"visTypeVega": "src/legacy/core_plugins/vis_type_vega",
36+
"visualizations": "src/plugins/visualizations"
3737
},
3838
"exclude": ["src/legacy/ui/ui_render/ui_render_mixin.js"],
3939
"translations": []

Jenkinsfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ stage("Kibana Pipeline") { // This stage is just here to help the BlueOcean UI a
2525
'oss-ciGroup11': kibanaPipeline.getOssCiGroupWorker(11),
2626
'oss-ciGroup12': kibanaPipeline.getOssCiGroupWorker(12),
2727
'oss-firefoxSmoke': kibanaPipeline.getPostBuildWorker('firefoxSmoke', { runbld './test/scripts/jenkins_firefox_smoke.sh' }),
28-
// 'oss-visualRegression': kibanaPipeline.getPostBuildWorker('visualRegression', { runbld './test/scripts/jenkins_visual_regression.sh' }),
28+
'oss-accessibility': kibanaPipeline.getPostBuildWorker('accessibility', { runbld './test/scripts/jenkins_accessibility.sh' }),
29+
'oss-visualRegression': kibanaPipeline.getPostBuildWorker('visualRegression', { runbld './test/scripts/jenkins_visual_regression.sh' }),
2930
]),
3031
'kibana-xpack-agent': kibanaPipeline.withWorkers('kibana-xpack-tests', { kibanaPipeline.buildXpack() }, [
3132
'xpack-ciGroup1': kibanaPipeline.getXpackCiGroupWorker(1),
@@ -39,7 +40,8 @@ stage("Kibana Pipeline") { // This stage is just here to help the BlueOcean UI a
3940
'xpack-ciGroup9': kibanaPipeline.getXpackCiGroupWorker(9),
4041
'xpack-ciGroup10': kibanaPipeline.getXpackCiGroupWorker(10),
4142
'xpack-firefoxSmoke': kibanaPipeline.getPostBuildWorker('xpack-firefoxSmoke', { runbld './test/scripts/jenkins_xpack_firefox_smoke.sh' }),
42-
// 'xpack-visualRegression': kibanaPipeline.getPostBuildWorker('xpack-visualRegression', { runbld './test/scripts/jenkins_xpack_visual_regression.sh' }),
43+
'xpack-accessibility': kibanaPipeline.getPostBuildWorker('xpack-accessibility', { runbld './test/scripts/jenkins_xpack_accessibility.sh' }),
44+
'xpack-visualRegression': kibanaPipeline.getPostBuildWorker('xpack-visualRegression', { runbld './test/scripts/jenkins_xpack_visual_regression.sh' }),
4345
]),
4446
])
4547
}

docs/canvas/canvas-expressions.asciidoc

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)