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

Failing test: X-Pack EPM API Integration Tests.x-pack/test/fleet_api_integration/apis/epm/install_endpoint·ts - EPM Endpoints Install endpoint package install should have installed the [endpoint.metadata_current-default] transform #156941

Closed
kibanamachine opened this issue May 6, 2023 · 26 comments · Fixed by #165237, #170305 or #174679
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented May 6, 2023

A test failed on a tracked branch

ResponseError: resource_not_found_exception
	Root causes:
		resource_not_found_exception: Transform with id [endpoint.metadata_current-default-8.8.0] could not be found
    at SniffingTransport.request (node_modules/@elastic/transport/src/Transport.ts:535:17)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Context.<anonymous> (install_endpoint.ts:52:23)
    at Object.apply (wrap_function.js:73:16) {
  meta: {
    body: { error: [Object], status: 404 },
    statusCode: 404,
    headers: {
      'x-elastic-product': 'Elasticsearch',
      'content-type': 'application/json',
      'content-length': '297'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 0,
      aborted: false
    },
    warnings: [Getter]
  }
}

First failure: CI Build - 8.8

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label May 6, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label May 6, 2023
@jsanz jsanz added the Team:Fleet Team label for Observability Data Collection Fleet team label May 12, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@botelastic botelastic bot removed the needs-team Issues missing a team label label May 12, 2023
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@mistic
Copy link
Member

mistic commented Jun 22, 2023

Skipped.

main: a619d7d

juliaElastic added a commit that referenced this issue Aug 30, 2023
Re-enable flaky tests

Closes #161624
Closes #156941
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Aug 30, 2023
Re-enable flaky tests

Closes elastic#161624
Closes elastic#156941

(cherry picked from commit 77f1a11)
kibanamachine referenced this issue Aug 30, 2023
# Backport

This will backport the following commits from `main` to `8.10`:
- [enable flaky
(#165237)](#165237)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Julia
Bardi","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-30T15:59:19Z","message":"enable
flaky (#165237)\n\nRe-enable flaky tests\r\n\r\nCloses
https://github.com/elastic/kibana/issues/161624\r\nCloses
https://github.com/elastic/kibana/issues/156941","sha":"77f1a11f11a443667e78c1afbbebee4d901b5431","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v8.10.0","v8.11.0"],"number":165237,"url":"https://github.com/elastic/kibana/pull/165237","mergeCommit":{"message":"enable
flaky (#165237)\n\nRe-enable flaky tests\r\n\r\nCloses
https://github.com/elastic/kibana/issues/161624\r\nCloses
https://github.com/elastic/kibana/issues/156941","sha":"77f1a11f11a443667e78c1afbbebee4d901b5431"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165237","number":165237,"mergeCommit":{"message":"enable
flaky (#165237)\n\nRe-enable flaky tests\r\n\r\nCloses
https://github.com/elastic/kibana/issues/161624\r\nCloses
https://github.com/elastic/kibana/issues/156941","sha":"77f1a11f11a443667e78c1afbbebee4d901b5431"}}]}]
BACKPORT-->

Co-authored-by: Julia Bardi <[email protected]>
eokoneyo pushed a commit to eokoneyo/kibana that referenced this issue Aug 31, 2023
@kibanamachine kibanamachine reopened this Sep 6, 2023
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@jlind23
Copy link
Contributor

jlind23 commented Sep 7, 2023

@kpollich @juliaElastic looking at the logs isn't it an endpoint related issue?

@hop-dev
Copy link
Contributor

hop-dev commented Sep 7, 2023

@jlind23 it looks like fleet failed to instll the endpoint package. The logs aren't very revealing, here is the relevant bit:

[00:01:49]         │ proc [kibana] [2023-05-06T05:35:47.203+00:00][WARN ][plugins.fleet] Failure to install package [endpoint]: [ResponseError: resource_not_found_exception
[00:01:49]         │ proc [kibana] 	Root causes:
[00:01:49]         │ proc [kibana] 		resource_not_found_exception: Transform with id [endpoint.metadata_united-default-8.8.0] could not be found]
[00:01:49]         │ proc [kibana] [2023-05-06T05:35:47.203+00:00][ERROR][plugins.fleet] uninstalling endpoint-8.8.0 after error installing: [ResponseError: resource_not_found_exception
[00:01:49]         │ proc [kibana] 	Root causes:
[00:01:49]         │ proc [kibana] 		resource_not_found_exception: Transform with id [endpoint.metadata_united-default-8.8.0] could not be found]
[00:01:49]         │ proc [kibana] [2023-05-06T05:35:47.224+00:00][DEBUG][plugins.fleet] Created transform: endpoint.metadata_current-default-8.8.0

@jlind23
Copy link
Contributor

jlind23 commented Sep 7, 2023

@hop-dev thank, any reason why we are still trying to install endpoint 8.8.0 ?

@juliaElastic
Copy link
Contributor

We are testing that transforms are being created on package install, which we can do with endpoint package.

@hop-dev
Copy link
Contributor

hop-dev commented Sep 7, 2023

@hop-dev thank, any reason why we are still trying to install endpoint 8.8.0 ?

@jlind23 Ah I was looking at the logs from the 8.8 build in May not the latest 🤦

juliaElastic added a commit that referenced this issue Nov 1, 2023
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 1, 2023
kibanamachine referenced this issue Nov 1, 2023
# Backport

This will backport the following commits from `main` to `8.11`:
- [[Fleet] enable flaky tests
(#170305)](#170305)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Julia
Bardi","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-01T12:55:54Z","message":"[Fleet]
enable flaky tests (#170305)\n\nCloses
https://github.com/elastic/kibana/issues/167188\r\nCloses
https://github.com/elastic/kibana/issues/156941","sha":"10f7865e4559b43f49d3a73dfd469dee34631938","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v8.12.0","v8.11.1"],"number":170305,"url":"https://github.com/elastic/kibana/pull/170305","mergeCommit":{"message":"[Fleet]
enable flaky tests (#170305)\n\nCloses
https://github.com/elastic/kibana/issues/167188\r\nCloses
https://github.com/elastic/kibana/issues/156941","sha":"10f7865e4559b43f49d3a73dfd469dee34631938"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170305","number":170305,"mergeCommit":{"message":"[Fleet]
enable flaky tests (#170305)\n\nCloses
https://github.com/elastic/kibana/issues/167188\r\nCloses
https://github.com/elastic/kibana/issues/156941","sha":"10f7865e4559b43f49d3a73dfd469dee34631938"}},{"branch":"8.11","label":"v8.11.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Julia Bardi <[email protected]>
delanni pushed a commit to delanni/kibana that referenced this issue Nov 6, 2023
@kibanamachine kibanamachine reopened this Nov 7, 2023
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@jbudz
Copy link
Member

jbudz commented Nov 9, 2023

/skip

@kibanamachine
Copy link
Contributor Author

Skipped

main: e0da2ae

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 8.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
9 participants