Skip to content

Commit

Permalink
Merge branch 'main' into scout/add-ci-pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko authored Dec 9, 2024
2 parents 2b49bff + a95a5a3 commit ffae7d3
Show file tree
Hide file tree
Showing 11 changed files with 372 additions and 67 deletions.
54 changes: 54 additions & 0 deletions .buildkite/pipeline-resource-definitions/kibana-gen-ai-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: bk-kibana-gen-ai-daily
description: Runs the GenAI FTR tests daily
links:
- url: 'https://buildkite.com/elastic/kibana-gen-ai-tests-daily'
title: Pipeline link
spec:
type: buildkite-pipeline
owner: 'group:appex-ai-infra'
system: buildkite
implementation:
apiVersion: buildkite.elastic.dev/v1
kind: Pipeline
metadata:
name: kibana / gen-ai-tests / daily
description: Runs the GenAI FTR tests daily
spec:
env:
SLACK_NOTIFICATIONS_CHANNEL: '#appex-ai-infra-alerts'
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true'
allow_rebuilds: true
branch_configuration: main
cancel_intermediate_builds: true
default_branch: main
repository: elastic/kibana
pipeline_file: .buildkite/pipelines/gen_ai_testing.yml
provider_settings:
build_branches: false
build_pull_requests: false
publish_commit_status: false
trigger_mode: none
prefix_pull_request_fork_branch_names: false
skip_pull_request_builds_for_existing_commits: false
teams:
everyone:
access_level: BUILD_AND_READ
appex-ai-infra:
access_level: MANAGE_BUILD_AND_READ
kibana-operations:
access_level: MANAGE_BUILD_AND_READ
appex-qa:
access_level: MANAGE_BUILD_AND_READ
kibana-tech-leads:
access_level: MANAGE_BUILD_AND_READ
schedules:
Daily build:
cronline: 0 0 * * * America/New_York
message: Daily build
branch: main
tags:
- kibana
1 change: 1 addition & 0 deletions .buildkite/pipeline-resource-definitions/locations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ spec:
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/security-solution-quality-gate/kibana-serverless-security-solution-quality-gate-investigations.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/security-solution-quality-gate/kibana-serverless-security-solution-quality-gate-rule-management.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/trigger-version-dependent-jobs.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-gen-ai-daily.yml
48 changes: 48 additions & 0 deletions .buildkite/pipelines/gen_ai_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
env:
FTR_GEN_AI: "1"
steps:
- label: '👨‍🔧 Pre-Build'
command: .buildkite/scripts/lifecycle/pre_build.sh
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-2

- wait

- label: '🧑‍🏭 Build Kibana Distribution'
command: .buildkite/scripts/steps/build_kibana.sh
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-8
key: build
if: "build.env('KIBANA_BUILD_ID') == null || build.env('KIBANA_BUILD_ID') == ''"

- wait

- command: .buildkite/scripts/steps/test/ftr_configs.sh
env:
FTR_CONFIG: "x-pack/test/functional_gen_ai/inference/config.ts"
FTR_CONFIG_GROUP_KEY: 'ftr-ai-infra-gen-ai-inference-api'
FTR_GEN_AI: "1"
label: AppEx AI-Infra Inference APIs FTR tests
key: ai-infra-gen-ai-inference-api
timeout_in_minutes: 50
parallelism: 1
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-4
preemptible: true
retry:
automatic:
- exit_status: '-1'
limit: 3
- exit_status: '*'
limit: 1


22 changes: 0 additions & 22 deletions .buildkite/pipelines/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,28 +169,6 @@ steps:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/test/ftr_configs.sh
env:
FTR_CONFIG: "x-pack/test/functional_gen_ai/inference/config.ts"
FTR_CONFIG_GROUP_KEY: 'ftr-ai-infra-gen-ai-inference-api'
FTR_GEN_AI: "1"
label: AppEx AI-Infra Inference APIs FTR tests
key: ai-infra-gen-ai-inference-api
timeout_in_minutes: 50
parallelism: 1
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-4
preemptible: true
retry:
automatic:
- exit_status: '-1'
limit: 3
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/functional/security_serverless_entity_analytics.sh
label: 'Serverless Entity Analytics - Security Cypress Tests'
agents:
Expand Down
8 changes: 4 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ x-pack/test/api_integration/apis/management/index_management/inference_endpoints
# Management Experience - Deployment Management
/test/functional/fixtures/kbn_archiver/management.json @elastic/kibana-management @elastic/kibana-data-discovery # Assigned per 2 uses: test/functional/apps/management/_import_objects.ts && test/functional/apps/management/data_views/_scripted_fields_filter.ts
/x-pack/test/functional/fixtures/kbn_archiver/home/feature_controls/security/security.json @elastic/kibana-management
/x-pack/test/functional/es_archives/upgrade_assistant @elastic/kibana-management
/x-pack/test/functional/es_archives/upgrade_assistant @elastic/kibana-core
/x-pack/test/functional/services/ace_editor.js @elastic/kibana-management
/x-pack/test/functional/page_objects/remote_clusters_page.ts @elastic/kibana-management
/x-pack/test/stack_functional_integration/apps/ccs @elastic/kibana-management
Expand All @@ -2033,7 +2033,7 @@ x-pack/test/api_integration/apis/management/index_management/inference_endpoints
/x-pack/test/functional/apps/license_management @elastic/kibana-management
/x-pack/test/functional/apps/management @elastic/kibana-management
/x-pack/test/functional/apps/remote_clusters @elastic/kibana-management
/x-pack/test/functional/apps/upgrade_assistant @elastic/kibana-management
/x-pack/test/functional/apps/upgrade_assistant @elastic/kibana-core
/x-pack/test/functional/apps/dev_tools @elastic/kibana-management
/test/plugin_functional/test_suites/management @elastic/kibana-management
/x-pack/test/upgrade_assistant_integration @elastic/kibana-management
Expand All @@ -2057,7 +2057,7 @@ x-pack/test/api_integration/apis/management/index_management/inference_endpoints
/x-pack/test/api_integration/services/ingest_pipelines @elastic/kibana-management
/x-pack/test/functional/apps/watcher @elastic/kibana-management
/x-pack/test/api_integration/apis/watcher @elastic/kibana-management
/x-pack/test/api_integration/apis/upgrade_assistant @elastic/kibana-management
/x-pack/test/api_integration/apis/upgrade_assistant @elastic/kibana-core
/x-pack/test/api_integration/apis/searchprofiler @elastic/kibana-management
/x-pack/test/api_integration/apis/console @elastic/kibana-management
/x-pack/test_serverless/**/test_suites/common/index_management/ @elastic/kibana-management
Expand Down Expand Up @@ -2090,7 +2090,7 @@ x-pack/test/api_integration/apis/management/index_management/inference_endpoints
/x-pack/test/accessibility/apps/group3/license_management.ts @elastic/kibana-management
/x-pack/test/accessibility/apps/group3/remote_clusters.ts @elastic/kibana-management
/x-pack/test/accessibility/apps/group3/rollup_jobs.ts @elastic/kibana-management
/x-pack/test/accessibility/apps/group3/upgrade_assistant.ts @elastic/kibana-management
/x-pack/test/accessibility/apps/group3/upgrade_assistant.ts @elastic/kibana-core
/x-pack/test/accessibility/apps/group3/watcher.ts @elastic/kibana-management

#CC# /x-pack/plugins/cross_cluster_replication/ @elastic/kibana-management
Expand Down
92 changes: 87 additions & 5 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,34 @@
"minimumReleaseAge": "7 days",
"enabled": true
},
{
"groupName": "reporting dependencies",
"matchDepNames": [
"@types/extract-zip",
"@types/opn",
"@types/pdfmake",
"extract-zip",
"opn",
"pdfjs-dist",
"pdfmake",
"puppeteer"
],
"reviewers": [
"team:kibana-presentation",
"team:response-ops"
],
"matchBaseBranches": [
"main"
],
"labels": [
"Team:Reporting Services",
"Team:ResponseOps",
"backport:all-open",
"release_note:skip"
],
"minimumReleaseAge": "7 days",
"enabled": true
},
{
"groupName": "turf",
"matchDepNames": [
Expand Down Expand Up @@ -2414,8 +2442,7 @@
"jsonwebtoken"
],
"reviewers": [
"team:response-ops",
"team:kibana-core"
"team:response-ops"
],
"matchBaseBranches": [
"main"
Expand Down Expand Up @@ -2488,7 +2515,8 @@
{
"groupName": "AlertingEmails",
"matchDepNames": [
"nodemailer"
"nodemailer",
"@types/nodemailer"
],
"reviewers": [
"team:response-ops"
Expand All @@ -2498,7 +2526,61 @@
],
"labels": [
"release_note:skip",
"backport:prev-minor"
"backport:all-open"
],
"minimumReleaseAge": "7 days",
"enabled": true
},
{
"groupName": "Response Ops HTTPS dependencies",
"matchDepNames": [
"@types/http-proxy",
"get-port",
"google-auth-library",
"http-proxy",
"http-proxy-agent",
"https-proxy-agent",
"proxy"
],
"reviewers": [
"team:response-ops"
],
"matchBaseBranches": [
"main"
],
"labels": [
"release_note:skip",
"backport:all-open"
],
"minimumReleaseAge": "7 days",
"enabled": true
},
{
"groupName": "Response Ops misc dependencies",
"matchDepNames": [
"@types/stats-lite",
"@types/textarea-caret",
"email-addresses",
"json-stringify-safe",
"murmurhash",
"mdast-util-to-hast",
"pretty-ms",
"p-settle",
"p-reflect",
"remark-stringify",
"stats-lite",
"textarea-caret",
"type-fest"
],
"reviewers": [
"team:response-ops"
],
"matchBaseBranches": [
"main"
],
"labels": [
"release_note:skip",
"backport:all-open"
],
"minimumReleaseAge": "7 days",
"enabled": true
Expand Down Expand Up @@ -2661,4 +2743,4 @@
"datasourceTemplate": "docker"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ export function processVertexStream() {
});
}

// completion: only present on last chunk
if (value.usageMetadata) {
// 'usageMetadata' can be present as an empty object on chunks
// only the last chunk will have its fields populated
if (value.usageMetadata?.totalTokenCount) {
subscriber.next({
type: ChatCompletionEventType.ChatCompletionTokenCount,
tokens: {
Expand Down
8 changes: 8 additions & 0 deletions x-pack/plugins/serverless_search/common/i18n_string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ export const DISABLED_LABEL: string = i18n.translate('xpack.serverlessSearch.dis
defaultMessage: 'Disabled',
});

export const BETA_LABEL: string = i18n.translate('xpack.serverlessSearch.beta', {
defaultMessage: 'Beta',
});

export const TECH_PREVIEW_LABEL: string = i18n.translate('xpack.serverlessSearch.techPreview', {
defaultMessage: 'Tech preview',
});

export const INVALID_JSON_ERROR: string = i18n.translate(
'xpack.serverlessSearch.invalidJsonError',
{
Expand Down
Loading

0 comments on commit ffae7d3

Please sign in to comment.