Skip to content

Commit fbdedef

Browse files
authored
Merge branch 'main' into panel-placement-util
2 parents cccdba4 + c4682a7 commit fbdedef

1,421 files changed

Lines changed: 21587 additions & 5809 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/pipelines/flaky_tests/pipeline.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,40 @@ function getScoutConfigGroupType(configPath: string): string | null {
4848
return null;
4949
}
5050

51+
function getScoutServerRunFlags(configPath: string): string[] {
52+
const groupType = getScoutConfigGroupType(configPath);
53+
54+
if (!groupType) {
55+
throw new Error(
56+
`Unable to determine scout config group type from path: ${configPath}. ` +
57+
`Expected path to match platform pattern (x-pack/platform/... or src/platform/...) ` +
58+
`or solution pattern (x-pack/solutions/<solution>/plugins/...)`
59+
);
60+
}
61+
62+
if (groupType === 'platform') {
63+
return ['--stateful', '--serverless=es', '--serverless=oblt', '--serverless=security'];
64+
}
65+
66+
if (groupType === 'workplaceai') {
67+
return ['--serverless=workplace-ai'];
68+
}
69+
70+
const flags = ['--stateful'];
71+
72+
if (groupType === 'observability') {
73+
flags.push('--serverless=oblt');
74+
} else if (groupType === 'security') {
75+
flags.push('--serverless=security');
76+
} else if (groupType === 'search') {
77+
flags.push('--serverless=search');
78+
} else {
79+
throw new Error(`Unknown solution type: ${groupType}.`);
80+
}
81+
82+
return flags;
83+
}
84+
5185
function getTestSuitesFromJson(json: string) {
5286
const fail = (errorMsg: string) => {
5387
console.error('+++ Invalid test config provided');
@@ -192,12 +226,14 @@ for (const testSuite of testSuites) {
192226
if (testSuite.type === 'scoutConfig') {
193227
const usesParallelWorkers = testSuite.scoutConfig.endsWith('parallel.playwright.config.ts');
194228
const scoutConfigGroupType = getScoutConfigGroupType(testSuite.scoutConfig);
229+
const serverRunFlags = getScoutServerRunFlags(testSuite.scoutConfig);
195230

196231
steps.push({
197232
command: `.buildkite/scripts/steps/test/scout_configs.sh`,
198233
env: {
199234
SCOUT_CONFIG: testSuite.scoutConfig,
200235
SCOUT_CONFIG_GROUP_TYPE: scoutConfigGroupType!,
236+
SCOUT_SERVER_RUN_FLAGS: serverRunFlags.join('\n'),
201237
},
202238
key: `${TestSuiteType.SCOUT}-${suiteIndex++}`,
203239
label: `${testSuite.scoutConfig}`,

.buildkite/scripts/steps/test/scout_configs.sh

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,24 @@ while read -r config_path; do
135135
continue
136136
fi
137137

138-
# Get server run flags for this config from the module data
139-
if [[ -z "${module_data:-}" ]]; then
140-
echo "⚠️ Warning: No module_data available for config: $config_path"
141-
echo " Skipping config (serverRunFlags cannot be determined)"
142-
continue
138+
# Get server run flags for this config
139+
config_run_modes=""
140+
141+
if [[ -n "${module_data:-}" ]]; then
142+
# Extract serverRunFlags array for this config from module data
143+
config_run_modes=$(echo "$module_data" | jq -r ".configs[] | select(.path == \"$config_path\") | .serverRunFlags[]?")
144+
elif [[ -n "${SCOUT_SERVER_RUN_FLAGS:-}" ]]; then
145+
# Use serverRunFlags from environment variable (Flaky-test-runner pipeline when JSON is not available)
146+
config_run_modes="$SCOUT_SERVER_RUN_FLAGS"
143147
fi
144148

145-
# Extract serverRunFlags array for this config
146-
config_run_modes=$(echo "$module_data" | jq -r ".configs[] | select(.path == \"$config_path\") | .serverRunFlags[]?")
149+
if [[ -z "$config_run_modes" ]]; then
150+
if [[ -z "${module_data:-}" && -z "${SCOUT_SERVER_RUN_FLAGS:-}" ]]; then
151+
echo "⚠️ Warning: No module_data or SCOUT_SERVER_RUN_FLAGS available for config: $config_path"
152+
echo " Skipping config (serverRunFlags cannot be determined)"
153+
continue
154+
fi
155+
fi
147156

148157
if [[ -z "$config_run_modes" ]]; then
149158
echo "⚠️ No serverRunFlags found for config: $config_path"
@@ -163,7 +172,9 @@ while read -r config_path; do
163172
fi
164173

165174
echo "--- Config: $config_path"
166-
echo " Tags: $(echo "$module_data" | jq -r ".configs[] | select(.path == \"$config_path\") | .tags | join(\", \")")"
175+
if [[ -n "${module_data:-}" ]]; then
176+
echo " Tags: $(echo "$module_data" | jq -r ".configs[] | select(.path == \"$config_path\") | .tags | join(\", \")")"
177+
fi
167178
echo " Modes: $(echo "$config_run_modes" | tr '\n' ' ')"
168179

169180
# Run config for each mode

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: 2025-12-16
11+
date: 2025-12-17
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: 2025-12-16
11+
date: 2025-12-17
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
1313
---
1414
import advancedSettingsObj from './advanced_settings.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: 2025-12-16
11+
date: 2025-12-17
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'agentBuilderPlatform']
1313
---
1414
import agentBuilderPlatformObj from './agent_builder_platform.devdocs.json';

api_docs/ai_assistant_management_selection.devdocs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"label": "AIAgentConfirmationModal",
1212
"description": [],
1313
"signature": [
14-
"({ onConfirm, onCancel, }: ",
14+
"({ onConfirm, onCancel, docLinks, }: ",
1515
{
1616
"pluginId": "@kbn/ai-agent-confirmation-modal",
1717
"scope": "public",
@@ -30,7 +30,7 @@
3030
"id": "def-public.AIAgentConfirmationModal.$1",
3131
"type": "Object",
3232
"tags": [],
33-
"label": "{\n onConfirm,\n onCancel,\n}",
33+
"label": "{\n onConfirm,\n onCancel,\n docLinks,\n}",
3434
"description": [],
3535
"signature": [
3636
{

api_docs/ai_assistant_management_selection.mdx

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

api_docs/aiops.mdx

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

api_docs/alerting.devdocs.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5155,7 +5155,15 @@
51555155
},
51565156
"; getAuditLogger: () => ",
51575157
"AuditLogger",
5158-
" | undefined; getTags: (params: Readonly<{ search?: string | undefined; perPage?: number | undefined; ruleTypeIds?: string[] | undefined; } & { page: number; }>) => Promise<Readonly<{} & { page: number; data: string[]; perPage: number; total: number; }>>; getTemplate: (params: Readonly<{} & { id: string; }>) => Promise<Readonly<{ alertDelay?: Readonly<{} & { active: number; }> | undefined; flapping?: Readonly<{ enabled?: boolean | undefined; } & { lookBackWindow: number; statusChangeThreshold: number; }> | null | undefined; } & { params: Record<string, any>; id: string; name: string; tags: string[]; schedule: Readonly<{} & { interval: string; }>; ruleTypeId: string; }>>; getScheduleFrequency: () => Promise<Readonly<{} & { totalScheduledPerMinute: number; remainingSchedulesPerMinute: number; }>>; findGaps: (params: Readonly<{ start?: string | undefined; end?: string | undefined; sortField?: \"@timestamp\" | \"kibana.alert.rule.gap.status\" | \"kibana.alert.rule.gap.total_gap_duration_ms\" | undefined; sortOrder?: \"asc\" | \"desc\" | undefined; statuses?: (\"unfilled\" | \"filled\" | \"partially_filled\")[] | undefined; hasUnfilledIntervals?: boolean | undefined; hasInProgressIntervals?: boolean | undefined; hasFilledIntervals?: boolean | undefined; } & { page: number; perPage: number; ruleId: string; }>) => Promise<{ total: number; data: ",
5158+
" | undefined; getTags: (params: Readonly<{ search?: string | undefined; perPage?: number | undefined; ruleTypeIds?: string[] | undefined; } & { page: number; }>) => Promise<Readonly<{} & { page: number; data: string[]; perPage: number; total: number; }>>; getTemplate: (params: Readonly<{} & { id: string; }>) => Promise<Readonly<{ alertDelay?: Readonly<{} & { active: number; }> | undefined; flapping?: Readonly<{ enabled?: boolean | undefined; } & { lookBackWindow: number; statusChangeThreshold: number; }> | null | undefined; } & { params: Record<string, any>; id: string; name: string; tags: string[]; schedule: Readonly<{} & { interval: string; }>; ruleTypeId: string; }>>; findTemplates: (params: Readonly<{ search?: string | undefined; page?: number | undefined; tags?: string[] | undefined; perPage?: number | undefined; defaultSearchOperator?: \"AND\" | \"OR\" | undefined; sortField?: string | undefined; sortOrder?: \"asc\" | \"desc\" | undefined; ruleTypeId?: string | undefined; } & {}>) => Promise<",
5159+
{
5160+
"pluginId": "alerting",
5161+
"scope": "server",
5162+
"docId": "kibAlertingPluginApi",
5163+
"section": "def-server.FindResult",
5164+
"text": "FindResult"
5165+
},
5166+
">; getScheduleFrequency: () => Promise<Readonly<{} & { totalScheduledPerMinute: number; remainingSchedulesPerMinute: number; }>>; findGaps: (params: Readonly<{ start?: string | undefined; end?: string | undefined; sortField?: \"@timestamp\" | \"kibana.alert.rule.gap.status\" | \"kibana.alert.rule.gap.total_gap_duration_ms\" | undefined; sortOrder?: \"asc\" | \"desc\" | undefined; statuses?: (\"unfilled\" | \"filled\" | \"partially_filled\")[] | undefined; hasUnfilledIntervals?: boolean | undefined; hasInProgressIntervals?: boolean | undefined; hasFilledIntervals?: boolean | undefined; } & { page: number; perPage: number; ruleId: string; }>) => Promise<{ total: number; data: ",
51595167
"Gap",
51605168
"[]; page: number; perPage: number; }>; fillGapById: (params: Readonly<{} & { ruleId: string; gapId: string; }>) => Promise<(Readonly<{ end?: string | undefined; initiatorId?: string | undefined; warnings?: string[] | undefined; } & { id: string; spaceId: string; start: string; enabled: boolean; rule: Readonly<{ apiKeyCreatedByUser?: boolean | null | undefined; } & { params: Record<string, any>; id: string; consumer: string; name: string; enabled: boolean; tags: string[]; actions: Readonly<{ frequency?: Readonly<{} & { throttle: string | null; notifyWhen: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\"; summary: boolean; }> | undefined; alertsFilter?: Readonly<{ query?: Readonly<{ dsl?: string | undefined; } & { kql: string; filters: Readonly<{ query?: Record<string, any> | undefined; $state?: Readonly<{} & { store: ",
51615169
{

api_docs/alerting.mdx

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

0 commit comments

Comments
 (0)