mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ftr] split oblt DA configs to speedup CI (#217452)
## Summary Splitting the following config: - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts **~61 min** by moving `ai_assistant`, `synthetics` and `streams` tests in its own configs - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.serverless.config.ts ~11m 30s - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts ~21m 30s - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.streams.serverless.config.ts ~21m 43s original config with less tests: - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts ~17 min
This commit is contained in:
parent
f8f6e6ed0a
commit
aa9be6a621
8 changed files with 98 additions and 4 deletions
|
@ -30,4 +30,7 @@ enabled:
|
|||
- x-pack/test_serverless/functional/test_suites/observability/config.telemetry.ts
|
||||
# serverless config files that run deployment-agnostic tests
|
||||
- x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts
|
||||
- x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.serverless.config.ts
|
||||
- x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.config.ts
|
||||
- x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts
|
||||
- x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.streams.serverless.config.ts
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
import { DeploymentAgnosticFtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) {
|
||||
describe('Serverless Observability - Deployment-agnostic APM API integration tests', function () {
|
||||
this.tags(['esGate']);
|
||||
|
||||
loadTestFile(require.resolve('../../apis/observability/ai_assistant'));
|
||||
});
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
import { createServerlessTestConfig } from '../../default_configs/serverless.config.base';
|
||||
|
||||
export default createServerlessTestConfig({
|
||||
serverlessProject: 'oblt',
|
||||
testFiles: [require.resolve('./oblt.ai_assistant.index.ts')],
|
||||
junit: {
|
||||
reportName: 'Serverless Observability - Deployment-agnostic API Integration Tests',
|
||||
},
|
||||
});
|
|
@ -10,7 +10,8 @@ export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext)
|
|||
describe('Serverless Observability - Deployment-agnostic API integration tests', function () {
|
||||
this.tags(['esGate']);
|
||||
|
||||
// load new oblt (except APM) and platform deployment-agnostic test here
|
||||
// load new oblt and platform deployment-agnostic test here
|
||||
// Note: if your tests runtime is over 5 minutes, create a new index and config file
|
||||
loadTestFile(require.resolve('../../apis/console'));
|
||||
loadTestFile(require.resolve('../../apis/core'));
|
||||
loadTestFile(require.resolve('../../apis/management'));
|
||||
|
@ -20,9 +21,6 @@ export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext)
|
|||
loadTestFile(require.resolve('../../apis/painless_lab'));
|
||||
loadTestFile(require.resolve('../../apis/saved_objects_management'));
|
||||
loadTestFile(require.resolve('../../apis/observability/slo'));
|
||||
loadTestFile(require.resolve('../../apis/observability/synthetics'));
|
||||
loadTestFile(require.resolve('../../apis/observability/ai_assistant'));
|
||||
loadTestFile(require.resolve('../../apis/observability/streams'));
|
||||
loadTestFile(require.resolve('../../apis/observability/onboarding'));
|
||||
loadTestFile(require.resolve('../../apis/observability/incident_management'));
|
||||
});
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
import { DeploymentAgnosticFtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) {
|
||||
describe('Serverless Observability - Deployment-agnostic APM API integration tests', function () {
|
||||
this.tags(['esGate']);
|
||||
|
||||
loadTestFile(require.resolve('../../apis/observability/streams'));
|
||||
});
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
import { createServerlessTestConfig } from '../../default_configs/serverless.config.base';
|
||||
|
||||
export default createServerlessTestConfig({
|
||||
serverlessProject: 'oblt',
|
||||
testFiles: [require.resolve('./oblt.streams.index.ts')],
|
||||
junit: {
|
||||
reportName: 'Serverless Observability - Deployment-agnostic API Integration Tests',
|
||||
},
|
||||
});
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
import { DeploymentAgnosticFtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) {
|
||||
describe('Serverless Observability - Deployment-agnostic APM API integration tests', function () {
|
||||
this.tags(['esGate']);
|
||||
|
||||
loadTestFile(require.resolve('../../apis/observability/synthetics'));
|
||||
});
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
import { createServerlessTestConfig } from '../../default_configs/serverless.config.base';
|
||||
|
||||
export default createServerlessTestConfig({
|
||||
serverlessProject: 'oblt',
|
||||
testFiles: [require.resolve('./oblt.synthetics.index.ts')],
|
||||
junit: {
|
||||
reportName: 'Serverless Observability - Deployment-agnostic API Integration Tests',
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue