-
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]: Chrome X-Pack UI Functional Tests1.x-pack/test/functional/apps/discover/feature_controls/discover_spaces·ts - discover feature controls spaces space with index pattern management disabled Navigates to Kibana home rather than index pattern management when no index patterns exist #68849
Comments
Pinging @elastic/kibana-test-triage (failed-test) |
Pinging @elastic/kibana-security (Team:Security) |
Reassigning to KibanaApp team since they own the Discover app |
Pinging @elastic/kibana-app (Team:KibanaApp) |
@liza-mae this is strange, the test should navigate to home, since there should be no index patterns available. but there are, and when I checked screens of different failures, they were named:
maybe there's a weird overlapping here? |
This issue is still failing on 7.8, I see it was backported: #69132 ? |
dear @elastic/ingest-management, there seems to be weird problem, only happening in Jenkins cloud test. in a custom space that should be empty, there are |
@neptunian @skh Could you comment on the above? |
My first guess would be: these index patterns are generated whenever a package is installed. In 7.8, this happens, if ingest manager is enabled, at the point in time when the UI part of the plugin is first loaded, e.g. triggered by a user, or a browser test, logging in to the home page. Could this apply to one of your tests? |
So the test that's failing creates a space via spacesService, index patterns are disabled for this space kibana/x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts Lines 142 to 146 in 00a0a71
Then it navigates to Discover and it's expecting that there are no index patterns available.
So if ingest manager is enabled, those index patterns are created automatically for this space? |
That's my current theory at least. Can you disable ingest manager in your tests? |
How can I disable the ingest manager or check if it is enabled? shouldn't the creation of those index patterns be excluded for spaces with disabled |
I would have thought so, but maybe it isn't? Ingest Manager can be disabled by setting |
I tested this locally on 7.8:
How can we best proceed to fix your tests? I think the behavior is wrong, our |
Thx for testing and all the context. Could you test if the index pattern would be created if you disable the |
well, that won't solve the problem |
Ah, you're right, of course it can only be disabled in a space when it is enabled overall with When I disable it in the space, the call to |
@liza-mae Can't think of a clean solution for this in cloud currently, so I think the test should be disabled for cloud env, linked to an issue, and unskipped when ingestManager no longer inserts index pattern in custom spaces |
I will create an issue for ingest management. Does this need a fix for 7.8? |
thx! don't think it's necessary for 7.8 |
@skh no problem, thx! |
Version: 7.8.0
Class: Chrome X-Pack UI Functional Tests1.x-pack/test/functional/apps/discover/feature_controls/discover_spaces·ts
Stack Trace:
Error: expected testSubject(homeApp) to exist
at TestSubjects.existOrFail (/var/lib/jenkins/workspace/elastic+estf-cloud-kibana-tests/JOB/xpackGrp2/TASK/saas_run_kibana_tests/node/linux-immutable/ci/cloud/common/build/kibana/test/functional/services/common/test_subjects.ts:62:15)
Platform: cloud
Build Num: 324
The text was updated successfully, but these errors were encountered: