-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] flaky bulk disable task test #144739
Conversation
I think this might be part of the problem. We throw away the results of the bulk update:
If you imagine that one of the updates fails, we'll never know. We'll need to figure out what we want to return here. Probably a list of the tasks that were attempted to be disabled, and the result of trying to update them. The reason an individual one might fail is OCC. The task SO doc will get updated when the task runs, so maybe there's some ordering where the task doc gets updated while the disable is taking place? That update will fail, but we don't return the status. You can see OCC (with the kibana/x-pack/plugins/task_manager/server/task_store.ts Lines 219 to 227 in e58e697
Once we have a proper result for this API, I think this may need a more elaborate fix, where if we try to disable X rules but only Y end up disabled, then we retry the other ones a few times, like the other OCC wrappers we have. We could still have some failures with some tasks, but at least we'd retry a few times. |
…49-flaky-test-aad
I opened #145316 since I think there's a chance that's what's causing the failures. I think we should probably block this one, till we get that issue resolved. |
💔 Build FailedFailed CI Steps
Test Failures
Metrics [docs]Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
fixes: #141849