-
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 issues/113094
- Loading branch information
Showing
4,510 changed files
with
289,929 additions
and
101,608 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
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 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"repoOwner": "elastic", | ||
"repoName": "kibana", | ||
"pipelineSlug": "kibana-pull-request", | ||
|
||
"enabled": true, | ||
"allow_org_users": true, | ||
"allowed_repo_permissions": ["admin", "write"], | ||
"allowed_list": ["barlowm", "renovate[bot]"], | ||
"set_commit_status": true, | ||
"commit_status_context": "kibana-ci", | ||
"build_on_commit": true, | ||
"build_on_comment": true, | ||
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))", | ||
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))", | ||
"labels": ["buildkite-ci"] | ||
} | ||
] | ||
} |
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
source .buildkite/scripts/common/util.sh | ||
|
||
KIBANA_BUILDBUDDY_CI_API_KEY=$(retry 5 5 vault read -field=value secret/kibana-issues/dev/kibana-buildbuddy-ci-api-key) | ||
export KIBANA_BUILDBUDDY_CI_API_KEY | ||
|
||
# overwrites the file checkout .bazelrc file with the one intended for CI env | ||
cp "$KIBANA_DIR/src/dev/ci_setup/.bazelrc-ci" "$KIBANA_DIR/.bazelrc" | ||
|
||
### | ||
### append auth token to buildbuddy into "$KIBANA_DIR/.bazelrc"; | ||
### | ||
echo "# Appended by .buildkite/scripts/persist_bazel_cache.sh" >> "$KIBANA_DIR/.bazelrc" | ||
echo "build --remote_header=x-buildbuddy-api-key=$KIBANA_BUILDBUDDY_CI_API_KEY" >> "$KIBANA_DIR/.bazelrc" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,21 +1,38 @@ | ||
const NOW = new Date(); | ||
const TWO_HOURS = new Date(NOW.getTime() + 2 * 60 * 60 * 1000); | ||
const { BuildkiteClient } = require('kibana-buildkite-library'); | ||
|
||
const METRICS_URL = [ | ||
`https://kibana-ops-buildkite-monitoring.kb.us-central1.gcp.cloud.es.io:9243`, | ||
`/app/metrics/link-to/host-detail/${process.env.BUILDKITE_AGENT_NAME}`, | ||
`?to=${TWO_HOURS.getTime()}`, | ||
`&from=${NOW.getTime()}`, | ||
].join(''); | ||
(async () => { | ||
try { | ||
const client = new BuildkiteClient(); | ||
const build = await client.getCurrentBuild(); | ||
|
||
const LOGS_URL = [ | ||
`https://kibana-ops-buildkite-monitoring.kb.us-central1.gcp.cloud.es.io:9243`, | ||
`/app/logs/link-to/host-logs/${process.env.BUILDKITE_AGENT_NAME}`, | ||
`?time=${NOW.getTime()}`, | ||
].join(''); | ||
const job = build.jobs.find((j) => j.id === process.env.BUILDKITE_JOB_ID); | ||
const startTime = job ? new Date(job.started_at) : new Date().getTime() - 60 * 60 * 1000; | ||
const twoHours = new Date(startTime.getTime() + 2 * 60 * 60 * 1000); | ||
|
||
console.log('--- Agent Debug Links'); | ||
console.log('Agent Metrics:'); | ||
console.log('\u001b]1339;' + `url='${METRICS_URL}'\u0007`); | ||
console.log('Agent Logs:'); | ||
console.log('\u001b]1339;' + `url='${LOGS_URL}'\u0007`); | ||
const METRICS_URL = [ | ||
`https://kibana-ops-buildkite-monitoring.kb.us-central1.gcp.cloud.es.io:9243`, | ||
`/app/metrics/link-to/host-detail/${process.env.BUILDKITE_AGENT_NAME}`, | ||
`?to=${twoHours.getTime()}`, | ||
`&from=${startTime.getTime()}`, | ||
].join(''); | ||
|
||
const LOGS_URL = [ | ||
`https://kibana-ops-buildkite-monitoring.kb.us-central1.gcp.cloud.es.io:9243`, | ||
`/app/logs/link-to/host-logs/${process.env.BUILDKITE_AGENT_NAME}`, | ||
`?time=${startTime.getTime()}`, | ||
].join(''); | ||
|
||
console.log('--- Agent Debug Links'); | ||
console.log('Agent Metrics:'); | ||
console.log('\u001b]1339;' + `url='${METRICS_URL}'\u0007`); | ||
console.log('Agent Logs:'); | ||
console.log('\u001b]1339;' + `url='${LOGS_URL}'\u0007`); | ||
} catch (ex) { | ||
// Probably don't need to fail the build for this failure, just log it | ||
console.error('Buildkite API Error', ex.message); | ||
if (ex.response) { | ||
console.error('HTTP Error Response Status', ex.response.status); | ||
console.error('HTTP Error Response Body', ex.response.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
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
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
Oops, something went wrong.