Skip to content
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

Fixes Failing test: Jest Integration Tests.x-pack/plugins/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity #192357

Closed
wants to merge 0 commits into from

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented Sep 9, 2024

Resolves #191117

This test became flaky again after merging this PR #192261 which changes Kibana to claim tasks against all partitions when the partitions have not yet been assigned. This was due to setting the runAt value to now-1000 which means that all injected tasks were immediately overdue and claimable as soon as possible, which means they might get claimed in different claim cycles. This PR changes the runAt value to now + 5000 so injected tasks won't be claimed until they're all injected so they should be claimed in one cycle.

Copied this test 60 times and was able to run the integration tests twice (so 120 times total) with no failures.

@elasticmachine
Copy link
Contributor

elasticmachine commented Sep 9, 2024

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!

@ymao1
Copy link
Contributor Author

ymao1 commented Sep 10, 2024

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

kibana-ci commented Sep 10, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #13 / FormBasedDimensionEditor should list all field names and document as a whole in prioritized order
  • [job] [logs] Jest Tests #13 / FormBasedDimensionEditor should list all field names and document as a whole in prioritized order

Metrics [docs]

✅ unchanged

History

  • 💛 Build #233051 was flaky 8c5d65618df1c13b683f76719f613defaf68fa0c
  • 💔 Build #232929 failed a9ec921c8f3df6c4286e6b777d751c4e27ecbe94
  • 💔 Build #232746 failed bccd4339c9880a0625fba961f50d218fc028a869

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ymao1

@ymao1 ymao1 changed the title Flaky test 191117 Fixes Failing test: Jest Integration Tests.x-pack/plugins/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity Sep 10, 2024
@ymao1 ymao1 self-assigned this Sep 10, 2024
@ymao1 ymao1 added release_note:skip Skip the PR/issue when compiling release notes Feature:Task Manager Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.16.0 labels Sep 10, 2024
@ymao1 ymao1 closed this Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Task Manager release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.16.0
Projects
None yet
3 participants