Skip to content

Commit

Permalink
Merge branch 'main' of github.com:elastic/kibana into onboarding-stac…
Browse files Browse the repository at this point in the history
…k-add-plugin
  • Loading branch information
yansavitski committed Dec 27, 2024
2 parents 1d6e3f7 + b4417c6 commit 14a53d4
Show file tree
Hide file tree
Showing 21,489 changed files with 112,435 additions and 80,019 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 3 additions & 3 deletions .buildkite/ftr_oblt_stateful_configs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
disabled:
# Cypress configs, for now these are still run manually
- x-pack/plugins/observability_solution/observability_onboarding/e2e/ftr_config_open.ts
- x-pack/plugins/observability_solution/observability_onboarding/e2e/ftr_config_runner.ts
- x-pack/plugins/observability_solution/observability_onboarding/e2e/ftr_config.ts
- x-pack/solutions/observability/plugins/observability_onboarding/e2e/ftr_config_open.ts
- x-pack/solutions/observability/plugins/observability_onboarding/e2e/ftr_config_runner.ts
- x-pack/solutions/observability/plugins/observability_onboarding/e2e/ftr_config.ts
- x-pack/plugins/observability_solution/apm/ftr_e2e/ftr_config_run.ts
- x-pack/plugins/observability_solution/apm/ftr_e2e/ftr_config.ts
- x-pack/plugins/observability_solution/inventory/e2e/ftr_config_run.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
default_branch: main
repository: elastic/kibana
pipeline_file: .buildkite/pipelines/es_forward_9_dot_0.yml # Note: this file exists in 8.x only and should be moved into 8.18 once the branch is cut
skip_intermediate_builds: false
provider_settings:
prefix_pull_request_fork_branch_names: false
trigger_mode: none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
default_branch: main
repository: elastic/kibana
pipeline_file: .buildkite/pipelines/es_forward.yml # Note: this file exists in 7.17 only
skip_intermediate_builds: false
provider_settings:
prefix_pull_request_fork_branch_names: false
trigger_mode: none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,10 @@ export async function pickTestGroupRunOrder() {
parallelism: unit.count,
timeout_in_minutes: 120,
key: 'jest',
agents: expandAgentQueue('n2-4-spot'),
agents: {
...expandAgentQueue('n2-4-spot'),
diskSizeGb: 75,
},
retry: {
automatic: [
{ exit_status: '-1', limit: 3 },
Expand Down
10 changes: 10 additions & 0 deletions .buildkite/pipelines/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ steps:
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-2
diskSizeGb: 75
retry:
automatic:
- exit_status: '*'
Expand Down Expand Up @@ -39,6 +40,7 @@ steps:
provider: gcp
machineType: n2-highcpu-8
preemptible: true
diskSizeGb: 75
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -53,6 +55,7 @@ steps:
provider: gcp
machineType: n2-standard-2
preemptible: true
diskSizeGb: 75
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -67,6 +70,7 @@ steps:
provider: gcp
machineType: n2-standard-16
preemptible: true
diskSizeGb: 75
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -81,6 +85,7 @@ steps:
provider: gcp
machineType: n2-standard-32
preemptible: true
diskSizeGb: 75
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -97,6 +102,7 @@ steps:
diskType: 'hyperdisk-balanced'
preemptible: true
spotZones: us-central1-a,us-central1-b,us-central1-c
diskSizeGb: 75
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -111,6 +117,7 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
diskSizeGb: 75
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -128,6 +135,7 @@ steps:
provider: gcp
machineType: n2-standard-4
preemptible: true
diskSizeGb: 75
timeout_in_minutes: 80
retry:
automatic:
Expand All @@ -143,6 +151,7 @@ steps:
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-2
diskSizeGb: 75
timeout_in_minutes: 10
depends_on:
- build
Expand All @@ -159,6 +168,7 @@ steps:
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-2
diskSizeGb: 75
timeout_in_minutes: 10
env:
JEST_UNIT_SCRIPT: '.buildkite/scripts/steps/test/jest.sh'
Expand Down
10 changes: 10 additions & 0 deletions .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ steps:
timeout_in_minutes: 10
agents:
machineType: n2-standard-2
diskSizeGb: 75

- wait

Expand All @@ -26,6 +27,7 @@ steps:
agents:
machineType: n2-highcpu-8
preemptible: true
diskSizeGb: 75
key: quick_checks
timeout_in_minutes: 60
retry:
Expand All @@ -39,6 +41,7 @@ steps:
agents:
machineType: n2-standard-2
preemptible: true
diskSizeGb: 75
timeout_in_minutes: 60
retry:
automatic:
Expand All @@ -50,6 +53,7 @@ steps:
agents:
machineType: n2-standard-16
preemptible: true
diskSizeGb: 75
key: linting
timeout_in_minutes: 60
retry:
Expand All @@ -62,6 +66,7 @@ steps:
agents:
machineType: n2-standard-32
preemptible: true
diskSizeGb: 75
key: linting_with_types
timeout_in_minutes: 60
retry:
Expand All @@ -74,6 +79,7 @@ steps:
agents:
machineType: n2-standard-4
preemptible: true
diskSizeGb: 75
key: check_oas_snapshot
timeout_in_minutes: 60
retry:
Expand All @@ -88,6 +94,7 @@ steps:
diskType: 'hyperdisk-balanced'
preemptible: true
spotZones: us-central1-a,us-central1-b,us-central1-c
diskSizeGb: 75
key: check_types
timeout_in_minutes: 60
retry:
Expand All @@ -101,6 +108,7 @@ steps:
label: Mark CI Stats as ready
agents:
machineType: n2-standard-2
diskSizeGb: 75
timeout_in_minutes: 10
depends_on:
- build
Expand All @@ -114,6 +122,7 @@ steps:
label: 'Pick Test Group Run Order'
agents:
machineType: n2-standard-2
diskSizeGb: 75
timeout_in_minutes: 10
env:
JEST_UNIT_SCRIPT: '.buildkite/scripts/steps/test/jest.sh'
Expand All @@ -129,6 +138,7 @@ steps:
agents:
machineType: n2-standard-4
preemptible: true
diskSizeGb: 75
key: build_api_docs
timeout_in_minutes: 90
retry:
Expand Down
55 changes: 29 additions & 26 deletions .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ const getPipeline = (filename: string, removeSteps = true) => {
if (
(await doAnyChangesMatch([
/^src\/plugins\/data/,
/^x-pack\/plugins\/actions/,
/^x-pack\/plugins\/alerting/,
/^x-pack\/plugins\/event_log/,
/^x-pack\/plugins\/rule_registry/,
/^x-pack\/plugins\/task_manager/,
/^x-pack\/platform\/plugins\/shared\/actions/,
/^x-pack\/platform\/plugins\/shared\/alerting/,
/^x-pack\/platform\/plugins\/shared\/event_log/,
/^x-pack\/platform\/plugins\/shared\/rule_registry/,
/^x-pack\/platform\/plugins\/shared\/task_manager/,
])) ||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/response_ops.yml'));
}

if (
(await doAnyChangesMatch([/^x-pack\/plugins\/cases/])) ||
(await doAnyChangesMatch([/^x-pack\/platform\/plugins\/shared\/cases/])) ||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/response_ops_cases.yml'));
Expand Down Expand Up @@ -99,7 +99,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
if (
(await doAnyChangesMatch([
/^x-pack\/solutions\/observability\/plugins\/observability_onboarding/,
/^x-pack\/plugins\/fleet/,
/^x-pack\/platform\/plugins\/shared\/fleet/,
])) ||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
) {
Expand All @@ -116,7 +116,10 @@ const getPipeline = (filename: string, removeSteps = true) => {
}

if (
(await doAnyChangesMatch([/^x-pack\/plugins\/fleet/, /^x-pack\/test\/fleet_cypress/])) ||
(await doAnyChangesMatch([
/^x-pack\/platform\/plugins\/shared\/fleet/,
/^x-pack\/test\/fleet_cypress/,
])) ||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/fleet_cypress.yml'));
Expand Down Expand Up @@ -166,9 +169,9 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^x-pack\/platform\/packages\/shared\/ai-infra/,
/^x-pack\/platform\/plugins\/shared\/ai_infra/,
/^x-pack\/platform\/plugins\/shared\/inference/,
/^x-pack\/plugins\/stack_connectors\/server\/connector_types\/bedrock/,
/^x-pack\/plugins\/stack_connectors\/server\/connector_types\/gemini/,
/^x-pack\/plugins\/stack_connectors\/server\/connector_types\/openai/,
/^x-pack\/platform\/plugins\/shared\/stack_connectors\/server\/connector_types\/bedrock/,
/^x-pack\/platform\/plugins\/shared\/stack_connectors\/server\/connector_types\/gemini/,
/^x-pack\/platform\/plugins\/shared\/stack_connectors\/server\/connector_types\/openai/,
])) ||
GITHUB_PR_LABELS.includes('ci:all-gen-ai-suites')
) {
Expand Down Expand Up @@ -249,19 +252,19 @@ const getPipeline = (filename: string, removeSteps = true) => {
(await doAnyChangesMatch([
/^package.json/,
/^packages\/kbn-securitysolution-.*/,
/^x-pack\/plugins\/alerting/,
/^x-pack\/platform\/plugins\/shared\/alerting/,
/^x-pack\/plugins\/data_views\/common/,
/^x-pack\/solutions\/security\/plugins\/lists/,
/^x-pack\/plugins\/rule_registry\/common/,
/^x-pack\/platform\/plugins\/shared\/rule_registry\/common/,
/^x-pack\/solutions\/security\/plugins\/security_solution/,
/^x-pack\/solutions\/security\/plugins\/security_solution_ess/,
/^x-pack\/solutions\/security\/plugins\/security_solution_serverless/,
/^x-pack\/plugins\/task_manager/,
/^x-pack\/platform\/plugins\/shared\/task_manager/,
/^x-pack\/solutions\/security\/plugins\/timelines/,
/^x-pack\/plugins\/triggers_actions_ui\/public\/application\/sections\/action_connector_form/,
/^x-pack\/plugins\/triggers_actions_ui\/public\/application\/context\/actions_connectors_context\.tsx/,
/^x-pack\/plugins\/triggers_actions_ui\/server\/connector_types\/openai/,
/^x-pack\/plugins\/triggers_actions_ui\/server\/connector_types\/bedrock/,
/^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/public\/application\/sections\/action_connector_form/,
/^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/public\/application\/context\/actions_connectors_context\.tsx/,
/^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/server\/connector_types\/openai/,
/^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/server\/connector_types\/bedrock/,
/^x-pack\/plugins\/usage_collection\/public/,
/^x-pack\/solutions\/security\/plugins\/elastic_assistant/,
/^x-pack\/solutions\/security\/packages/,
Expand Down Expand Up @@ -299,7 +302,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^packages\/kbn-es-query/,
/^packages\/kbn-i18n/,
/^packages\/kbn-i18n-react/,
/^packages\/kbn-grouping/,
/^src\/platform\/packages\/shared\/kbn-grouping/,
/^packages\/kbn-resizable-layout/,
/^packages\/kbn-rison/,
/^src\/platform\/packages\/shared\/kbn-rule-data-utils/,
Expand All @@ -317,12 +320,12 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^packages\/shared-ux/,
/^src\/core/,
/^src\/plugins\/charts/,
/^src\/plugins\/controls/,
/^src\/platform\/plugins\/shared\/controls/,
/^src\/plugins\/data/,
/^src\/plugins\/data_views/,
/^src\/plugins\/discover/,
/^src\/plugins\/field_formats/,
/^src\/plugins\/inspector/,
/^src\/platform\/plugins\/shared\/inspector/,
/^src\/plugins\/kibana_react/,
/^src\/plugins\/kibana_utils/,
/^src\/plugins\/saved_search/,
Expand All @@ -332,19 +335,19 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/,
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/,
/^x-pack\/solutions\/security\/packages/,
/^x-pack\/plugins\/alerting/,
/^x-pack\/plugins\/cases/,
/^x-pack\/platform\/plugins\/shared\/alerting/,
/^x-pack\/platform\/plugins\/shared\/cases/,
/^x-pack\/plugins\/data_views\/common/,
/^x-pack\/solutions\/security\/plugins\/elastic_assistant/,
/^x-pack\/solutions\/security\/plugins\/lists/,
/^x-pack\/plugins\/rule_registry\/common/,
/^x-pack\/platform\/plugins\/shared\/rule_registry\/common/,
/^x-pack\/solutions\/security\/plugins\/security_solution/,
/^x-pack\/solutions\/security\/plugins\/security_solution_ess/,
/^x-pack\/solutions\/security\/plugins\/security_solution_serverless/,
/^x-pack\/plugins\/task_manager/,
/^x-pack\/platform\/plugins\/shared\/task_manager/,
/^x-pack\/solutions\/security\/plugins\/threat_intelligence/,
/^x-pack\/solutions\/security\/plugins\/timelines/,
/^x-pack\/plugins\/triggers_actions_ui/,
/^x-pack\/platform\/plugins\/shared\/triggers_actions_ui/,
/^x-pack\/plugins\/usage_collection\/public/,
/^x-pack\/test\/functional\/es_archives\/security_solution/,
/^x-pack\/test\/security_solution_cypress/,
Expand Down
4 changes: 2 additions & 2 deletions .buildkite/scripts/steps/checks/event_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ else
git clone --depth 1 -b $ECS_STABLE_VERSION https://github.com/elastic/ecs.git ../ecs
fi

node x-pack/plugins/event_log/scripts/create_schemas.js
node x-pack/platform/plugins/shared/event_log/scripts/create_schemas.js

check_for_changed_files 'node x-pack/plugins/event_log/scripts/create_schemas.js' false 'Follow the directions in x-pack/plugins/event_log/generated/README.md to make schema changes for the event log.'
check_for_changed_files 'node x-pack/platform/plugins/shared/event_log/scripts/create_schemas.js' false 'Follow the directions in x-pack/platform/plugins/shared/event_log/generated/README.md to make schema changes for the event log.'
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ EOT

cat << EOF | buildkite-agent pipeline upload
steps:
- label: "Builds Kibana VM images for cache update"
- label: "Update cache for ES serverless image"
trigger: kibana-vm-images
async: true
build:
Expand Down
7 changes: 4 additions & 3 deletions .buildkite/scripts/steps/es_snapshots/promote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ ts-node "$(dirname "${0}")/promote_manifest.ts" "$ES_SNAPSHOT_MANIFEST"
if [[ "$BUILDKITE_BRANCH" == "main" ]]; then
echo "--- Trigger agent packer cache pipeline"
ts-node .buildkite/scripts/steps/trigger_pipeline.ts kibana-agent-packer-cache main
cat << EOF | buildkite-agent pipeline upload
fi

cat << EOF | buildkite-agent pipeline upload
steps:
- label: "Builds Kibana VM images for cache update"
- label: "Update cache for ES $BUILDKITE_BRANCH snapshot"
trigger: kibana-vm-images
async: true
build:
env:
IMAGES_CONFIG: "kibana/images.yml"
RETRY: "1"
EOF
fi
2 changes: 1 addition & 1 deletion .buildkite/scripts/steps/functional/fleet_cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export KIBANA_INSTALL_DIR=${KIBANA_BUILD_LOCATION}

echo "--- Fleet Cypress tests (Chrome)"

cd x-pack/plugins/fleet
cd x-pack/platform/plugins/shared/fleet

set +e
yarn cypress:run:reporter; status=$?; yarn cypress_space_awareness:run:reporter; space_status=$?; yarn junit:merge || :; [ "$status" -ne 0 ] && exit $status || [ "$space_status" -ne 0 ] && exit $space_status || exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ echo "--- Observability onboarding Cypress Tests"

cd "$XPACK_DIR"

node plugins/observability_solution/observability_onboarding/scripts/test/e2e.js \
node solutions/observability/plugins/observability_onboarding/scripts/test/e2e.js \
--kibana-install-dir "$KIBANA_BUILD_LOCATION" \
Loading

0 comments on commit 14a53d4

Please sign in to comment.