Skip to content

Commit

Permalink
[Response Ops] Fix Task Manager Schedule Flaky Test (elastic#201732)
Browse files Browse the repository at this point in the history
## Summary

Issue: elastic#198664

Fixes task manager schedule flaky test according to guidance posted
here: elastic#161882

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
JiaweiWu and elasticmachine authored Dec 6, 2024
1 parent 4215a63 commit cdd1ba9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 159 deletions.
54 changes: 18 additions & 36 deletions x-pack/test/functional/es_archives/task_manager_tasks/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"type": "doc",
"value": {
"id": "task:be7e1250-3322-11eb-94c1-db6995e84f6a",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "7.16.0"
},
"typeMigrationVersion": "7.16.0",
"references": [
],
"task": {
Expand All @@ -33,11 +31,9 @@
"type": "doc",
"value": {
"id": "task:be7e1250-3322-11eb-94c1-db6995e8389f",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "7.16.0"
},
"typeMigrationVersion": "7.16.0",
"references": [
],
"task": {
Expand All @@ -64,11 +60,9 @@
"type": "doc",
"value": {
"id": "task:d33d7590-8377-11ec-8c11-2dfe94229b95",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "7.6.0"
},
"typeMigrationVersion": "7.6.0",
"task": {
"taskType": "alerting:xpack.uptime.alerts.monitorStatus",
"retryAt": null,
Expand All @@ -95,11 +89,9 @@
"type": "doc",
"value": {
"id": "task:ce7e1250-3322-11eb-94c1-db6995e84f6d",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "7.16.0"
},
"typeMigrationVersion": "7.16.0",
"references": [
],
"task": {
Expand All @@ -126,11 +118,9 @@
"type": "doc",
"value": {
"id": "task:fe7e1250-3322-11eb-94c1-db6395e84f6e",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "7.16.0"
},
"typeMigrationVersion": "7.16.0",
"references": [
],
"task": {
Expand All @@ -157,11 +147,9 @@
"type": "doc",
"value": {
"id": "task:ge7e1250-3322-11eb-94c1-db6395e84f6g",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "7.16.0"
},
"typeMigrationVersion": "7.16.0",
"references": [
],
"task": {
Expand All @@ -188,11 +176,9 @@
"type": "doc",
"value": {
"id": "task:ie7e1250-3322-11eb-94c1-db6395e84f6i",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "7.16.0"
},
"typeMigrationVersion": "7.16.0",
"references": [
],
"task": {
Expand All @@ -219,11 +205,9 @@
"type": "doc",
"value": {
"id": "task:d0487a50-c7f1-11ed-aefe-691acd8d4e25",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "8.5.0"
},
"typeMigrationVersion": "8.5.0",
"task": {
"retryAt": null,
"runAt": "2023-03-21T14:08:29.777Z",
Expand Down Expand Up @@ -255,11 +239,9 @@
"type": "doc",
"value": {
"id": "task:cf0ced10-c7f1-11ed-aefe-691acd8d4e25",
"index": ".kibana_task_manager_1",
"index": ".kibana_task_manager",
"source": {
"migrationVersion": {
"task": "8.5.0"
},
"typeMigrationVersion": "8.5.0",
"task": {
"retryAt": null,
"runAt": "2023-03-21T14:08:29.777Z",
Expand Down
121 changes: 0 additions & 121 deletions x-pack/test/functional/es_archives/task_manager_tasks/mappings.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export default function createTaskManagementScheduledAtTests({ getService }: Ftr
const esArchiver = getService('esArchiver');
const retry = getService('retry');

// FLAKY: https://github.com/elastic/kibana/issues/198664
describe.skip('task management scheduled at', () => {
describe('task management scheduled at', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/task_manager_tasks');
});
Expand Down

0 comments on commit cdd1ba9

Please sign in to comment.