Skip to content

Commit 195c392

Browse files
authored
Merge branch 'main' into discover-tabs-add-separators
2 parents 5ee1535 + 5e74b4c commit 195c392

File tree

2,205 files changed

+123719
-19630
lines changed

Some content is hidden

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

2,205 files changed

+123719
-19630
lines changed

.buildkite/ftr_security_serverless_configs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ enabled:
6161
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/configs/serverless.config.ts
6262
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/configs/serverless.config.ts
6363
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/trial_license_complete_tier/configs/serverless.config.ts
64+
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/unified_alerts/basic_license_essentials_tier/configs/serverless.config.ts
6465
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/exceptions/operators_data_types/date_types/basic_license_essentials_tier/configs/serverless.config.ts
6566
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/exceptions/operators_data_types/float/basic_license_essentials_tier/configs/serverless.config.ts
6667
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/exceptions/operators_data_types/integer/basic_license_essentials_tier/configs/serverless.config.ts

.buildkite/ftr_security_stateful_configs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ enabled:
4444
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/configs/ess.config.ts
4545
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/basic_license_essentials_tier/configs/ess.config.ts
4646
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/trial_license_complete_tier/configs/ess.config.ts
47+
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/unified_alerts/basic_license_essentials_tier/configs/ess.config.ts
4748
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/exceptions/operators_data_types/date_types/basic_license_essentials_tier/configs/ess.config.ts
4849
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/exceptions/operators_data_types/float/basic_license_essentials_tier/configs/ess.config.ts
4950
- x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/exceptions/operators_data_types/integer/basic_license_essentials_tier/configs/ess.config.ts

.buildkite/package-lock.json

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.buildkite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"adm-zip": "^0.5.16",
1313
"axios": "^1.8.3",
1414
"globby": "^11.1.0",
15-
"js-yaml": "^4.1.0",
15+
"js-yaml": "^4.1.1",
1616
"minimatch": "^5.0.1",
1717
"minimist": "^1.2.8",
1818
"p-limit": "^3.1.0",

.buildkite/pipeline-resource-definitions/kibana-fips-daily.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,28 @@ spec:
2424
repository: elastic/kibana
2525
branch_configuration: main 9.1 8.19
2626
default_branch: main
27-
pipeline_file: '.buildkite/pipelines/fips.yml'
27+
pipeline_file: .buildkite/pipelines/fips/fips_pipeline.sh
2828
provider_settings:
2929
trigger_mode: none
3030
schedules:
31-
Daily build (main):
32-
message: Daily build
31+
'140-2 Daily build (main)':
32+
message: 140-2 Daily build
3333
branch: main
3434
cronline: 0 5 * * * America/New_York
35-
Daily build (9.1):
36-
message: Daily build
35+
env:
36+
KBN_FIPS_VERSION: '140-2'
37+
'140-2 Daily build (9.1)':
38+
message: 140-2 Daily build
3739
branch: '9.1'
3840
cronline: 0 5 * * * America/New_York
39-
Daily build (8.19):
40-
message: Daily build
41+
env:
42+
KBN_FIPS_VERSION: '140-2'
43+
'140-2 Daily build (8.19)':
44+
message: 140-2 Daily build
4145
branch: '8.19'
4246
cronline: 0 5 * * * America/New_York
47+
env:
48+
KBN_FIPS_VERSION: '140-2'
4349
teams:
4450
kibana-operations:
4551
access_level: MANAGE_BUILD_AND_READ

.buildkite/pipeline-utils/buildkite/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
export * from './client';
1111
export * from './types';
12-
export * from './emitPipeline';
12+
export * from './utils';
Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,14 @@
77
* License v3.0 only", or the "Server Side Public License, v 1".
88
*/
99

10-
import { useMemo } from 'react';
11-
import { filter, share, tap } from 'rxjs';
12-
import type { UnifiedHistogramInput$ } from '../../../types';
10+
import fs from 'fs';
1311

14-
export const useFetch = ({
15-
input$,
16-
beforeFetch,
17-
}: {
18-
input$: UnifiedHistogramInput$;
19-
beforeFetch: () => void;
20-
}) => {
21-
return useMemo(
22-
() =>
23-
input$.pipe(
24-
filter((message) => message.type === 'fetch'),
25-
tap(beforeFetch),
26-
share()
27-
),
28-
[beforeFetch, input$]
29-
);
12+
export function emitPipeline(pipelineSteps: string[]) {
13+
const pipelineStr = [...new Set(pipelineSteps)].join('\n');
14+
console.log(pipelineStr);
15+
}
16+
17+
export const getPipeline = (filename: string, removeSteps = true) => {
18+
const str = fs.readFileSync(filename).toString();
19+
return removeSteps ? str.replace(/^steps:/, '') : str;
3020
};

.buildkite/pipelines/fips.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ steps:
3232

3333
- wait
3434

35-
- command: .buildkite/scripts/steps/checks/verify_fips_enabled.sh
35+
- command: .buildkite/pipelines/fips/verify_fips_enabled.sh
3636
label: 'Verify FIPS Enabled'
3737
depends_on: build
3838
timeout_in_minutes: 10
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
ts-node .buildkite/pipelines/fips/fips_pipeline.ts
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { emitPipeline, getPipeline } from '#pipeline-utils';
11+
12+
(async () => {
13+
const pipeline: string[] = [];
14+
15+
try {
16+
pipeline.push(getPipeline('.buildkite/pipelines/fips.yml', false));
17+
18+
emitPipeline(pipeline);
19+
} catch (ex) {
20+
console.error('Error while generating the pipeline steps: ' + ex.message, ex);
21+
process.exit(1);
22+
}
23+
})();

0 commit comments

Comments
 (0)