Skip to content

Commit b9b5f9e

Browse files
authored
Merge branch 'main' into oas/write-bundled-file-to-disk
2 parents a284322 + b9e4702 commit b9b5f9e

1,216 files changed

Lines changed: 10782 additions & 5771 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/esql_grammar_sync.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
steps:
22
- command: .buildkite/scripts/steps/esql_grammar_sync.sh
3-
label: ES|QL Grammar Sync
3+
label: Grammar Sync
4+
timeout_in_minutes: 10
5+
agents:
6+
image: family/kibana-ubuntu-2004
7+
imageProject: elastic-images-prod
8+
provider: gcp
9+
machineType: n2-standard-2
10+
preemptible: true
11+
- command: .buildkite/scripts/steps/esql_generate_function_definitions.sh
12+
label: Generate Function Definitions
413
timeout_in_minutes: 10
514
agents:
615
image: family/kibana-ubuntu-2004
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
report_main_step () {
5+
echo "--- $1"
6+
}
7+
8+
main () {
9+
cd "$PARENT_DIR"
10+
11+
report_main_step "Cloning Elasticsearch repository"
12+
13+
rm -rf elasticsearch
14+
git clone https://github.com/elastic/elasticsearch --depth 1
15+
16+
report_main_step "Bootstrapping Kibana"
17+
18+
cd "$KIBANA_DIR"
19+
20+
.buildkite/scripts/bootstrap.sh
21+
22+
cd "$KIBANA_DIR/packages/kbn-esql-validation-autocomplete"
23+
24+
report_main_step "Generate function definitions"
25+
26+
yarn make:defs $PARENT_DIR/elasticsearch
27+
28+
report_main_step "Generate function validation tests"
29+
30+
yarn make:tests
31+
32+
# Check for differences
33+
set +e
34+
git diff --exit-code --quiet .
35+
if [ $? -eq 0 ]; then
36+
echo "No differences found. Our work is done here."
37+
exit
38+
fi
39+
set -e
40+
41+
report_main_step "Differences found. Checking for an existing pull request."
42+
43+
KIBANA_MACHINE_USERNAME="kibanamachine"
44+
git config --global user.name "$KIBANA_MACHINE_USERNAME"
45+
git config --global user.email '42973632+kibanamachine@users.noreply.github.com'
46+
47+
PR_TITLE='[ES|QL] Update function definitions'
48+
PR_BODY='This PR updates the function definitions based on the latest metadata from Elasticsearch.'
49+
50+
# Check if a PR already exists
51+
pr_search_result=$(gh pr list --search "$PR_TITLE" --state open --author "$KIBANA_MACHINE_USERNAME" --limit 1 --json title -q ".[].title")
52+
53+
if [ "$pr_search_result" == "$PR_TITLE" ]; then
54+
echo "PR already exists. Exiting."
55+
exit
56+
fi
57+
58+
echo "No existing PR found. Committing changes."
59+
60+
# Make a commit
61+
BRANCH_NAME="esql_generate_function_definitions_$(date +%s)"
62+
63+
git checkout -b "$BRANCH_NAME"
64+
65+
git add ./**/*
66+
git commit -m "Update function definitions"
67+
68+
report_main_step "Changes committed. Creating pull request."
69+
70+
git push origin "$BRANCH_NAME"
71+
72+
# Create a PR
73+
gh pr create --title "$PR_TITLE" --body "$PR_BODY" --base main --head "${BRANCH_NAME}" --label 'release_note:skip' --label 'Team:ESQL'
74+
}
75+
76+
main

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ x-pack/plugins/aiops @elastic/ml-ui
2121
x-pack/packages/ml/aiops_test_utils @elastic/ml-ui
2222
x-pack/test/alerting_api_integration/packages/helpers @elastic/response-ops
2323
x-pack/test/alerting_api_integration/common/plugins/alerts @elastic/response-ops
24+
x-pack/packages/kbn-alerting-comparators @elastic/response-ops
2425
x-pack/examples/alerting_example @elastic/response-ops
2526
x-pack/test/functional_with_es_ssl/plugins/alerts @elastic/response-ops
2627
x-pack/plugins/alerting @elastic/response-ops
@@ -1219,6 +1220,7 @@ x-pack/test/observability_ai_assistant_functional @elastic/obs-ai-assistant
12191220
/WORKSPACE.bazel @elastic/kibana-operations
12201221
/.buildkite/ @elastic/kibana-operations
12211222
/.buildkite/scripts/steps/esql_grammar_sync.sh @elastic/kibana-esql
1223+
/.buildkite/scripts/steps/esql_generate_function_definitions.sh @elastic/kibana-esql
12221224
/.buildkite/pipelines/esql_grammar_sync.yml @elastic/kibana-esql
12231225
/kbn_pm/ @elastic/kibana-operations
12241226
/x-pack/dev-tools @elastic/kibana-operations

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: 2024-05-28
11+
date: 2024-05-29
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: 2024-05-28
11+
date: 2024-05-29
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
1313
---
1414
import advancedSettingsObj from './advanced_settings.devdocs.json';

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: 2024-05-28
11+
date: 2024-05-29
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: 2024-05-28
11+
date: 2024-05-29
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
1313
---
1414
import aiopsObj from './aiops.devdocs.json';

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: 2024-05-28
11+
date: 2024-05-29
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
1313
---
1414
import alertingObj from './alerting.devdocs.json';

api_docs/apm.mdx

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

api_docs/apm_data_access.mdx

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

0 commit comments

Comments
 (0)