Skip to content

Commit db09bdb

Browse files
authored
Merge branch 'main' into add-unit-tests-index-tool
2 parents d18a4a5 + 17e8b3e commit db09bdb

2,002 files changed

Lines changed: 42107 additions & 9255 deletions

File tree

Some content is hidden

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

.buildkite/ftr_platform_stateful_configs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ enabled:
239239
- x-pack/platform/test/functional/apps/lens/group9/config.ts
240240
- x-pack/platform/test/functional/apps/lens/group10/config.ts
241241
- x-pack/platform/test/functional/apps/lens/group11/config.ts
242-
- x-pack/platform/test/functional/apps/lens/open_in_lens/tsvb/config.ts
242+
- x-pack/platform/test/functional/apps/lens/open_in_lens/tsvb/group1/config.ts
243+
- x-pack/platform/test/functional/apps/lens/open_in_lens/tsvb/group2/config.ts
244+
- x-pack/platform/test/functional/apps/lens/open_in_lens/tsvb/group3/config.ts
243245
- x-pack/platform/test/functional/apps/lens/open_in_lens/agg_based/config.ts
244246
- x-pack/platform/test/functional/apps/lens/open_in_lens/dashboard/config.ts
245247
- x-pack/platform/test/functional/apps/license_management/config.ts

.buildkite/pipelines/evals/llm_evals.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,28 @@ steps:
110110
- exit_status: '-1'
111111
limit: 3
112112

113+
- label: 'Evals: Streams Significant Events'
114+
key: kbn-evals-weekly-streams-significant-events
115+
command: bash .buildkite/scripts/steps/evals/run_suite.sh
116+
env:
117+
KBN_EVALS: '1'
118+
FTR_EIS_CCM: '1'
119+
EVAL_SUITE_ID: 'streams/significant-events'
120+
EVAL_FANOUT: '1'
121+
EVAL_INCLUDE_EIS_MODELS: '1'
122+
EVAL_MODEL_GROUPS: *weekly_eis_model_groups
123+
timeout_in_minutes: 60
124+
agents:
125+
image: family/kibana-ubuntu-2404
126+
imageProject: elastic-images-prod
127+
provider: gcp
128+
machineType: n2-standard-8
129+
preemptible: true
130+
retry:
131+
automatic:
132+
- exit_status: '-1'
133+
limit: 3
134+
113135
- label: 'Evals: LLM Tasks'
114136
key: kbn-evals-weekly-llm-tasks
115137
command: bash .buildkite/scripts/steps/evals/run_suite.sh
@@ -153,6 +175,28 @@ steps:
153175
- exit_status: '-1'
154176
limit: 3
155177

178+
- label: 'Evals: Security AI Rules'
179+
key: kbn-evals-weekly-security-ai-rules
180+
command: bash .buildkite/scripts/steps/evals/run_suite.sh
181+
env:
182+
KBN_EVALS: '1'
183+
FTR_EIS_CCM: '1'
184+
EVAL_SUITE_ID: 'security-ai-rules'
185+
EVAL_FANOUT: '1'
186+
EVAL_INCLUDE_EIS_MODELS: '1'
187+
EVAL_MODEL_GROUPS: *weekly_eis_model_groups
188+
timeout_in_minutes: 60
189+
agents:
190+
image: family/kibana-ubuntu-2404
191+
imageProject: elastic-images-prod
192+
provider: gcp
193+
machineType: n2-standard-8
194+
preemptible: true
195+
retry:
196+
automatic:
197+
- exit_status: '-1'
198+
limit: 3
199+
156200
- label: 'Evals: Endpoint'
157201
key: kbn-evals-weekly-endpoint
158202
command: bash .buildkite/scripts/steps/evals/run_suite.sh

.buildkite/scripts/pipelines/pull_request/pipeline.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,11 @@ const SKIPPABLE_PR_MATCHERS = prConfig.skip_ci_on_only_changed!.map((r) => new R
143143
}
144144

145145
if (
146-
(await doAnyChangesMatch([...aiInfraPaths, ...aiConnectorPaths, ...agentBuilderPaths])) ||
147-
GITHUB_PR_LABELS.includes('agent-builder:run-smoke-tests') ||
148-
GITHUB_PR_LABELS.includes('ci:all-gen-ai-suites') ||
149-
ALL_UI_TEST_SUITES
146+
((await doAnyChangesMatch([...aiInfraPaths, ...aiConnectorPaths, ...agentBuilderPaths])) ||
147+
GITHUB_PR_LABELS.includes('agent-builder:run-smoke-tests') ||
148+
GITHUB_PR_LABELS.includes('ci:all-gen-ai-suites') ||
149+
ALL_UI_TEST_SUITES) &&
150+
!GITHUB_PR_LABELS.includes('agent-builder:skip-smoke-tests')
150151
) {
151152
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/agent_builder_smoke_tests.yml'));
152153
}

.buildkite/scripts/steps/check_saved_objects.sh

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,42 +46,56 @@ findExistingSnapshotSha() {
4646
return 1
4747
}
4848

49+
resolveCurrentServerlessReleaseSha() {
50+
local serverless_release_rev
51+
local serverless_release_sha
52+
53+
if ! serverless_release_rev="$(node scripts/get_serverless_release_sha)"; then
54+
echo "❌ Couldn't determine current serverless release SHA. Aborting Saved Objects checks" >&2
55+
exit 1
56+
fi
57+
58+
if ! serverless_release_sha="$(git rev-parse "$serverless_release_rev")"; then
59+
echo "❌ Couldn't expand current serverless release SHA. Aborting Saved Objects checks." >&2
60+
exit 1
61+
fi
62+
63+
if [[ -z "$serverless_release_sha" ]]; then
64+
echo "❌ Couldn't expand current serverless release SHA. Aborting Saved Objects checks." >&2
65+
exit 1
66+
fi
67+
68+
echo "$serverless_release_sha"
69+
}
70+
4971
echo --- Check changes in Saved Objects
5072

5173
if is_pr; then
5274
# We are on the 'pull_request' pipeline, the goal is to test against the merge-base commit.
5375
# First, we try to obtain its SHA (or one of its ancestors)
54-
MERGE_BASE_REV="$(findExistingSnapshotSha "$GITHUB_PR_MERGE_BASE")"
55-
if [[ $? -ne 0 ]]; then
76+
if ! MERGE_BASE_REV="$(findExistingSnapshotSha "$GITHUB_PR_MERGE_BASE")"; then
5677
echo "❌ Could not find an existing snapshot to use as a baseline. Please rebase this PR branch onto the latest 'main' commit, then rerun CI." >&2
5778
exit 1
5879
fi
5980

81+
SERVERLESS_BASELINE_FLAG=()
82+
if [[ "$GITHUB_PR_TARGET_BRANCH" == "main" ]]; then
83+
GITHUB_SERVERLESS_RELEASE_SHA="$(resolveCurrentServerlessReleaseSha)"
84+
SERVERLESS_BASELINE_FLAG=(--serverless-baseline "$GITHUB_SERVERLESS_RELEASE_SHA")
85+
fi
86+
6087
if ! is_auto_commit_disabled; then
6188
# The step might update files like removed_types.json and/or SO fixtures
62-
node scripts/check_saved_objects --baseline "$MERGE_BASE_REV" --fix
89+
node scripts/check_saved_objects --baseline "$MERGE_BASE_REV" "${SERVERLESS_BASELINE_FLAG[@]}" --fix
6390
check_for_changed_files "node scripts/check_saved_objects" true
6491
else
65-
node scripts/check_saved_objects --baseline "$MERGE_BASE_REV"
92+
node scripts/check_saved_objects --baseline "$MERGE_BASE_REV" "${SERVERLESS_BASELINE_FLAG[@]}"
6693
fi
6794
else
6895
# We are on the 'on-merge' pipeline, the goal is to test against current serverless release,
6996
# and ONLY if we are in the main branch (older versions most likely won't be compatible)
7097
if [[ "$GITHUB_PR_TARGET_BRANCH" == "main" ]]; then
71-
# Obtain the current serverless release SHA from serverless-gitops
72-
GITHUB_SERVERLESS_RELEASE_REV="$(node scripts/get_serverless_release_sha)"
73-
if [[ $? -ne 0 ]]; then
74-
echo "❌ Couldn't determine current serverless release SHA. Aborting Saved Objects checks" >&2
75-
exit 1
76-
fi
77-
78-
# Expand to get the full SHA
79-
GITHUB_SERVERLESS_RELEASE_SHA="$(git rev-parse "$GITHUB_SERVERLESS_RELEASE_REV")"
80-
if [[ $? -ne 0 || -z "$GITHUB_SERVERLESS_RELEASE_SHA" ]]; then
81-
echo "❌ Couldn't expand current serverless release SHA. Skipping check against Serverless baseline." >&2
82-
exit 1
83-
fi
84-
98+
GITHUB_SERVERLESS_RELEASE_SHA="$(resolveCurrentServerlessReleaseSha)"
8599
# Perform the check against current serverless release
86100
node scripts/check_saved_objects --baseline "$GITHUB_SERVERLESS_RELEASE_SHA"
87101
fi

.coderabbit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ reviews:
1212
- Team:SigEvents
1313
- Team:Kibana Management
1414
- Team:obs-onboarding
15+
- Team:AI Infra

.github/CODEOWNERS

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ src/platform/packages/shared/kbn-rison @elastic/kibana-operations
610610
src/platform/packages/shared/kbn-router-to-openapispec @elastic/kibana-core
611611
src/platform/packages/shared/kbn-router-utils @elastic/obs-exploration-team
612612
src/platform/packages/shared/kbn-rrule @elastic/response-ops
613-
src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/actionable-obs-team
613+
src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detection-rule-management @elastic/security-detection-engine @elastic/response-ops @elastic/actionable-obs-team
614614
src/platform/packages/shared/kbn-safer-lodash-set @elastic/kibana-security
615615
src/platform/packages/shared/kbn-saved-search-component @elastic/obs-exploration-team
616616
src/platform/packages/shared/kbn-scout @elastic/appex-qa
@@ -1253,6 +1253,7 @@ x-pack/solutions/security/packages/kbn-cloud-security-posture/graph @elastic/con
12531253
x-pack/solutions/security/packages/kbn-cloud-security-posture/public @elastic/contextual-security-apps
12541254
x-pack/solutions/security/packages/kbn-evals-suite-endpoint @elastic/security-defend-workflows
12551255
x-pack/solutions/security/packages/kbn-evals-suite-entity-analytics @elastic/security-entity-analytics
1256+
x-pack/solutions/security/packages/kbn-evals-suite-security-ai-rules @elastic/security-detection-engine
12561257
x-pack/solutions/security/packages/kbn-scout-security @elastic/appex-qa @elastic/security-engineering-productivity
12571258
x-pack/solutions/security/packages/kbn-securitysolution-autocomplete @elastic/security-detection-engine
12581259
x-pack/solutions/security/packages/kbn-securitysolution-endpoint-exceptions-common @elastic/security-detection-engine
@@ -3191,13 +3192,6 @@ x-pack/solutions/observability/plugins/synthetics/server/saved_objects/synthetic
31913192
/.github/workflows/deploy-my-kibana.yml @elastic/observablt-robots @elastic/kibana-operations
31923193
/.github/workflows/undeploy-my-kibana.yml @elastic/observablt-robots @elastic/kibana-operations
31933194

3194-
# Moon related configs
3195-
.moon @elastic/kibana-operations
3196-
src/platform/test/moon.yml @elastic/kibana-operations
3197-
x-pack/platform/test/moon.yml @elastic/kibana-operations
3198-
x-pack/solutions/observability/test/moon.yml @elastic/kibana-operations
3199-
x-pack/solutions/security/test/moon.yml @elastic/kibana-operations
3200-
32013195
# Appex QA to own auto-generated scout metadata
32023196
/**/scout/.meta/** @kibanamachine @elastic/appex-qa
32033197
/**/scout_*/.meta/** @kibanamachine @elastic/appex-qa
@@ -3228,6 +3222,9 @@ x-pack/solutions/security/test/moon.yml @elastic/kibana-operations
32283222
/.agents/skills/kibana-privilege-deprecation/** @elastic/kibana-security
32293223
/.agents/skills/encrypted-saved-objects/** @elastic/kibana-security
32303224

3225+
# No owner - generated files covered by CI checks
3226+
**/moon.yml
3227+
32313228
# Operations (last-match override)
32323229
/src/platform/test/package @elastic/kibana-operations
32333230
/src/platform/test/package/roles @elastic/kibana-operations
@@ -3241,7 +3238,6 @@ x-pack/solutions/security/test/moon.yml @elastic/kibana-operations
32413238
/.buildkite/ @elastic/kibana-operations
32423239
/.coderabbit.yml @elastic/kibana-operations
32433240
/moon.yml @elastic/kibana-operations
3244-
**/moon.yml @elastic/kibana-operations
32453241

32463242
####
32473243
## These rules are always last so they take ultimate priority over everything else

api_docs/actions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/actions
88
title: "actions"
99
image: https://source.unsplash.com/400x175/?github
1010
description: API docs for the actions plugin
11-
date: 2026-03-09
11+
date: 2026-03-10
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
1313
---
1414
import actionsObj from './actions.devdocs.json';

api_docs/advanced_settings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/advancedSettings
88
title: "advancedSettings"
99
image: https://source.unsplash.com/400x175/?github
1010
description: API docs for the advancedSettings plugin
11-
date: 2026-03-09
11+
date: 2026-03-10
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
1313
---
1414
import advancedSettingsObj from './advanced_settings.devdocs.json';

api_docs/agent_builder.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/agentBuilder
88
title: "agentBuilder"
99
image: https://source.unsplash.com/400x175/?github
1010
description: API docs for the agentBuilder plugin
11-
date: 2026-03-09
11+
date: 2026-03-10
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'agentBuilder']
1313
---
1414
import agentBuilderObj from './agent_builder.devdocs.json';

api_docs/agent_builder_platform.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/agentBuilderPlatform
88
title: "agentBuilderPlatform"
99
image: https://source.unsplash.com/400x175/?github
1010
description: API docs for the agentBuilderPlatform plugin
11-
date: 2026-03-09
11+
date: 2026-03-10
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'agentBuilderPlatform']
1313
---
1414
import agentBuilderPlatformObj from './agent_builder_platform.devdocs.json';

0 commit comments

Comments
 (0)