-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rules/7.11
- Loading branch information
Showing
10,221 changed files
with
885,965 additions
and
290,720 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
cd "$(dirname "${0}")" | ||
|
||
cp /usr/local/bin/runbld ./ | ||
cp /usr/local/bin/bash_standard_lib.sh ./ | ||
|
||
if which docker >/dev/null; then | ||
docker build -t kibana-ci -f ./Dockerfile . | ||
else | ||
echo "Docker binary is not available. Skipping the docker build this time." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/util.sh" | ||
|
||
tc_start_block "Bootstrap" | ||
|
||
tc_start_block "yarn install and kbn bootstrap" | ||
verify_no_git_changes yarn kbn bootstrap --prefer-offline | ||
tc_end_block "yarn install and kbn bootstrap" | ||
|
||
tc_start_block "build kbn-pm" | ||
verify_no_git_changes yarn kbn run build -i @kbn/pm | ||
tc_end_block "build kbn-pm" | ||
|
||
tc_start_block "build plugin list docs" | ||
verify_no_git_changes node scripts/build_plugin_list_docs | ||
tc_end_block "build plugin list docs" | ||
|
||
tc_end_block "Bootstrap" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
node scripts/build_kibana_platform_plugins --validate-limits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Check Doc API Changes" \ | ||
node scripts/check_published_api_changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Lint: eslint" \ | ||
node scripts/eslint --no-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Check File Casing" \ | ||
node scripts/check_file_casing --quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Check i18n" \ | ||
node scripts/i18n_check --ignore-missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Check Licenses" \ | ||
node scripts/check_licenses --dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Lint: sasslint" \ | ||
node scripts/sasslint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Check Telemetry Schema" \ | ||
node scripts/telemetry_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Test Hardening" \ | ||
node scripts/test_hardening |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Check TypeScript Projects" \ | ||
node scripts/check_ts_projects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Check Types" \ | ||
node scripts/type_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
checks-reporter-with-killswitch "Verify NOTICE" \ | ||
node scripts/notice --validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
const https = require('https'); | ||
const token = process.env.CI_STATS_TOKEN; | ||
const host = process.env.CI_STATS_HOST; | ||
|
||
const request = (url, options, data = null) => { | ||
const httpOptions = { | ||
...options, | ||
headers: { | ||
...(options.headers || {}), | ||
Authorization: `token ${token}`, | ||
}, | ||
}; | ||
|
||
return new Promise((resolve, reject) => { | ||
console.log(`Calling https://${host}${url}`); | ||
|
||
const req = https.request(`https://${host}${url}`, httpOptions, (res) => { | ||
if (res.statusCode < 200 || res.statusCode >= 300) { | ||
return reject(new Error(`Status Code: ${res.statusCode}`)); | ||
} | ||
|
||
const data = []; | ||
res.on('data', (d) => { | ||
data.push(d); | ||
}) | ||
|
||
res.on('end', () => { | ||
try { | ||
let resp = Buffer.concat(data).toString(); | ||
|
||
try { | ||
if (resp.trim()) { | ||
resp = JSON.parse(resp); | ||
} | ||
} catch (ex) { | ||
console.error(ex); | ||
} | ||
|
||
resolve(resp); | ||
} catch (ex) { | ||
reject(ex); | ||
} | ||
}); | ||
}) | ||
|
||
req.on('error', reject); | ||
|
||
if (data) { | ||
req.write(JSON.stringify(data)); | ||
} | ||
|
||
req.end(); | ||
}); | ||
} | ||
|
||
module.exports = { | ||
get: (url) => request(url, { method: 'GET' }), | ||
post: (url, data) => request(url, { method: 'POST' }, data), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const ciStats = require('./ci_stats'); | ||
|
||
// This might be better as an API call in the future. | ||
// Instead, it relies on a separate step setting the BUILD_STATUS env var. BUILD_STATUS is not something provided by TeamCity. | ||
const BUILD_STATUS = process.env.BUILD_STATUS === 'SUCCESS' ? 'SUCCESS' : 'FAILURE'; | ||
|
||
(async () => { | ||
try { | ||
if (process.env.CI_STATS_BUILD_ID) { | ||
await ciStats.post(`/v1/build/_complete?id=${process.env.CI_STATS_BUILD_ID}`, { | ||
result: BUILD_STATUS, | ||
}); | ||
} | ||
} catch (ex) { | ||
console.error(ex); | ||
process.exit(1); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
export JOB=kibana-default-accessibility | ||
export KIBANA_INSTALL_DIR="$PARENT_DIR/build/kibana-build-default" | ||
|
||
cd "$XPACK_DIR" | ||
|
||
checks-reporter-with-killswitch "X-Pack accessibility tests" \ | ||
node scripts/functional_tests \ | ||
--debug --bail \ | ||
--kibana-install-dir "$KIBANA_INSTALL_DIR" \ | ||
--config test/accessibility/config.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
tc_start_block "Build Platform Plugins" | ||
node scripts/build_kibana_platform_plugins \ | ||
--scan-dir "$KIBANA_DIR/test/plugin_functional/plugins" \ | ||
--scan-dir "$KIBANA_DIR/test/common/fixtures/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/plugin_functional/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/functional_with_es_ssl/fixtures/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/alerting_api_integration/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/plugin_api_integration/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/plugin_api_perf/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/licensing_plugin/plugins" \ | ||
--verbose | ||
tc_end_block "Build Platform Plugins" | ||
|
||
export KBN_NP_PLUGINS_BUILT=true | ||
|
||
tc_start_block "Build Default Distribution" | ||
|
||
cd "$KIBANA_DIR" | ||
node scripts/build --debug --no-oss | ||
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')" | ||
installDir="$KIBANA_DIR/install/kibana" | ||
mkdir -p "$installDir" | ||
tar -xzf "$linuxBuild" -C "$installDir" --strip=1 | ||
|
||
tc_end_block "Build Default Distribution" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
tc_start_block "Build Platform Plugins" | ||
node scripts/build_kibana_platform_plugins \ | ||
--scan-dir "$KIBANA_DIR/test/plugin_functional/plugins" \ | ||
--scan-dir "$KIBANA_DIR/test/common/fixtures/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/plugin_functional/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/functional_with_es_ssl/fixtures/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/alerting_api_integration/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/plugin_api_integration/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/plugin_api_perf/plugins" \ | ||
--scan-dir "$XPACK_DIR/test/licensing_plugin/plugins" \ | ||
--verbose | ||
tc_end_block "Build Platform Plugins" | ||
|
||
tc_set_env KBN_NP_PLUGINS_BUILT true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
export CI_GROUP="$1" | ||
export JOB=kibana-default-ciGroup${CI_GROUP} | ||
export KIBANA_INSTALL_DIR="$PARENT_DIR/build/kibana-build-default" | ||
|
||
cd "$XPACK_DIR" | ||
|
||
checks-reporter-with-killswitch "Default Distro Chrome Functional tests / Group ${CI_GROUP}" \ | ||
node scripts/functional_tests \ | ||
--debug --bail \ | ||
--kibana-install-dir "$KIBANA_INSTALL_DIR" \ | ||
--include-tag "ciGroup$CI_GROUP" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
export JOB=kibana-default-firefoxSmoke | ||
export KIBANA_INSTALL_DIR="$PARENT_DIR/build/kibana-build-default" | ||
|
||
cd "$XPACK_DIR" | ||
|
||
checks-reporter-with-killswitch "X-Pack firefox smoke test" \ | ||
node scripts/functional_tests \ | ||
--debug --bail \ | ||
--kibana-install-dir "$KIBANA_INSTALL_DIR" \ | ||
--include-tag "includeFirefox" \ | ||
--config test/functional/config.firefox.js \ | ||
--config test/functional_embedded/config.firefox.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source "$(dirname "${0}")/../util.sh" | ||
|
||
export JOB=kibana-default-jest | ||
|
||
cd "$XPACK_DIR" | ||
|
||
checks-reporter-with-killswitch "Jest Unit Tests" \ | ||
node scripts/jest --bail --debug |
Oops, something went wrong.