Skip to content

Commit

Permalink
[CI] Split alerting-api-integration tests into separate cigroups (#13…
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders authored Apr 18, 2022
1 parent 8364fc7 commit 6a4eb48
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipelines/es_snapshots/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ steps:

- command: .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Default CI Group'
parallelism: 29
parallelism: 30
agents:
queue: n2-4
depends_on: build
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipelines/flaky_tests/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{
"key": "xpack/cigroup",
"name": "Default CI Group",
"ciGroups": 29
"ciGroups": 30
},
{
"key": "xpack/firefox",
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipelines/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ steps:

- command: .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Default CI Group'
parallelism: 29
parallelism: 30
agents:
queue: n2-4-spot
depends_on: build
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:

- command: .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Default CI Group'
parallelism: 29
parallelism: 30
agents:
queue: n2-4-spot-2
depends_on: build
Expand Down
1 change: 1 addition & 0 deletions .ci/ci_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ xpack:
- ciGroup27
- ciGroup28
- ciGroup29
- ciGroup30
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,35 @@ export default function alertingTests({ loadTestFile, getService }: FtrProviderC
await tearDown(getService);
});

loadTestFile(require.resolve('./find'));
loadTestFile(require.resolve('./create'));
loadTestFile(require.resolve('./delete'));
loadTestFile(require.resolve('./disable'));
loadTestFile(require.resolve('./enable'));
loadTestFile(require.resolve('./execution_status'));
loadTestFile(require.resolve('./get'));
loadTestFile(require.resolve('./get_alert_state'));
loadTestFile(require.resolve('./get_alert_summary'));
loadTestFile(require.resolve('./rule_types'));
loadTestFile(require.resolve('./mute_all'));
loadTestFile(require.resolve('./mute_instance'));
loadTestFile(require.resolve('./unmute_all'));
loadTestFile(require.resolve('./unmute_instance'));
loadTestFile(require.resolve('./update'));
loadTestFile(require.resolve('./update_api_key'));
loadTestFile(require.resolve('./alerts'));
loadTestFile(require.resolve('./event_log'));
loadTestFile(require.resolve('./mustache_templates'));
loadTestFile(require.resolve('./health'));
loadTestFile(require.resolve('./excluded'));
loadTestFile(require.resolve('./snooze'));
describe('', function () {
this.tags('ciGroup17');
loadTestFile(require.resolve('./find'));
loadTestFile(require.resolve('./create'));
loadTestFile(require.resolve('./delete'));
loadTestFile(require.resolve('./disable'));
loadTestFile(require.resolve('./enable'));
loadTestFile(require.resolve('./execution_status'));
loadTestFile(require.resolve('./get'));
loadTestFile(require.resolve('./get_alert_state'));
loadTestFile(require.resolve('./get_alert_summary'));
loadTestFile(require.resolve('./rule_types'));
});

describe('', function () {
this.tags('ciGroup30');
loadTestFile(require.resolve('./mute_all'));
loadTestFile(require.resolve('./mute_instance'));
loadTestFile(require.resolve('./unmute_all'));
loadTestFile(require.resolve('./unmute_instance'));
loadTestFile(require.resolve('./update'));
loadTestFile(require.resolve('./update_api_key'));
loadTestFile(require.resolve('./alerts'));
loadTestFile(require.resolve('./event_log'));
loadTestFile(require.resolve('./mustache_templates'));
loadTestFile(require.resolve('./health'));
loadTestFile(require.resolve('./excluded'));
loadTestFile(require.resolve('./snooze'));
});
});
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@ export async function tearDown(getService: FtrProviderContext['getService']) {
// eslint-disable-next-line import/no-default-export
export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) {
describe('alerting api integration security and spaces enabled', function () {
this.tags('ciGroup17');
describe('', function () {
this.tags('ciGroup17');
loadTestFile(require.resolve('./telemetry'));
loadTestFile(require.resolve('./actions'));
});

loadTestFile(require.resolve('./telemetry'));
loadTestFile(require.resolve('./actions'));
loadTestFile(require.resolve('./alerting'));
describe('', function () {
loadTestFile(require.resolve('./alerting'));
});
});
}

0 comments on commit 6a4eb48

Please sign in to comment.