-
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
[Security Solution] fix endpoint list + metadata api FTR tests #170489
Conversation
e70ad1a
to
d2ecf29
Compare
4e058b4
to
31733f1
Compare
b989d75
to
dfbf6bf
Compare
1732180
to
411de6c
Compare
Pinging @elastic/security-defend-workflows (Team:Defend Workflows) |
const isRetryableError = (e: any, additionalResponseStatuses: number[] = []) => | ||
retryMessages.some((msg) => e.message.includes(msg)) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no_shard_available_action_exception
encompasses multiple status codes and sometimes can be 500 which is a bit too wide to include. just checking the message allows for a more narrow check.
Pinging @elastic/fleet (Team:Fleet) |
return semver.includes('-') ? semver.substring(0, semver.indexOf('-')) : semver; | ||
} | ||
|
||
const MIN_ENDPOINT_PACKAGE_V2_VERSION = '8.13.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Endpoint package spec/unattended upgrade has been bumped from 8.12.x
export function isEndpointPackageV2(version: string) { | ||
return semverLte(MIN_ENDPOINT_PACKAGE_V2_VERSION, version); | ||
const parsedVersion = parseSemver(version); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We weren't catching preview versions previously meaning all preview versions were returning false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fleet change LGTM
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
…ic#170489) (cherry picked from commit a50b97f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#170489) (#173085) # Backport This will backport the following commits from `main` to `8.12`: - [[Security Solution] fix endpoint list + metadata api FTR tests (#170489)](#170489) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Joey F. Poon","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-11T16:59:53Z","message":"[Security Solution] fix endpoint list + metadata api FTR tests (#170489)","sha":"a50b97fb2382213c88f65bc7317caa792c3c0750","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:Defend Workflows","v8.12.0","v8.13.0"],"number":170489,"url":"https://github.com/elastic/kibana/pull/170489","mergeCommit":{"message":"[Security Solution] fix endpoint list + metadata api FTR tests (#170489)","sha":"a50b97fb2382213c88f65bc7317caa792c3c0750"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170489","number":170489,"mergeCommit":{"message":"[Security Solution] fix endpoint list + metadata api FTR tests (#170489)","sha":"a50b97fb2382213c88f65bc7317caa792c3c0750"}}]}] BACKPORT--> Co-authored-by: Joey F. Poon <[email protected]>
## Summary Delete responder test skipped in /pull/170489. We've cypress tests that cover the test cases here. ### Flaky runner - https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937 x 50 (...) ### Checklist - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed
## Summary Delete responder test skipped in elastic/pull/170489. We've cypress tests that cover the test cases here. ### Flaky runner - https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937 x 50 (...) ### Checklist - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed (cherry picked from commit db8440d)
## Summary Delete responder test skipped in elastic/pull/170489. We've cypress tests that cover the test cases here. ### Flaky runner - https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937 x 50 (...) ### Checklist - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed (cherry picked from commit db8440d)
…) (#177740) # Backport This will backport the following commits from `main` to `8.13`: - [[Security Solution][Endpoint] Remove responder FTR test (#175454)](#175454) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ash","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-02-23T17:02:47Z","message":"[Security Solution][Endpoint] Remove responder FTR test (#175454)\n\n## Summary\r\n\r\nDelete responder test skipped in /pull/170489.\r\nWe've cypress tests that cover the test cases here.\r\n\r\n### Flaky runner\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937\r\nx 50 (...)\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"db8440dc5b0d56bb147b6c629d9ea229ccf96fcf","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend Workflows","OLM Sprint","v8.12.1","v8.13.0","v8.14.0"],"title":"[Security Solution][Endpoint] Remove responder FTR test","number":175454,"url":"https://github.com/elastic/kibana/pull/175454","mergeCommit":{"message":"[Security Solution][Endpoint] Remove responder FTR test (#175454)\n\n## Summary\r\n\r\nDelete responder test skipped in /pull/170489.\r\nWe've cypress tests that cover the test cases here.\r\n\r\n### Flaky runner\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937\r\nx 50 (...)\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"db8440dc5b0d56bb147b6c629d9ea229ccf96fcf"}},"sourceBranch":"main","suggestedTargetBranches":["8.12","8.13"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175454","number":175454,"mergeCommit":{"message":"[Security Solution][Endpoint] Remove responder FTR test (#175454)\n\n## Summary\r\n\r\nDelete responder test skipped in /pull/170489.\r\nWe've cypress tests that cover the test cases here.\r\n\r\n### Flaky runner\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937\r\nx 50 (...)\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"db8440dc5b0d56bb147b6c629d9ea229ccf96fcf"}}]}] BACKPORT--> Co-authored-by: Ash <[email protected]>
…) (#177739) # Backport This will backport the following commits from `main` to `8.12`: - [[Security Solution][Endpoint] Remove responder FTR test (#175454)](#175454) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ash","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-02-23T17:02:47Z","message":"[Security Solution][Endpoint] Remove responder FTR test (#175454)\n\n## Summary\r\n\r\nDelete responder test skipped in /pull/170489.\r\nWe've cypress tests that cover the test cases here.\r\n\r\n### Flaky runner\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937\r\nx 50 (...)\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"db8440dc5b0d56bb147b6c629d9ea229ccf96fcf","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend Workflows","OLM Sprint","v8.12.1","v8.13.0","v8.14.0"],"title":"[Security Solution][Endpoint] Remove responder FTR test","number":175454,"url":"https://github.com/elastic/kibana/pull/175454","mergeCommit":{"message":"[Security Solution][Endpoint] Remove responder FTR test (#175454)\n\n## Summary\r\n\r\nDelete responder test skipped in /pull/170489.\r\nWe've cypress tests that cover the test cases here.\r\n\r\n### Flaky runner\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937\r\nx 50 (...)\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"db8440dc5b0d56bb147b6c629d9ea229ccf96fcf"}},"sourceBranch":"main","suggestedTargetBranches":["8.12","8.13"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175454","number":175454,"mergeCommit":{"message":"[Security Solution][Endpoint] Remove responder FTR test (#175454)\n\n## Summary\r\n\r\nDelete responder test skipped in /pull/170489.\r\nWe've cypress tests that cover the test cases here.\r\n\r\n### Flaky runner\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937\r\nx 50 (...)\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"db8440dc5b0d56bb147b6c629d9ea229ccf96fcf"}}]}] BACKPORT--> Co-authored-by: Ash <[email protected]>
## Summary Delete responder test skipped in elastic/pull/170489. We've cypress tests that cover the test cases here. ### Flaky runner - https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937 x 50 (...) ### Checklist - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed
## Summary Delete responder test skipped in elastic/pull/170489. We've cypress tests that cover the test cases here. ### Flaky runner - https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4937 x 50 (...) ### Checklist - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed
Summary
Fix endpoint list + metadata api FTR tests. Caused by
.fleet-agents
index occasionally not returning docs for united metadata transform which is resolved by the additional search on the.fleet-agents
index. Still investigating root cause of why this is happening and why the search solves flakiness (replacing the search with a refresh does not resolve flakiness).Flaky test runs:
Fixes:
Checklist
For maintainers