Skip to content

Commit 5b009a6

Browse files
committed
Merge remote-tracking branch 'upstream/master' into 107565-apm-filter-inventory
2 parents b89a008 + 3cdced3 commit 5b009a6

File tree

3,804 files changed

+51880
-63247
lines changed

Some content is hidden

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

3,804 files changed

+51880
-63247
lines changed

.buildkite/hooks/post-command

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

.buildkite/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "kibana-buildkite",
3+
"version": "1.0.0",
4+
"private": true,
5+
"dependencies": {
6+
"kibana-buildkite-library": "elastic/kibana-buildkite-library"
7+
}
8+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
env:
2+
GITHUB_COMMIT_STATUS_ENABLED: 'true'
3+
GITHUB_COMMIT_STATUS_CONTEXT: 'buildkite/kibana-pull-request'
4+
steps:
5+
- command: .buildkite/scripts/lifecycle/pre_build.sh
6+
label: Pre-Build
7+
8+
- wait
9+
10+
- command: echo 'Hello World'
11+
label: Test
12+
13+
- wait: ~
14+
continue_on_failure: true
15+
16+
- command: .buildkite/scripts/lifecycle/post_build.sh
17+
label: Post-Build
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
steps:
2+
- command: .buildkite/scripts/steps/demo_env/es_and_init.sh
3+
label: Initialize Environment and Deploy ES
4+
5+
- command: .buildkite/scripts/steps/demo_env/kibana.sh
6+
label: Build and Deploy Kibana
7+
agents:
8+
queue: c2-8

.buildkite/scripts/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
source .buildkite/scripts/common/util.sh
66

77
echo "--- yarn install and bootstrap"
8-
yarn kbn bootstrap --verbose
8+
yarn kbn bootstrap
99

1010
###
1111
### upload ts-refs-cache artifacts as quickly as possible so they are available for download

.buildkite/scripts/build_kibana_plugins.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ node scripts/build_kibana_platform_plugins \
1818
--scan-dir "$XPACK_DIR/test/licensing_plugin/plugins" \
1919
--scan-dir "$XPACK_DIR/test/usage_collection/plugins" \
2020
--scan-dir "$XPACK_DIR/test/security_functional/fixtures/common" \
21-
--scan-dir "$XPACK_DIR/examples" \
22-
--verbose
21+
--scan-dir "$XPACK_DIR/examples"
2322

2423
echo "--- Archive built plugins"
2524
shopt -s globstar

.buildkite/scripts/common/env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ export TEST_ES_URL="http://elastic:changeme@localhost:6102"
7070
export TEST_ES_TRANSPORT_PORT=6301-6309
7171
export TEST_CORS_SERVER_PORT=6106
7272
export ALERTING_PROXY_PORT=6105
73+
export TEST_PROXY_SERVER_PORT=6107
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { BuildkiteClient } = require('kibana-buildkite-library');
2+
3+
(async () => {
4+
try {
5+
const client = new BuildkiteClient();
6+
const status = await client.getCurrentBuildStatus();
7+
console.log(status.success ? 'true' : 'false');
8+
process.exit(0);
9+
} catch (ex) {
10+
console.error('Buildkite API Error', ex.message);
11+
if (ex.response) {
12+
console.error('HTTP Error Response Status', ex.response.status);
13+
console.error('HTTP Error Response Body', ex.response.data);
14+
}
15+
process.exit(1);
16+
}
17+
})();

.buildkite/scripts/lifecycle/ci_stats.js

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
const ciStats = require('./ci_stats');
2-
3-
// TODO - this is okay for now but should really be replaced with an API call, especially once retries are enabled
4-
const BUILD_STATUS = process.env.BUILD_FAILED === 'true' ? 'FAILURE' : 'SUCCESS';
1+
const { CiStats } = require('kibana-buildkite-library');
52

63
(async () => {
74
try {
8-
if (process.env.CI_STATS_BUILD_ID) {
9-
await ciStats.post(`/v1/build/_complete?id=${process.env.CI_STATS_BUILD_ID}`, {
10-
result: BUILD_STATUS,
11-
});
12-
}
5+
await CiStats.onComplete();
136
} catch (ex) {
14-
console.error(ex);
7+
console.error('CI Stats Error', ex.message);
8+
if (ex.response) {
9+
console.error('HTTP Error Response Status', ex.response.status);
10+
console.error('HTTP Error Response Body', ex.response.data);
11+
}
1512
process.exit(1);
1613
}
1714
})();

0 commit comments

Comments
 (0)