-
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
[test-failed]: X-Pack Endpoint Functional Tests1.x-pack/test/security_solution_endpoint/apps/endpoint/policy_details·ts - endpoint When on the Endpoint Policy Details Page with a valid policy id "before all" hook for "should display policy view" #80978
Comments
Pinging @elastic/kibana-test-triage (failed-test) |
Pinging @elastic/endpoint-management (Team:Endpoint Management) |
@liza-mae quick question: re:
Would this cause two instances of the test suite to be run against Kibana concurrently? |
HI @paul-tavares, the two Kibana instances are behind a load balancer, some info: https://www.elastic.co/guide/en/kibana/current/production.html#load-balancing-kibana. I am running on ESS, it is possible these failures are not related to this configuration but I wanted to point it out as a difference and to help in reproducing/debugging the problem. |
@paul-tavares mentioned in Slack that there's a 409 conflict error. There were two recent PRs #80506 & #79201 to enforce unique policy names Fleet avoids this in some tests using an kibana/x-pack/test/ingest_manager_api_integration/apis/package_policy/create.ts Lines 34 to 39 in 76e8d15
kibana/x-pack/test/ingest_manager_api_integration/apis/agent_policy/agent_policy.ts Lines 16 to 24 in b96638b
Another option would be to ensure the name was unique (add |
@jfsiii all of our tests do clean up using kibana/x-pack/test/security_solution_endpoint/apps/endpoint/policy_details.ts Lines 256 to 268 in 041dfdd
Also - this seems to be happening only in this branch (7.10) and maybe only under the given multi-kibana node setup (unclear if that is actually a contributing factor). Can you think of any other issue in Ingest that could cause it? |
@liza-mae how do I access the screen captures taken by the failed test? There are several other tests that failed, some of which make no sense to me and I just want to look at what was being displayed at the time of failure. |
Hi @paul-tavares, yes you can find the screenshots this way:
I have also attached it for you :) The other failures listed in this issue have the same error displayed. |
Thank you @liza-mae . One other think I'm not able to identify is the commit hash for the build that was used for this env. Some of failed tests (unrelated to this one specifically) seem to indicate running older test files against newer code. |
@paul-tavares looking at the the Jenkins logs I see the 409
and the link back to the kibana/x-pack/test/security_solution_endpoint/services/endpoint_policy.ts Lines 132 to 145 in 4a160bf
I found two other files which seem to call If those are tests are sharing the same ES and running at the same time they will have a potential name collision until they cleanup and free up that policy name. |
This was run against 7.10.0 BC2 (kibana f1c0bdd)
It is the other way around, the test files are always the latest and the code under test might be older, that is because when we fix flaky tests I need to pull the latest tests. |
@liza-mae re: test files not being in sync with the code Re: failures against Fleet apis @jfsiii thanks - yes, they are used heavily on our tests, but they all should cleanup during |
We will sync back up once our test failures have gone down to the single digits or preferably zero, I don't expect that to happen soon.
I don't run the test suite concurrently on the same Kibana. |
as far as I can tell, these tests failed with another set of unrelated tests, so I'm going to chalk it up to a build issue. I'm going to close this and will re-open if the problem persists |
Closing this particular one again, I haven't seen it fail on the last couple 7.10 builds. I think it was due to tests being slightly out of sync. Test not failing. Will re-open if it occurs again. Not currently flaky in CI either. |
Version: 7.10.0
Class: X-Pack Endpoint Functional Tests1.x-pack/test/security_solution_endpoint/apps/endpoint/policy_details·ts
Stack Trace:
Other test failures:
Test Report: https://internal-ci.elastic.co/view/Stack%20Tests/job/elastic+estf-cloud-kibana-tests/868/testReport/
Configuration: Two Kibana instances, consistently fails in this configuration.
The text was updated successfully, but these errors were encountered: