Skip to content

Commit 0593fdb

Browse files
Merge branch 'master' into alerting/search-alert
2 parents 851d1cf + b0f4c98 commit 0593fdb

File tree

270 files changed

+9312
-1587
lines changed

Some content is hidden

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

270 files changed

+9312
-1587
lines changed

.ci/es-snapshots/Jenkinsfile_verify_es

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ kibanaPipeline(timeoutMinutes: 150) {
2929
withEnv(["ES_SNAPSHOT_MANIFEST=${SNAPSHOT_MANIFEST}"]) {
3030
parallel([
3131
'kibana-intake-agent': workers.intake('kibana-intake', './test/scripts/jenkins_unit.sh'),
32+
'x-pack-intake-agent': workers.intake('x-pack-intake', './test/scripts/jenkins_xpack.sh'),
3233
'kibana-oss-agent': workers.functional('kibana-oss-tests', { kibanaPipeline.buildOss() }, [
3334
'oss-ciGroup1': kibanaPipeline.ossCiGroupProcess(1),
3435
'oss-ciGroup2': kibanaPipeline.ossCiGroupProcess(2),

.ci/jobs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
JOB:
44
- kibana-intake
5+
- x-pack-intake
56
- kibana-firefoxSmoke
67
- kibana-ciGroup1
78
- kibana-ciGroup2

.ci/teamcity/default/jest.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
22

3-
# This file is temporary and can be removed once #85850 has been
4-
# merged and the changes included in open PR's (~3 days after merging)
3+
set -euo pipefail
4+
5+
source "$(dirname "${0}")/../util.sh"
6+
7+
export JOB=kibana-default-jest
8+
9+
checks-reporter-with-killswitch "Jest Unit Tests" \
10+
node scripts/jest x-pack --ci --verbose --maxWorkers=5

.ci/teamcity/oss/jest.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/bin/bash
22

3-
# This file is temporary and can be removed once #85850 has been
4-
# merged and the changes included in open PR's (~3 days after merging)
5-
63
set -euo pipefail
74

85
source "$(dirname "${0}")/../util.sh"
96

107
export JOB=kibana-oss-jest
118

12-
checks-reporter-with-killswitch "Jest Unit Tests" \
13-
node scripts/jest --ci --maxWorkers=5 --verbose
9+
checks-reporter-with-killswitch "OSS Jest Unit Tests" \
10+
node scripts/jest --config jest.config.oss.js --ci --verbose --maxWorkers=5

.ci/teamcity/tests/jest.sh

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

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ snapshots.js
3636
# package overrides
3737
/packages/elastic-eslint-config-kibana
3838
/packages/kbn-interpreter/src/common/lib/grammar.js
39+
/packages/kbn-tinymath/src/grammar.js
3940
/packages/kbn-plugin-generator/template
4041
/packages/kbn-pm/dist
4142
/packages/kbn-test/src/functional_test_runner/__tests__/fixtures/

.teamcity/src/Extensions.kt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,20 @@ fun BuildType.kibanaAgent(size: Int) {
2020
}
2121

2222
val testArtifactRules = """
23-
target/junit/**/*
2423
target/kibana-*
25-
target/kibana-coverage/**/*
26-
target/kibana-security-solution/**/*.png
2724
target/test-metrics/*
25+
target/kibana-security-solution/**/*.png
26+
target/junit/**/*
2827
target/test-suites-ci-plan.json
29-
test/**/screenshots/diff/*.png
30-
test/**/screenshots/failure/*.png
3128
test/**/screenshots/session/*.png
29+
test/**/screenshots/failure/*.png
30+
test/**/screenshots/diff/*.png
3231
test/functional/failure_debug/html/*.html
33-
x-pack/test/**/screenshots/diff/*.png
34-
x-pack/test/**/screenshots/failure/*.png
3532
x-pack/test/**/screenshots/session/*.png
36-
x-pack/test/functional/apps/reporting/reports/session/*.pdf
33+
x-pack/test/**/screenshots/failure/*.png
34+
x-pack/test/**/screenshots/diff/*.png
3735
x-pack/test/functional/failure_debug/html/*.html
36+
x-pack/test/functional/apps/reporting/reports/session/*.pdf
3837
""".trimIndent()
3938

4039
fun BuildType.addTestSettings() {

.teamcity/src/builds/test/AllTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ object AllTests : BuildType({
99
description = "All Non-Functional Tests"
1010
type = Type.COMPOSITE
1111

12-
dependsOn(QuickTests, Jest, JestIntegration, OssApiServerIntegration)
12+
dependsOn(QuickTests, Jest, XPackJest, JestIntegration, OssApiServerIntegration)
1313
})

.teamcity/src/builds/test/Jest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ object Jest : BuildType({
1212
kibanaAgent(8)
1313

1414
steps {
15-
runbld("Jest Unit", "./.ci/teamcity/tests/jest.sh")
15+
runbld("Jest Unit", "./.ci/teamcity/oss/jest.sh")
1616
}
1717

1818
addTestSettings()
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package builds.test
2+
3+
import addTestSettings
4+
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
5+
import kibanaAgent
6+
import runbld
7+
8+
object XPackJest : BuildType({
9+
name = "X-Pack Jest Unit"
10+
description = "Executes X-Pack Jest Unit Tests"
11+
12+
kibanaAgent(16)
13+
14+
steps {
15+
runbld("X-Pack Jest Unit", "./.ci/teamcity/default/jest.sh")
16+
}
17+
18+
addTestSettings()
19+
})

0 commit comments

Comments
 (0)