mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `main` to `8.16`: - [[Response Ops] Fix Task Manager Schedule Flaky Test (#201732)](https://github.com/elastic/kibana/pull/201732) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jiawei Wu","email":"74562234+JiaweiWu@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-06T03:49:06Z","message":"[Response Ops] Fix Task Manager Schedule Flaky Test (#201732)\n\n## Summary\r\n\r\nIssue: https://github.com/elastic/kibana/issues/198664\r\n\r\nFixes task manager schedule flaky test according to guidance posted\r\nhere: https://github.com/elastic/kibana/issues/161882\r\n\r\n### Checklist\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"cdd1ba9b00b7fb752106ac9b181d84e0c6d94e53","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","Team:ResponseOps","v9.0.0","v8.18.0","v8.16.3","v8.17.1"],"number":201732,"url":"https://github.com/elastic/kibana/pull/201732","mergeCommit":{"message":"[Response Ops] Fix Task Manager Schedule Flaky Test (#201732)\n\n## Summary\r\n\r\nIssue: https://github.com/elastic/kibana/issues/198664\r\n\r\nFixes task manager schedule flaky test according to guidance posted\r\nhere: https://github.com/elastic/kibana/issues/161882\r\n\r\n### Checklist\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"cdd1ba9b00b7fb752106ac9b181d84e0c6d94e53"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201732","number":201732,"mergeCommit":{"message":"[Response Ops] Fix Task Manager Schedule Flaky Test (#201732)\n\n## Summary\r\n\r\nIssue: https://github.com/elastic/kibana/issues/198664\r\n\r\nFixes task manager schedule flaky test according to guidance posted\r\nhere: https://github.com/elastic/kibana/issues/161882\r\n\r\n### Checklist\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"cdd1ba9b00b7fb752106ac9b181d84e0c6d94e53"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.3","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Jiawei Wu <74562234+JiaweiWu@users.noreply.github.com>
This commit is contained in:
parent
492bd48c09
commit
bcccc407c7
3 changed files with 19 additions and 159 deletions
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
@ -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,
|
||||
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
@ -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": {
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
|
|
@ -1,121 +0,0 @@
|
|||
{
|
||||
"type": "index",
|
||||
"value": {
|
||||
"aliases": {
|
||||
".kibana_task_manager": {
|
||||
}
|
||||
},
|
||||
"index": ".kibana_task_manager_1",
|
||||
"mappings": {
|
||||
"_meta": {
|
||||
"migrationMappingPropertyHashes": {
|
||||
"migrationVersion": "4a1746014a75ade3a714e1db5763276f",
|
||||
"namespace": "2f4316de49999235636386fe51dc06c1",
|
||||
"namespaces": "2f4316de49999235636386fe51dc06c1",
|
||||
"originId": "2f4316de49999235636386fe51dc06c1",
|
||||
"references": "7997cf5a56cc02bdc9c93361bde732b0",
|
||||
"task": "235412e52d09e7165fac8a67a43ad6b4",
|
||||
"type": "2f4316de49999235636386fe51dc06c1",
|
||||
"updated_at": "00da57df13e94e9d98437d13ace4bfe0"
|
||||
}
|
||||
},
|
||||
"dynamic": "strict",
|
||||
"properties": {
|
||||
"migrationVersion": {
|
||||
"dynamic": "true",
|
||||
"properties": {
|
||||
"task": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"ignore_above": 256,
|
||||
"type": "keyword"
|
||||
}
|
||||
},
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
"references": {
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"name": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"type": {
|
||||
"type": "keyword"
|
||||
}
|
||||
},
|
||||
"type": "nested"
|
||||
},
|
||||
"task": {
|
||||
"properties": {
|
||||
"taskType": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"scheduledAt": {
|
||||
"type": "date"
|
||||
},
|
||||
"runAt": {
|
||||
"type": "date"
|
||||
},
|
||||
"startedAt": {
|
||||
"type": "date"
|
||||
},
|
||||
"retryAt": {
|
||||
"type": "date"
|
||||
},
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"schedule": {
|
||||
"properties": {
|
||||
"interval": {
|
||||
"type": "keyword"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attempts": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"traceparent": {
|
||||
"type": "text"
|
||||
},
|
||||
"params": {
|
||||
"type": "text"
|
||||
},
|
||||
"state": {
|
||||
"type": "text"
|
||||
},
|
||||
"user": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"scope": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"ownerId": {
|
||||
"type": "keyword"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "date"
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"index": {
|
||||
"auto_expand_replicas": "0-1",
|
||||
"number_of_replicas": "0",
|
||||
"number_of_shards": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -24,8 +24,7 @@ export default function createGetTests({ getService }: FtrProviderContext) {
|
|||
const ALERT_ID = '0359d7fcc04da9878ee9aadbda38ba55';
|
||||
const ACTION_TASK_PARAMS_ID = '6e96ac5e648f57523879661ea72525b7';
|
||||
|
||||
// Failing: See https://github.com/elastic/kibana/issues/194211
|
||||
describe.skip('migrations', () => {
|
||||
describe('migrations', () => {
|
||||
before(async () => {
|
||||
await esArchiver.load('x-pack/test/functional/es_archives/task_manager_tasks');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue