Skip to content

Commit 2c1e579

Browse files
Merge branch 'master' into improve-model-snapshot-revert-UI-experience
2 parents 6f1867d + 922abfa commit 2c1e579

File tree

8,904 files changed

+104404
-135380
lines changed

Some content is hidden

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

8,904 files changed

+104404
-135380
lines changed

.ci/es-snapshots/Jenkinsfile_verify_es

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ kibanaPipeline(timeoutMinutes: 150) {
5656
'xpack-ciGroup9': kibanaPipeline.xpackCiGroupProcess(9),
5757
'xpack-ciGroup10': kibanaPipeline.xpackCiGroupProcess(10),
5858
'xpack-ciGroup11': kibanaPipeline.xpackCiGroupProcess(11),
59+
'xpack-ciGroup12': kibanaPipeline.xpackCiGroupProcess(12),
60+
'xpack-ciGroup13': kibanaPipeline.xpackCiGroupProcess(13),
5961
]),
6062
])
6163
}

.ci/jobs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ JOB:
3232
- x-pack-ciGroup9
3333
- x-pack-ciGroup10
3434
- x-pack-ciGroup11
35+
- x-pack-ciGroup12
36+
- x-pack-ciGroup13
3537
- x-pack-accessibility
3638
- x-pack-visualRegression
3739

.ci/teamcity/default/build_plugins.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ node scripts/build_kibana_platform_plugins \
1414
--scan-dir "$XPACK_DIR/test/plugin_api_integration/plugins" \
1515
--scan-dir "$XPACK_DIR/test/plugin_api_perf/plugins" \
1616
--scan-dir "$XPACK_DIR/test/licensing_plugin/plugins" \
17+
--scan-dir "$XPACK_DIR/test/usage_collection/plugins" \
1718
--verbose
1819
tc_end_block "Build Platform Plugins"
1920

.eslintrc.js

Lines changed: 58 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
/*
2-
* Licensed to Elasticsearch B.V. under one or more contributor
3-
* license agreements. See the NOTICE file distributed with
4-
* this work for additional information regarding copyright
5-
* ownership. Elasticsearch B.V. licenses this file to you under
6-
* the Apache License, Version 2.0 (the "License"); you may
7-
* not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* and the Server Side Public License, v 1; you may not use this file except in
5+
* compliance with, at your election, the Elastic License or the Server Side
6+
* Public License, v 1.
187
*/
198

209
const APACHE_2_0_LICENSE_HEADER = `
@@ -38,6 +27,16 @@ const APACHE_2_0_LICENSE_HEADER = `
3827
*/
3928
`;
4029

30+
const DUAL_LICENSE_HEADER = `
31+
/*
32+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
33+
* or more contributor license agreements. Licensed under the Elastic License
34+
* and the Server Side Public License, v 1; you may not use this file except in
35+
* compliance with, at your election, the Elastic License or the Server Side
36+
* Public License, v 1.
37+
*/
38+
`;
39+
4140
const ELASTIC_LICENSE_HEADER = `
4241
/*
4342
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -113,12 +112,47 @@ module.exports = {
113112
},
114113

115114
/**
116-
* Files that require Apache 2.0 headers, settings
115+
* Files that require dual-license headers, settings
117116
* are overridden below for files that require Elastic
118117
* Licence headers
119118
*/
120119
{
121-
files: ['**/*.{js,mjs,ts,tsx}', '!plugins/**/*'],
120+
files: [
121+
'**/*.{js,mjs,ts,tsx}',
122+
'!plugins/**/*',
123+
'!packages/elastic-datemath/**/*',
124+
'!packages/elastic-eslint-config-kibana/**/*',
125+
],
126+
rules: {
127+
'@kbn/eslint/require-license-header': [
128+
'error',
129+
{
130+
license: DUAL_LICENSE_HEADER,
131+
},
132+
],
133+
'@kbn/eslint/disallow-license-headers': [
134+
'error',
135+
{
136+
licenses: [
137+
APACHE_2_0_LICENSE_HEADER,
138+
ELASTIC_LICENSE_HEADER,
139+
SAFER_LODASH_SET_HEADER,
140+
SAFER_LODASH_SET_LODASH_HEADER,
141+
SAFER_LODASH_SET_DEFINITELYTYPED_HEADER,
142+
],
143+
},
144+
],
145+
},
146+
},
147+
148+
/**
149+
* Files that require Apache headers
150+
*/
151+
{
152+
files: [
153+
'packages/elastic-datemath/**/*.{js,mjs,ts,tsx}',
154+
'packages/elastic-eslint-config-kibana/**/*.{js,mjs,ts,tsx}',
155+
],
122156
rules: {
123157
'@kbn/eslint/require-license-header': [
124158
'error',
@@ -130,6 +164,7 @@ module.exports = {
130164
'error',
131165
{
132166
licenses: [
167+
DUAL_LICENSE_HEADER,
133168
ELASTIC_LICENSE_HEADER,
134169
SAFER_LODASH_SET_HEADER,
135170
SAFER_LODASH_SET_LODASH_HEADER,
@@ -151,7 +186,7 @@ module.exports = {
151186
},
152187

153188
/**
154-
* Files that require Elastic license headers instead of Apache 2.0 header
189+
* Files that require Elastic license headers instead of dual-license header
155190
*/
156191
{
157192
files: ['x-pack/**/*.{js,mjs,ts,tsx}'],
@@ -166,6 +201,7 @@ module.exports = {
166201
'error',
167202
{
168203
licenses: [
204+
DUAL_LICENSE_HEADER,
169205
APACHE_2_0_LICENSE_HEADER,
170206
SAFER_LODASH_SET_HEADER,
171207
SAFER_LODASH_SET_LODASH_HEADER,
@@ -192,6 +228,7 @@ module.exports = {
192228
'error',
193229
{
194230
licenses: [
231+
DUAL_LICENSE_HEADER,
195232
ELASTIC_LICENSE_HEADER,
196233
APACHE_2_0_LICENSE_HEADER,
197234
SAFER_LODASH_SET_HEADER,
@@ -214,6 +251,7 @@ module.exports = {
214251
'error',
215252
{
216253
licenses: [
254+
DUAL_LICENSE_HEADER,
217255
ELASTIC_LICENSE_HEADER,
218256
APACHE_2_0_LICENSE_HEADER,
219257
SAFER_LODASH_SET_LODASH_HEADER,
@@ -236,6 +274,7 @@ module.exports = {
236274
'error',
237275
{
238276
licenses: [
277+
DUAL_LICENSE_HEADER,
239278
ELASTIC_LICENSE_HEADER,
240279
APACHE_2_0_LICENSE_HEADER,
241280
SAFER_LODASH_SET_HEADER,

.teamcity/pom.xml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
<?xml version="1.0"?>
22
<!--
3-
~ Licensed to Elasticsearch under one or more contributor
4-
~ license agreements. See the NOTICE file distributed with
5-
~ this work for additional information regarding copyright
6-
~ ownership. Elasticsearch licenses this file to you under
7-
~ the Apache License, Version 2.0 (the "License"); you may
8-
~ not use this file except in compliance with the License.
9-
~ You may obtain a copy of the License at
10-
~
11-
~ http://www.apache.org/licenses/LICENSE-2.0
12-
~
13-
~ Unless required by applicable law or agreed to in writing,
14-
~ software distributed under the License is distributed on an
15-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16-
~ KIND, either express or implied. See the License for the
17-
~ specific language governing permissions and limitations
18-
~ under the License.
3+
~ Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
~ or more contributor license agreements. Licensed under the Elastic License
5+
~ and the Server Side Public License, v 1; you may not use this file except in
6+
~ compliance with, at your election, the Elastic License or the Server Side
7+
~ Public License, v 1.
198
-->
209

2110
<project>

.teamcity/src/Common.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
44
const val ENABLE_REPORTING = false
55

66
// If set to false, jobs with triggers (scheduled, on commit, etc) will be paused
7-
const val ENABLE_TRIGGERS = false
7+
const val ENABLE_TRIGGERS = true
88

99
fun getProjectBranch(): String {
1010
return DslContext.projectName

.teamcity/src/Extensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fun BuildType.addTestSettings() {
5050

5151
fun BuildType.addSlackNotifications(to: String = "#kibana-teamcity-testing") {
5252
params {
53-
param("elastic.slack.enabled", "true")
53+
param("elastic.slack.enabled", isReportingEnabled().toString())
5454
param("elastic.slack.channels", to)
5555
}
5656
}

.teamcity/src/builds/PullRequestCi.kt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package builds
33
import builds.default.DefaultSavedObjectFieldMetrics
44
import dependsOn
55
import getProjectBranch
6+
import isReportingEnabled
67
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
78
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.commitStatusPublisher
89
import vcs.Kibana
@@ -62,12 +63,15 @@ object PullRequestCi : BuildType({
6263
}
6364

6465
features {
65-
commitStatusPublisher {
66-
vcsRootExtId = "${Kibana.id}"
67-
publisher = github {
68-
githubUrl = "https://api.github.com"
69-
authType = personalToken {
70-
token = "credentialsJSON:07d22002-12de-4627-91c3-672bdb23b55b"
66+
if(isReportingEnabled()) {
67+
commitStatusPublisher {
68+
enabled = true
69+
vcsRootExtId = "${Kibana.id}"
70+
publisher = github {
71+
githubUrl = "https://api.github.com"
72+
authType = personalToken {
73+
token = "credentialsJSON:07d22002-12de-4627-91c3-672bdb23b55b"
74+
}
7175
}
7276
}
7377
}

.teamcity/src/builds/default/DefaultCiGroups.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package builds.default
33
import dependsOn
44
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
55

6-
const val DEFAULT_CI_GROUP_COUNT = 11
6+
const val DEFAULT_CI_GROUP_COUNT = 13
77
val defaultCiGroups = (1..DEFAULT_CI_GROUP_COUNT).map { DefaultCiGroup(it) }
88

99
object DefaultCiGroups : BuildType({

.teamcity/src/builds/test/QuickTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object QuickTests : BuildType({
1313

1414
val testScripts = mapOf(
1515
"Test Hardening" to ".ci/teamcity/checks/test_hardening.sh",
16-
"Test Projects" to ".ci/teamcity/tests/test_projects.sh",
16+
"Test Projects" to ".ci/teamcity/tests/test_projects.sh"
1717
)
1818

1919
steps {

0 commit comments

Comments
 (0)