-
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
Re-enable _mb suffixed stack monitoring func tests #98354
Re-enable _mb suffixed stack monitoring func tests #98354
Conversation
These tests were disabled temporarily in elastic#98238 because of intermittent failures in master.
@jasonrhodes the description in #96205 says elastic/elasticsearch#71233 needs to be merged before all functional test will consistently pass. Can we try merging that first? |
@neptunian wow, I did not see that at all. I don't totally understand how a user permission error would cause intermittent failures rather than consistent ones, but based on that note, we should definitely start there and then run the tests on this PR a few times and see what happens. Looks like that PR requires one last thing? Let's merge it as-is since it's Chris's branch, and then would you mind submitting another PR with just that last requested update? It looks like they are asking for a new test or updated test? |
@elasticmachine merge upstream |
This failure that just happened is the one that caused all of the intermittent issues when we turned these tests on in master. It seems like the page just doesn't load sometimes, so the selector never finds the overall ES wrapper on the page. It can happen on lots of different pages and it's always that same timeout selector error, and just for the _mb versions of the tests. I think we should probably spin the archive up and see if it loads fine or if it times out a lot, as a starting point? |
@jasonrhodes Thanks, will look into it further. I'm able to reproduce it locally. |
I think there does seem to be a permissions problem as this is the error when it fails. User sets the date range and click the submit button. Server responds with 403 forbidden. From the functional tests:
Full message: |
@chrisronline hey would you mind taking a look at this error and see if you have some high level suggestions for how we should debug this? I'm wondering if we need to update the tests to take advantage of the new permissions role? |
I always get 403 forbidden when I try to access stack monitoring with the role of
|
@neptunian interesting, do you have any theories about how this would manifest in functional tests but only some of the time and not every time that user is used? My assumption is we use that user consistently in some tests? |
@elasticmachine merge upstream |
I see now that getting the 403 forbidden on these requests isn't the cause of the failure. When the user submits the query a request is made to |
I have found that when the mb test DOES pass, it is not using |
@elasticmachine merge upstream |
Looks like we're getting consistent failures now while we wait for the ES snapshot to update, is that right? One question I have is that when these were failing in master, the failures were spread out over at least 5 or 6 of the _mb test files. It looks like only one test is failing in Jenkins right now. Do we understand why that would be? |
Yes.
I don't think it keeps running after it encounters a first failure? And it would be normal that different mb files would fail depending on whether it was logged in as a superuser or not. When I run it locally all the test failures are from mb tests and there are several. |
Ok, if this is true, then that makes sense. Thanks! |
@elasticmachine merge upstream |
@jasonrhodes I confirmed the ES snapshot was updated and tests are passing now as expected. Shall we run it a few more times and then merge? |
Amazing! Great work!!!
Sounds like a good plan. |
@elasticmachine merge upstream |
@neptunian can you approve this since I created it? |
@elasticmachine merge upstream |
x-pack/test/functional/apps/monitoring/_get_lifecycle_methods.js
Outdated
Show resolved
Hide resolved
x-pack/test/functional/apps/monitoring/_get_lifecycle_methods.js
Outdated
Show resolved
Hide resolved
Just FYI :
Setting the parameter to |
cfce762
to
0c0d917
Compare
Passing on flaky test runner https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/1596/ |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Unknown metric groupsReferences to deprecated APIs
History
To update your PR or re-run it, just comment with: cc @jasonrhodes |
* Reenabled _mb suffixed stack monitoring func tests These tests were disabled temporarily in elastic#98238 because of intermittent failures in master. * use test_user instead of basic_monitoring_user * remove security service * remove logout and cleanup Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: neptunian <[email protected]>
* Reenabled _mb suffixed stack monitoring func tests These tests were disabled temporarily in elastic#98238 because of intermittent failures in master. * use test_user instead of basic_monitoring_user * remove security service * remove logout and cleanup Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: neptunian <[email protected]> # Conflicts: # x-pack/test/functional/apps/monitoring/index.js
* Reenabled _mb suffixed stack monitoring func tests These tests were disabled temporarily in elastic#98238 because of intermittent failures in master. * use test_user instead of basic_monitoring_user * remove security service * remove logout and cleanup Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: neptunian <[email protected]> # Conflicts: # x-pack/test/functional/apps/monitoring/index.js
* Reenabled _mb suffixed stack monitoring func tests These tests were disabled temporarily in #98238 because of intermittent failures in master. * use test_user instead of basic_monitoring_user * remove security service * remove logout and cleanup Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: neptunian <[email protected]> Co-authored-by: Jason Rhodes <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
These tests were disabled temporarily in #98238 because of intermittent failures in master.
Details on running this locally with a subset of tests TBD.
Note: DO NOT MERGE just because this PR is green. The tests are flaky and we need to understand why before we merge.