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/platform/plugins/shared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity #201681

Merged
merged 22 commits into from
Feb 5, 2025

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented Nov 25, 2024

Resolves #205949, #191117

Summary

Trying to fix flaky integration test by performing a bulk create for the test tasks instead of creating one by one. After making this change, was able to run the integration test ~100 times without failure.

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #89 / APM API tests fleet/input_only_package.spec.ts basic no archive APM package policy input only package when ingesting events using the scoped api key the events can be seen on the Service Inventory Page

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
taskManager 28 110 +82

Total ESLint disabled count

id before after diff
taskManager 28 110 +82

History

@ymao1
Copy link
Contributor Author

ymao1 commented Dec 7, 2024

@elasticmachine merge upstream

@ymao1 ymao1 changed the title running the test a lot Fixes Failing test: Jest Integration Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity Feb 4, 2025
@ymao1 ymao1 added v9.0.0 v9.1.0 v8.18.0 v8.19.0 release_note:skip Skip the PR/issue when compiling release notes labels Feb 4, 2025
@ymao1 ymao1 added the backport:version Backport to applied version labels label Feb 4, 2025
@ymao1 ymao1 self-assigned this Feb 4, 2025
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @ymao1

@ymao1 ymao1 marked this pull request as ready for review February 4, 2025 17:16
@ymao1 ymao1 requested a review from a team as a code owner February 4, 2025 17:16
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@ymao1 ymao1 requested review from pmuellr and ersin-erdal February 4, 2025 17:17
Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ymao1 ymao1 merged commit 7f28ae6 into elastic:main Feb 5, 2025
25 checks passed
@ymao1 ymao1 deleted the flaky-test-191117-again branch February 5, 2025 21:20
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13166797631

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 5, 2025
…ared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (elastic#201681)

Resolves elastic#205949,
elastic#191117

## Summary

Trying to fix flaky integration test by performing a bulk create for the
test tasks instead of creating one by one. After making this change, was
able to run the integration test ~100 times without failure.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 7f28ae6)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 201681

Questions ?

Please refer to the Backport tool documentation

@ymao1
Copy link
Contributor Author

ymao1 commented Feb 5, 2025

💚 All backports created successfully

Status Branch Result
8.x
8.18

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

ymao1 added a commit to ymao1/kibana that referenced this pull request Feb 5, 2025
…ared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (elastic#201681)

Resolves elastic#205949,
elastic#191117

## Summary

Trying to fix flaky integration test by performing a bulk create for the
test tasks instead of creating one by one. After making this change, was
able to run the integration test ~100 times without failure.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 7f28ae6)

# Conflicts:
#	x-pack/platform/plugins/shared/task_manager/server/integration_tests/task_manager_capacity_based_claiming.test.ts
ymao1 added a commit to ymao1/kibana that referenced this pull request Feb 5, 2025
…ared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (elastic#201681)

Resolves elastic#205949,
elastic#191117

## Summary

Trying to fix flaky integration test by performing a bulk create for the
test tasks instead of creating one by one. After making this change, was
able to run the integration test ~100 times without failure.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 7f28ae6)

# Conflicts:
#	x-pack/platform/plugins/shared/task_manager/server/integration_tests/task_manager_capacity_based_claiming.test.ts
kibanamachine added a commit that referenced this pull request Feb 5, 2025
…ins/shared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (#201681) (#209920)

# Backport

This will backport the following commits from `main` to `9.0`:
- [Fixes Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)](#201681)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-05T21:20:38Z","message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Task
Manager","Team:ResponseOps","v9.0.0","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full
capacity","number":201681,"url":"https://github.com/elastic/kibana/pull/201681","mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201681","number":201681,"mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Ying Mao <[email protected]>
ymao1 added a commit that referenced this pull request Feb 5, 2025
…gins/shared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (#201681) (#209923)

# Backport

This will backport the following commits from `main` to `8.18`:
- [Fixes Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)](#201681)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-05T21:20:38Z","message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Task
Manager","Team:ResponseOps","v9.0.0","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full
capacity","number":201681,"url":"https://github.com/elastic/kibana/pull/201681","mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/209920","number":209920,"state":"OPEN"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201681","number":201681,"mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
ymao1 added a commit that referenced this pull request Feb 5, 2025
…ins/shared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (#201681) (#209922)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Fixes Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)](#201681)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-05T21:20:38Z","message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Task
Manager","Team:ResponseOps","v9.0.0","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full
capacity","number":201681,"url":"https://github.com/elastic/kibana/pull/201681","mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/209920","number":209920,"state":"OPEN"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201681","number":201681,"mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
drewdaemon pushed a commit to drewdaemon/kibana that referenced this pull request Feb 6, 2025
…ared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (elastic#201681)

Resolves elastic#205949,
elastic#191117

## Summary

Trying to fix flaky integration test by performing a bulk create for the
test tasks instead of creating one by one. After making this change, was
able to run the integration test ~100 times without failure.

---------

Co-authored-by: Elastic Machine <[email protected]>
ymao1 added a commit to ymao1/kibana that referenced this pull request Feb 7, 2025
…ared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (elastic#201681)

Resolves elastic#205949,
elastic#191117

## Summary

Trying to fix flaky integration test by performing a bulk create for the
test tasks instead of creating one by one. After making this change, was
able to run the integration test ~100 times without failure.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 7f28ae6)
@ymao1
Copy link
Contributor Author

ymao1 commented Feb 7, 2025

💚 All backports created successfully

Status Branch Result
8.16

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

ymao1 added a commit that referenced this pull request Feb 7, 2025
…gins/shared/task_manager/server/integration_tests - capacity based claiming should claim tasks to full capacity (#201681) (#210232)

# Backport

This will backport the following commits from `main` to `8.16`:
- [Fixes Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)](#201681)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-05T21:20:38Z","message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Task
Manager","Team:ResponseOps","v9.0.0","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full
capacity","number":201681,"url":"https://github.com/elastic/kibana/pull/201681","mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/209920","number":209920,"state":"MERGED","mergeCommit":{"sha":"90f844b2255f7463614f029c329b80cc741cf151","message":"[9.0]
Fixes Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity (#201681)
(#209920)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.0`:\n- [Fixes Failing test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)](https://github.com/elastic/kibana/pull/201681)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Ying\nMao\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2025-02-05T21:20:38Z\",\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:skip\",\"Feature:Task\nManager\",\"Team:ResponseOps\",\"v9.0.0\",\"backport:version\",\"v8.18.0\",\"v9.1.0\",\"v8.19.0\"],\"title\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to
full\ncapacity\",\"number\":201681,\"url\":\"https://github.com/elastic/kibana/pull/201681\",\"mergeCommit\":{\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"9.0\",\"8.18\",\"8.x\"],\"targetPullRequestStates\":[{\"branch\":\"9.0\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/201681\",\"number\":201681,\"mergeCommit\":{\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\"}},{\"branch\":\"8.x\",\"label\":\"v8.19.0\",\"branchLabelMappingKey\":\"^v8.19.0$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by:
Ying Mao
<[email protected]>"}},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/209923","number":209923,"state":"MERGED","mergeCommit":{"sha":"afb1bd58a86cd7d43ec3dfcc7473f9b1a896ad4f","message":"[8.18]
Fixes Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity (#201681)
(#209923)\n\n# Backport\n\nThis will backport the following commits from
`main` to `8.18`:\n- [Fixes Failing test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)](https://github.com/elastic/kibana/pull/201681)\n\n<!---
Backport version: 9.6.4 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Ying\nMao\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2025-02-05T21:20:38Z\",\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:skip\",\"Feature:Task\nManager\",\"Team:ResponseOps\",\"v9.0.0\",\"backport:version\",\"v8.18.0\",\"v9.1.0\",\"v8.19.0\"],\"title\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to
full\ncapacity\",\"number\":201681,\"url\":\"https://github.com/elastic/kibana/pull/201681\",\"mergeCommit\":{\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.18\",\"8.x\"],\"targetPullRequestStates\":[{\"branch\":\"9.0\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"url\":\"https://github.com/elastic/kibana/pull/209920\",\"number\":209920,\"state\":\"OPEN\"},{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/201681\",\"number\":201681,\"mergeCommit\":{\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\"}},{\"branch\":\"8.x\",\"label\":\"v8.19.0\",\"branchLabelMappingKey\":\"^v8.19.0$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201681","number":201681,"mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity
(#201681)\n\nResolves
https://github.com/elastic/kibana/issues/205949,\r\nhttps://github.com/elastic/kibana/issues/191117\r\n\r\n##
Summary\r\n\r\nTrying to fix flaky integration test by performing a bulk
create for the\r\ntest tasks instead of creating one by one. After
making this change, was\r\nable to run the integration test ~100 times
without failure.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"7f28ae63e36d73ec471df7109909b1249f7edafd"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/209922","number":209922,"state":"MERGED","mergeCommit":{"sha":"e8c26120d3d58beec3a233f6ee92556d96b20835","message":"[8.x]
Fixes Failing test: Jest Integration
Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests
- capacity based claiming should claim tasks to full capacity (#201681)
(#209922)\n\n# Backport\n\nThis will backport the following commits from
`main` to `8.x`:\n- [Fixes Failing test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)](https://github.com/elastic/kibana/pull/201681)\n\n<!---
Backport version: 9.6.4 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Ying\nMao\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2025-02-05T21:20:38Z\",\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:skip\",\"Feature:Task\nManager\",\"Team:ResponseOps\",\"v9.0.0\",\"backport:version\",\"v8.18.0\",\"v9.1.0\",\"v8.19.0\"],\"title\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to
full\ncapacity\",\"number\":201681,\"url\":\"https://github.com/elastic/kibana/pull/201681\",\"mergeCommit\":{\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.18\",\"8.x\"],\"targetPullRequestStates\":[{\"branch\":\"9.0\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"url\":\"https://github.com/elastic/kibana/pull/209920\",\"number\":209920,\"state\":\"OPEN\"},{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/201681\",\"number\":201681,\"mergeCommit\":{\"message\":\"Fixes\nFailing
test: Jest
Integration\nTests.x-pack/platform/plugins/shared/task_manager/server/integration_tests\n-
capacity based claiming should claim tasks to full
capacity\n(#201681)\\n\\nResolves\nhttps://github.com//issues/205949,\\r\\nhttps://github.com//issues/191117\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nTrying
to fix flaky integration test by performing a bulk\ncreate for
the\\r\\ntest tasks instead of creating one by one. After\nmaking this
change, was\\r\\nable to run the integration test ~100 times\nwithout
failure.\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by: Elastic
Machine\n<[email protected]>\",\"sha\":\"7f28ae63e36d73ec471df7109909b1249f7edafd\"}},{\"branch\":\"8.x\",\"label\":\"v8.19.0\",\"branchLabelMappingKey\":\"^v8.19.0$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->"}}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version 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.4 v8.18.0 v8.19.0 v9.0.0 v9.1.0
Projects
None yet
4 participants