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

[Plugins Discovery] Enforce camelCase plugin IDs #90752

Merged
merged 5 commits into from
Feb 11, 2021

Conversation

afharo
Copy link
Member

@afharo afharo commented Feb 9, 2021

Summary

This PR enforces all the plugins' IDs to be camelCase (from warning to actual error) and changes all the test plugins that were not fulfilling this rule.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

Dev Docs

Plugins' IDs in the kibana.json manifest must be camelCased. It has always been a requirement in the Kibana Platform but, up until now, Kibana only logged the deprecation warning. Now it refuses to start.

@afharo afharo added Feature:Plugins Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc release_note:skip Skip the PR/issue when compiling release notes v7.12.0 labels Feb 9, 2021
@afharo afharo force-pushed the plugins-discovery/enforce-camelCase-ids branch 2 times, most recently from d538022 to f4d3afa Compare February 9, 2021 13:51
@afharo afharo force-pushed the plugins-discovery/enforce-camelCase-ids branch from f4d3afa to fcac06d Compare February 9, 2021 14:42
@kibanamachine
Copy link
Contributor

kibanamachine commented Feb 9, 2021

⏳ Build in-progress, with failures

Failed CI Steps

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@afharo
Copy link
Member Author

afharo commented Feb 9, 2021

@elasticmachine merge upstream

@afharo afharo marked this pull request as ready for review February 10, 2021 14:03
@afharo afharo requested review from a team as code owners February 10, 2021 14:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

Copy link
Member

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in OIDC/SAML/UI caps fixture plugins LGTM.

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alerting changes LGTM

Copy link
Contributor

@michaelolo24 michaelolo24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Solution changes, LGTM thanks!

Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. re-requested a review to make sure we are only validating camelCase for plugins in src and x-pack. We dont want to be throwing errors for custom plugins; We'd be breaking a lot of external plugins if we do that.

@Bamieh Bamieh self-requested a review February 10, 2021 18:11
Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We need to update the examples in the docs we give for migrating legacy plugins to the Kibana Platform. The example uses an id that's not camel case but it's not snake case either, however, if the example plugin id was changed to demoPlugin from demoplugin, it gives a great starting point for folks who tend to copy-paste.
Code LGTM.

if (!packageInfo.dist && !isCamelCase(manifest.id)) {
log.warn(`Expect plugin "id" in camelCase, but found: ${manifest.id}`);
if (!isCamelCase(manifest.id)) {
throw PluginDiscoveryError.invalidManifest(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR doesn't have an associated issue with it and it's a little difficult to determine why we're enforcing camel case now when we didn't originally. If we're wrapping up the platform migration work (we had to be more lenient while plugins were still migrating over), then changing from a log warning to an explicit error makes sense.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right! And I couldn't find an issue stating the reasoning behind this. The only thing I could find is the documentation about the Manifest file. It claims "Identifier of the plugin. Must be a string in camelCase. Part of a plugin public contract. Other plugins leverage it to access plugin API, navigate to the plugin, etc.".

I also found that the plugin-generator already creates the id as camelCased:

Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've requested a re-review to make sure we are only validating camelCase for plugins in src and x-pack. We dont want to be throwing errors for custom plugins; We'd be breaking a lot of external plugins if we do that.

@afharo
Copy link
Member Author

afharo commented Feb 11, 2021

Thank you all for your reviews! 🧡

@TinaHeiligers I'll update the docs straight-away!

@Bamieh I did raise that question internally about considering these breaking changes, the answer was "plugins have never been declared as a public API. they aren’t subject to semver".

Maybe we can flag them as breaking changes in the release notes but still ship it in a minor because the workaround requires very minimal changes? What do you think?

cc @restrry


UPDATE: The plugin-generator already creates the IDs as camelCased, and the documentation about the Manifest file claims it must be camelCased. Ideally, this shouldn't generate too much of an issue to third-party plugins if they used the tool and/or read the docs.

@pgayvallet
Copy link
Contributor

the answer was "plugins have never been declared as a public API. they aren’t subject to semver".

Yea, plugin API is not even considered experimental or beta yet (even if we really should consider doing that in 8.0 imho)

And I even think it's better to do that 'breaking' change sooner than later, as the longer we wait, the more 3rd plugins we will break with that change.

Maybe we can flag them as breaking changes in the release notes but still ship it in a minor because the workaround requires very minimal changes

I think flagging this as release_note:plugin_api_changes and adding the associated release note entry should be good enough.

@afharo afharo added release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. and removed release_note:skip Skip the PR/issue when compiling release notes labels Feb 11, 2021
Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for clarifying. had to ask :) LGTM

@afharo
Copy link
Member Author

afharo commented Feb 11, 2021

I've created #91124 to handle the doc changes on a separate issue. It looks to me like updating the docs does not only need us to change the name but also the paths and HTTP routes to be fully compliant with our STYLEGUIDE.

@afharo afharo merged commit 6bd0a7f into elastic:master Feb 11, 2021
@afharo afharo deleted the plugins-discovery/enforce-camelCase-ids branch February 11, 2021 14:36
afharo added a commit to afharo/kibana that referenced this pull request Feb 11, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
afharo added a commit that referenced this pull request Feb 11, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@gchaps
Copy link
Contributor

gchaps commented Mar 3, 2021

@afharo For the script to pick up this PR for the API changes doc, you need to use "Dev Docs" instead of "Release Notes" in the summary. I updated the summary.

@kibanamachine
Copy link
Contributor

kibanamachine commented Mar 4, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/cross_cluster_replication/feature_controls/ccr_security·ts.Cross Cluster Replication app feature controls security global all privileges (aka kibana_admin) should not render the "Data" section

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:58:09]         └-: Cross Cluster Replication app
[00:58:09]           └-> "before all" hook in "Cross Cluster Replication app"
[00:58:09]           └-: feature controls
[00:58:09]             └-> "before all" hook in "feature controls"
[00:58:09]             └-: security
[00:58:09]               └-> "before all" hook in "security"
[00:58:09]               └-> "before all" hook in "security"
[00:58:09]                 │ info [empty_kibana] Loading "mappings.json"
[00:58:09]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_1/eV9kWGZrRgyt0QwvG1FQsA] deleting index
[00:58:09]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_8.0.0_001/-02Y7kmDSV6vtFD_fn92rA] deleting index
[00:58:09]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_task_manager_8.0.0_001/xS3GlPkXT5aGh1nx1z6XSQ] deleting index
[00:58:09]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:58:09]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:58:09]                 │ info [empty_kibana] Deleted existing index ".kibana_1"
[00:58:09]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:58:09]                 │ info [empty_kibana] Created index ".kibana"
[00:58:09]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:58:09]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana/nRdaVgtTSNyel9zCA2Q07Q] update_mapping [_doc]
[00:58:09]                 │ debg Migrating saved objects
[00:58:09]                 │ proc [kibana]   log   [01:11:47.526] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET
[00:58:09]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:58:09]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.533] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:58:09]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding block write to indices [[.kibana/nRdaVgtTSNyel9zCA2Q07Q]]
[00:58:09]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] completed adding block write to indices [.kibana]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.593] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY
[00:58:09]                 │ proc [kibana]   log   [01:11:47.611] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:58:09]                 │ proc [kibana]   log   [01:11:47.622] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:58:09]                 │ proc [kibana]   log   [01:11:47.623] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 99ms
[00:58:09]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:58:09]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.669] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:58:09]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] 106732 finished with response BulkByScrollResponse[took=1.4ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.675] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:58:09]                 │ proc [kibana]   log   [01:11:47.681] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:58:09]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana/nRdaVgtTSNyel9zCA2Q07Q] deleting index
[00:58:09]                 │ proc [kibana]   log   [01:11:47.712] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:58:09]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding block write to indices [[.kibana_pre6.5.0_001/8GTSAsyCS6OlCBnQYvJ07g]]
[00:58:09]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.750] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:58:09]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:58:09]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.797] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:58:09]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] 106761 finished with response BulkByScrollResponse[took=1.2ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.805] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:58:09]                 │ proc [kibana]   log   [01:11:47.809] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:58:09]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding block write to indices [[.kibana_8.0.0_reindex_temp/B2qTlPWzRUKjViYuIGqpCQ]]
[00:58:09]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.848] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:58:09]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:58:09]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:58:09]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:58:09]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_8.0.0_001/GPWbHszvRp6oRYgjijKdDQ] create_mapping
[00:58:09]                 │ proc [kibana]   log   [01:11:47.933] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:58:09]                 │ proc [kibana]   log   [01:11:47.939] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:58:09]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_8.0.0_001/GPWbHszvRp6oRYgjijKdDQ] update_mapping [_doc]
[00:58:09]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] 106797 finished with response BulkByScrollResponse[took=1.4ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:58:09]                 │ proc [kibana]   log   [01:11:47.985] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:58:09]                 │ proc [kibana]   log   [01:11:47.990] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:58:09]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_8.0.0_reindex_temp/B2qTlPWzRUKjViYuIGqpCQ] deleting index
[00:58:09]                 │ proc [kibana]   log   [01:11:48.028] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:58:09]                 │ proc [kibana]   log   [01:11:48.029] [info][savedobjects-service] [.kibana] Migration completed after 507ms
[00:58:09]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:58:09]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:58:09]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:58:09]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.kibana_8.0.0_001/GPWbHszvRp6oRYgjijKdDQ] update_mapping [_doc]
[00:58:11]                 │ debg navigating to home url: http://localhost:61201/app/home#/
[00:58:11]                 │ debg navigate to: http://localhost:61201/app/home#/
[00:58:11]                 │ debg browser[INFO] http://localhost:61201/app/home?_t=1614820309889#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:58:11]                 │
[00:58:11]                 │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:58:11]                 │ debg ... sleep(700) start
[00:58:12]                 │ debg ... sleep(700) end
[00:58:12]                 │ debg returned from get, calling refresh
[00:58:13]                 │ERROR browser[SEVERE] http://localhost:61201/40321/bundles/core/core.entry.js 12:158464 TypeError: Failed to fetch
[00:58:13]                 │          at fetch_Fetch.fetchResponse (http://localhost:61201/40321/bundles/core/core.entry.js:6:32451)
[00:58:13]                 │          at async interceptResponse (http://localhost:61201/40321/bundles/core/core.entry.js:6:28637)
[00:58:13]                 │          at async http://localhost:61201/40321/bundles/core/core.entry.js:6:31117
[00:58:13]                 │ debg browser[INFO] http://localhost:61201/app/home?_t=1614820309889#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:58:13]                 │
[00:58:13]                 │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:58:13]                 │ debg currentUrl = http://localhost:61201/app/home#/
[00:58:13]                 │          appUrl = http://localhost:61201/app/home#/
[00:58:13]                 │ debg TestSubjects.find(kibanaChrome)
[00:58:13]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:58:13]                 │ debg ... sleep(501) start
[00:58:14]                 │ debg ... sleep(501) end
[00:58:14]                 │ debg in navigateTo url = http://localhost:61201/app/home#/
[00:58:14]                 │ debg TestSubjects.exists(statusPageContainer)
[00:58:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:58:16]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:58:17]               └-: global all privileges (aka kibana_admin)
[00:58:17]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:58:17]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:58:17]                   │ debg set roles = kibana_admin
[00:58:17]                   │ debg creating user test_user
[00:58:17]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updated user [test_user]
[00:58:17]                   │ debg created user test_user
[00:58:17]                   │ debg TestSubjects.exists(kibanaChrome)
[00:58:17]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:58:17]                   │ debg TestSubjects.find(kibanaChrome)
[00:58:17]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:58:17]                   │ debg browser[INFO] http://localhost:61201/app/home?_t=1614820309889#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:58:17]                   │
[00:58:17]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:58:18]                 └-> should show the Stack Management nav link
[00:58:18]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:58:18]                   │ debg isGlobalLoadingIndicatorVisible
[00:58:18]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:58:18]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:58:20]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:58:20]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:58:20]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:58:20]                   │ debg TestSubjects.exists(collapsibleNav)
[00:58:20]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:58:23]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:58:23]                   │ debg TestSubjects.click(toggleNavButton)
[00:58:23]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:58:23]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:58:23]                   │ debg TestSubjects.find(collapsibleNav)
[00:58:23]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:58:23]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:58:23]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:58:23]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:58:23]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:58:24]                   └- ✓ pass  (5.6s) "Cross Cluster Replication app feature controls security global all privileges (aka kibana_admin) should show the Stack Management nav link"
[00:58:24]                 └-> should not render the "Data" section
[00:58:24]                   └-> "before each" hook: global before each for "should not render the "Data" section"
[00:58:24]                   │ debg navigating to management url: http://localhost:61201/app/management
[00:58:24]                   │ debg navigate to: http://localhost:61201/app/management
[00:58:24]                   │ debg browser[INFO] http://localhost:61201/app/management?_t=1614820322182 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:58:24]                   │
[00:58:24]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:58:24]                   │ debg ... sleep(700) start
[00:58:24]                   │ debg ... sleep(700) end
[00:58:24]                   │ debg returned from get, calling refresh
[00:58:25]                   │ debg browser[INFO] http://localhost:61201/app/management?_t=1614820322182 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:58:25]                   │
[00:58:25]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:58:25]                   │ debg currentUrl = http://localhost:61201/app/management
[00:58:25]                   │          appUrl = http://localhost:61201/app/management
[00:58:25]                   │ debg TestSubjects.find(kibanaChrome)
[00:58:25]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:58:25]                   │ debg ... sleep(501) start
[00:58:26]                   │ debg ... sleep(501) end
[00:58:26]                   │ debg in navigateTo url = http://localhost:61201/app/management
[00:58:26]                   │ debg TestSubjects.exists(statusPageContainer)
[00:58:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:58:28]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:58:29]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:58:29]                   │ info Taking screenshot "/dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/screenshots/failure/Cross Cluster Replication app feature controls security global all privileges _aka kibana_admin_ should not render the _Data_ section.png"
[00:58:29]                   │ info Current URL is: http://localhost:61201/app/management
[00:58:29]                   │ info Saving page source to: /dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/failure_debug/html/Cross Cluster Replication app feature controls security global all privileges _aka kibana_admin_ should not render the _Data_ section.html
[00:58:29]                   └- ✖ fail: Cross Cluster Replication app feature controls security global all privileges (aka kibana_admin) should not render the "Data" section
[00:58:29]                   │       Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
[00:58:29]                   │       + expected - actual
[00:58:29]                   │ 
[00:58:29]                   │        [
[00:58:29]                   │       -  "ingest"
[00:58:29]                   │          "insightsAndAlerting"
[00:58:29]                   │          "kibana"
[00:58:29]                   │        ]
[00:58:29]                   │       
[00:58:29]                   │       at Assertion.assert (/dev/shm/workspace/parallel/20/kibana/packages/kbn-expect/expect.js:100:11)
[00:58:29]                   │       at Assertion.eql (/dev/shm/workspace/parallel/20/kibana/packages/kbn-expect/expect.js:244:8)
[00:58:29]                   │       at Context.<anonymous> (test/functional/apps/cross_cluster_replication/feature_controls/ccr_security.ts:44:29)
[00:58:29]                   │       at runMicrotasks (<anonymous>)
[00:58:29]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:58:29]                   │       at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:58:29]                   │ 
[00:58:29]                   │ 

Stack Trace

Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
    at Assertion.assert (/dev/shm/workspace/parallel/20/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/20/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/cross_cluster_replication/feature_controls/ccr_security.ts:44:29)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '[\n  "ingest"\n  "insightsAndAlerting"\n  "kibana"\n]',
  expected: '[\n  "insightsAndAlerting"\n  "kibana"\n]',
  showDiff: true
}

Kibana Pipeline / general / X-Pack Accessibility Tests.x-pack/test/accessibility/apps/search_profiler·ts.Accessibility Search Profiler Editor click on the view details link

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:52]         └-: Accessibility Search Profiler Editor
[00:00:52]           └-> "before all" hook for "input the JSON in the aceeditor"
[00:00:52]           └-> "before all" hook for "input the JSON in the aceeditor"
[00:00:52]             │ debg navigating to searchProfiler url: http://localhost:61121/app/dev_tools#/searchprofiler
[00:00:52]             │ debg navigate to: http://localhost:61121/app/dev_tools#/searchprofiler
[00:00:52]             │ERROR browser[SEVERE] http://localhost:61121/40321/bundles/plugin/securitySolution/securitySolution.chunk.9.js 2:382389 TypeError: Failed to fetch
[00:00:52]             │          at fetch_Fetch.fetchResponse (http://localhost:61121/40321/bundles/core/core.entry.js:6:32451)
[00:00:52]             │          at async interceptResponse (http://localhost:61121/40321/bundles/core/core.entry.js:6:28637)
[00:00:52]             │          at async http://localhost:61121/40321/bundles/core/core.entry.js:6:31117
[00:00:52]             │ debg browser[INFO] http://localhost:61121/app/dev_tools?_t=1614816754510#/searchprofiler 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:52]             │
[00:00:52]             │ debg browser[INFO] http://localhost:61121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:52]             │ debg ... sleep(700) start
[00:00:53]             │ debg ... sleep(700) end
[00:00:53]             │ debg returned from get, calling refresh
[00:00:53]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [metrics-metadata-current] for index patterns [metrics-endpoint.metadata_current_*]
[00:00:53]             │ debg browser[INFO] http://localhost:61121/app/dev_tools?_t=1614816754510#/searchprofiler 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:53]             │
[00:00:53]             │ debg browser[INFO] http://localhost:61121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:53]             │ debg currentUrl = http://localhost:61121/app/dev_tools#/searchprofiler
[00:00:53]             │          appUrl = http://localhost:61121/app/dev_tools#/searchprofiler
[00:00:53]             │ debg TestSubjects.find(kibanaChrome)
[00:00:53]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:54]             │ debg ... sleep(501) start
[00:00:54]             │ debg ... sleep(501) end
[00:00:54]             │ debg in navigateTo url = http://localhost:61121/app/dev_tools#/searchprofiler
[00:00:54]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:54]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [logs-endpoint.alerts-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [logs-endpoint.events.library-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [logs-endpoint.events.security-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [.logs-endpoint.diagnostic.collection-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [metrics-endpoint.metadata-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [metrics-endpoint.policy-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [logs-endpoint.events.file-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [metrics-endpoint.metrics-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [logs-endpoint.events.registry-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [logs-endpoint.events.process-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding component template [logs-endpoint.events.network-mappings]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [logs-endpoint.alerts] for index patterns [logs-endpoint.alerts-*]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [logs-endpoint.events.library] for index patterns [logs-endpoint.events.library-*]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [logs-endpoint.events.security] for index patterns [logs-endpoint.events.security-*]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [.logs-endpoint.diagnostic.collection] for index patterns [.logs-endpoint.diagnostic.collection-*]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [metrics-endpoint.metadata] for index patterns [metrics-endpoint.metadata-*]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [metrics-endpoint.policy] for index patterns [metrics-endpoint.policy-*]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [logs-endpoint.events.file] for index patterns [logs-endpoint.events.file-*]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [metrics-endpoint.metrics] for index patterns [metrics-endpoint.metrics-*]
[00:00:55]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [logs-endpoint.events.registry] for index patterns [logs-endpoint.events.registry-*]
[00:00:56]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [logs-endpoint.events.process] for index patterns [logs-endpoint.events.process-*]
[00:00:56]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] adding index template [logs-endpoint.events.network] for index patterns [logs-endpoint.events.network-*]
[00:00:56]             │ proc [kibana]   log   [00:12:38.467] [info][fleet][plugins] Found previous transform references:
[00:00:56]             │ proc [kibana]  []
[00:00:56]             │ proc [kibana]   log   [00:12:38.468] [info][fleet][plugins] Deleting currently installed transform ids 
[00:00:56]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.transform-internal-006] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:56]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.transform-internal-006]
[00:00:56]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.transform-internal-006][0]]])." previous.health="YELLOW" reason="shards started [[.transform-internal-006][0]]"
[00:00:56]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.transform-notifications-000002] creating index, cause [auto(bulk api)], templates [.transform-notifications-000002], shards [1]/[1]
[00:00:56]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.transform-notifications-000002]
[00:00:56]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [metrics-endpoint.metadata_current_default] creating index, cause [api], templates [metrics-metadata-current], shards [1]/[1]
[00:00:56]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [metrics-endpoint.metadata_current_default]
[00:00:56]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.transform-notifications-000002][0], [metrics-endpoint.metadata_current_default][0]]])." previous.health="YELLOW" reason="shards started [[.transform-notifications-000002][0], [metrics-endpoint.metadata_current_default][0]]"
[00:00:56]             │ info [o.e.x.t.t.TransformTask] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [endpoint.metadata_current-default-0.18.0] updating state for transform to [{"task_state":"started","indexer_state":"stopped","checkpoint":0,"should_stop_at_checkpoint":false}].
[00:00:56]             │ info [o.e.x.t.t.TransformPersistentTasksExecutor] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [endpoint.metadata_current-default-0.18.0] successfully completed and scheduled task in node operation
[00:00:57]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:58]             │ debg TestSubjects.exists(searchProfilerEditor)
[00:00:58]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="searchProfilerEditor"]') with timeout=2500
[00:00:58]           └-> input the JSON in the aceeditor
[00:00:58]             └-> "before each" hook: global before each for "input the JSON in the aceeditor"
[00:00:58]             │ debg TestSubjects.find(searchProfilerEditor)
[00:00:58]             │ debg Find.findByCssSelector('[data-test-subj="searchProfilerEditor"]') with timeout=10000
[00:00:59]             └- ✓ pass  (802ms) "Accessibility Search Profiler Editor input the JSON in the aceeditor"
[00:00:59]           └-> click on the profile button
[00:00:59]             └-> "before each" hook: global before each for "click on the profile button"
[00:00:59]             │ debg TestSubjects.click(profileButton)
[00:00:59]             │ debg Find.clickByCssSelector('[data-test-subj="profileButton"]') with timeout=10000
[00:00:59]             │ debg Find.findByCssSelector('[data-test-subj="profileButton"]') with timeout=10000
[00:00:59]             └- ✓ pass  (505ms) "Accessibility Search Profiler Editor click on the profile button"
[00:00:59]           └-> click on the dropdown link
[00:00:59]             └-> "before each" hook: global before each for "click on the dropdown link"
[00:00:59]             │ debg TestSubjects.findAll(viewShardDetails)
[00:00:59]             │ debg Find.allByCssSelector('[data-test-subj="viewShardDetails"]') with timeout=10000
[00:01:00]             └- ✓ pass  (1.1s) "Accessibility Search Profiler Editor click on the dropdown link"
[00:01:00]           └-> click on the open-close shard details link
[00:01:00]             └-> "before each" hook: global before each for "click on the open-close shard details link"
[00:01:00]             │ debg TestSubjects.findAll(openCloseShardDetails)
[00:01:00]             │ debg Find.allByCssSelector('[data-test-subj="openCloseShardDetails"]') with timeout=10000
[00:01:01]             └- ✓ pass  (819ms) "Accessibility Search Profiler Editor click on the open-close shard details link"
[00:01:01]           └-> close the fly out
[00:01:01]             └-> "before each" hook: global before each for "close the fly out"
[00:01:01]             │ debg Find.allByCssSelector('.euiFlyout') with timeout=10000
[00:01:01]             │ debg Waiting up to 20000ms for all flyouts to be closed...
[00:01:01]             │ debg Find.allByCssSelector('.euiFlyout') with timeout=10000
[00:01:11]             └- ✓ pass  (10.5s) "Accessibility Search Profiler Editor close the fly out"
[00:01:11]           └-> click on the Aggregation Profile link
[00:01:11]             └-> "before each" hook: global before each for "click on the Aggregation Profile link"
[00:01:11]             │ debg TestSubjects.click(aggregationProfileTab)
[00:01:11]             │ debg Find.clickByCssSelector('[data-test-subj="aggregationProfileTab"]') with timeout=10000
[00:01:11]             │ debg Find.findByCssSelector('[data-test-subj="aggregationProfileTab"]') with timeout=10000
[00:01:12]             └- ✓ pass  (576ms) "Accessibility Search Profiler Editor click on the Aggregation Profile link"
[00:01:12]           └-> click on the view details link
[00:01:12]             └-> "before each" hook: global before each for "click on the view details link"
[00:01:12]             │ debg TestSubjects.findAll(viewShardDetails)
[00:01:12]             │ debg Find.allByCssSelector('[data-test-subj="viewShardDetails"]') with timeout=10000
[00:01:13]             │ info Taking screenshot "/dev/shm/workspace/parallel/12/kibana/x-pack/test/functional/screenshots/failure/Accessibility Search Profiler Editor click on the view details link.png"
[00:01:13]             │ info Current URL is: http://localhost:61121/app/dev_tools#/searchprofiler
[00:01:13]             │ info Saving page source to: /dev/shm/workspace/parallel/12/kibana/x-pack/test/functional/failure_debug/html/Accessibility Search Profiler Editor click on the view details link.html
[00:01:13]             └- ✖ fail: Accessibility Search Profiler Editor click on the view details link
[00:01:13]             │      Error: a11y report:
[00:01:13]             │ 
[00:01:13]             │ VIOLATION
[00:01:13]             │   [aria-hidden-focus]: Ensures aria-hidden elements do not contain focusable elements
[00:01:13]             │     Help: https://dequeuniversity.com/rules/axe/4.0/aria-hidden-focus?application=axeAPI
[00:01:13]             │     Elements:
[00:01:13]             │       - header
[00:01:13]             │       - .euiTabs[role="tablist"][data-aria-hidden="true"]
[00:01:13]             │       - .prfDevTool__page__bodyGroup
[00:01:13]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(2)
[00:01:13]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(3)
[00:01:13]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(5)
[00:01:13]             │       at Accessibility.testAxeReport (/dev/shm/workspace/parallel/12/kibana/test/accessibility/services/a11y/a11y.ts:76:15)
[00:01:13]             │       at Accessibility.testAppSnapshot (/dev/shm/workspace/parallel/12/kibana/test/accessibility/services/a11y/a11y.ts:49:18)
[00:01:13]             │       at runMicrotasks (<anonymous>)
[00:01:13]             │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:01:13]             │       at Context.<anonymous> (test/accessibility/apps/search_profiler.ts:86:7)
[00:01:13]             │       at Object.apply (/dev/shm/workspace/parallel/12/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:01:13]             │ 
[00:01:13]             │ 

Stack Trace

Error: a11y report:

VIOLATION
  [aria-hidden-focus]: Ensures aria-hidden elements do not contain focusable elements
    Help: https://dequeuniversity.com/rules/axe/4.0/aria-hidden-focus?application=axeAPI
    Elements:
      - header
      - .euiTabs[role="tablist"][data-aria-hidden="true"]
      - .prfDevTool__page__bodyGroup
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(2)
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(3)
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(5)
    at Accessibility.testAxeReport (/dev/shm/workspace/parallel/12/kibana/test/accessibility/services/a11y/a11y.ts:76:15)
    at Accessibility.testAppSnapshot (/dev/shm/workspace/parallel/12/kibana/test/accessibility/services/a11y/a11y.ts:49:18)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Context.<anonymous> (test/accessibility/apps/search_profiler.ts:86:7)
    at Object.apply (/dev/shm/workspace/parallel/12/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/ml/modules/setup_module·ts.apis Machine Learning modules module setup sets up module data for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:07:13]           └-: Machine Learning
[00:07:13]             └-> "before all" hook in "Machine Learning"
[00:07:13]             └-> "before all" hook in "Machine Learning"
[00:07:13]               │ debg creating role ft_ml_source
[00:07:13]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_ml_source]
[00:07:13]               │ debg creating role ft_ml_source_readonly
[00:07:13]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_ml_source_readonly]
[00:07:13]               │ debg creating role ft_ml_dest
[00:07:13]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_ml_dest]
[00:07:13]               │ debg creating role ft_ml_dest_readonly
[00:07:13]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_ml_dest_readonly]
[00:07:13]               │ debg creating role ft_ml_ui_extras
[00:07:13]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_ml_ui_extras]
[00:07:13]               │ debg creating role ft_default_space_ml_all
[00:07:13]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_default_space_ml_all]
[00:07:13]               │ debg creating role ft_default_space1_ml_all
[00:07:13]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_default_space1_ml_all]
[00:07:13]               │ debg creating role ft_all_spaces_ml_all
[00:07:14]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_all_spaces_ml_all]
[00:07:14]               │ debg creating role ft_default_space_ml_read
[00:07:14]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_default_space_ml_read]
[00:07:14]               │ debg creating role ft_default_space1_ml_read
[00:07:14]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_default_space1_ml_read]
[00:07:14]               │ debg creating role ft_all_spaces_ml_read
[00:07:14]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_all_spaces_ml_read]
[00:07:14]               │ debg creating role ft_default_space_ml_none
[00:07:14]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added role [ft_default_space_ml_none]
[00:07:14]               │ debg creating user ft_ml_poweruser
[00:07:14]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_poweruser]
[00:07:14]               │ debg created user ft_ml_poweruser
[00:07:14]               │ debg creating user ft_ml_poweruser_spaces
[00:07:14]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_poweruser_spaces]
[00:07:14]               │ debg created user ft_ml_poweruser_spaces
[00:07:14]               │ debg creating user ft_ml_poweruser_space1
[00:07:14]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_poweruser_space1]
[00:07:14]               │ debg created user ft_ml_poweruser_space1
[00:07:14]               │ debg creating user ft_ml_poweruser_all_spaces
[00:07:14]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_poweruser_all_spaces]
[00:07:14]               │ debg created user ft_ml_poweruser_all_spaces
[00:07:14]               │ debg creating user ft_ml_viewer
[00:07:14]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_viewer]
[00:07:14]               │ debg created user ft_ml_viewer
[00:07:14]               │ debg creating user ft_ml_viewer_spaces
[00:07:14]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_viewer_spaces]
[00:07:14]               │ debg created user ft_ml_viewer_spaces
[00:07:14]               │ debg creating user ft_ml_viewer_space1
[00:07:14]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_viewer_space1]
[00:07:14]               │ debg created user ft_ml_viewer_space1
[00:07:14]               │ debg creating user ft_ml_viewer_all_spaces
[00:07:14]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_viewer_all_spaces]
[00:07:14]               │ debg created user ft_ml_viewer_all_spaces
[00:07:14]               │ debg creating user ft_ml_unauthorized
[00:07:15]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_unauthorized]
[00:07:15]               │ debg created user ft_ml_unauthorized
[00:07:15]               │ debg creating user ft_ml_unauthorized_spaces
[00:07:15]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] added user [ft_ml_unauthorized_spaces]
[00:07:15]               │ debg created user ft_ml_unauthorized_spaces
[00:07:15]             └-: modules
[00:07:15]               └-> "before all" hook in "modules"
[00:07:29]               └-: module setup
[00:07:29]                 └-> "before all" hook in "module setup"
[00:07:29]                 └-> "before all" hook in "module setup"
[00:07:29]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:08:14]                 └-: sets up module data
[00:08:14]                   └-> "before all" hook for "for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true"
[00:08:14]                   └-> "before all" hook for "for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true"
[00:08:14]                     │ info [ml/module_logs] Loading "mappings.json"
[00:08:14]                     │ info [ml/module_logs] Loading "data.json.gz"
[00:08:14]                     │ info [ml/module_logs] Skipped restore for existing index "ft_module_logs"
[00:08:14]                     │ debg Searching for 'index-pattern' with title 'ft_module_logs'...
[00:08:14]                     │ debg  > Found 'b39d54b0-7c81-11eb-b197-f960da4c1539'
[00:08:14]                     │ debg Index pattern with title 'ft_module_logs' already exists. Nothing to create.
[00:08:14]                   └-> for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true
[00:08:14]                     └-> "before each" hook: global before each for "for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true"
[00:08:14]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:08:14]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:08:14]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:08:14]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:08:14]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.ml-anomalies-shared/u-kUNpyZT4yRiOJiL2H3JQ] update_mapping [_doc]
[00:08:14]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:08:14]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.ml-config]
[00:08:14]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:08:14]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:08:16]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] Opening job [pf7_log-entry-categories-count]
[00:08:16]                     │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:08:16]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:08:16]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:08:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:08:16]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:08:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [ml-size-based-ilm-policy]
[00:08:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ml-size-based-ilm-policy]
[00:08:16]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] [autodetect/242514] [CResourceMonitor.cc@77] Setting model memory limit to 41 MB
[00:08:16]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] Successfully set job state to [opened] for job [pf7_log-entry-categories-count]
[00:08:16]                     │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2021-03-04T00:28:40.945Z) with frequency [450000ms]
[00:08:16]                     │ debg Waiting up to 5000ms for 'pf7_log-entry-categories-count' to exist...
[00:08:16]                     │ debg Waiting up to 5000ms for 'datafeed-pf7_log-entry-categories-count' to exist...
[00:08:16]                     │ debg Waiting up to 10000ms for 'pf7_log-entry-categories-count' to have processed_record_count > 0...
[00:08:16]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:16]                     │ debg > AD job stats fetched.
[00:08:16]                     │ debg --- retry.waitForWithTimeout error: expected anomaly detection job 'pf7_log-entry-categories-count' to have processed_record_count > 0 (got 0)
[00:08:16]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.ml-anomalies-shared/u-kUNpyZT4yRiOJiL2H3JQ] update_mapping [_doc]
[00:08:17]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:17]                     │ debg > AD job stats fetched.
[00:08:17]                     │ debg Waiting up to 120000ms for job state to be closed...
[00:08:17]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:17]                     │ debg > AD job stats fetched.
[00:08:17]                     │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got opened
[00:08:17]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:17]                     │ debg > AD job stats fetched.
[00:08:17]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:18]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:18]                     │ debg > AD job stats fetched.
[00:08:18]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:18]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:18]                     │ debg > AD job stats fetched.
[00:08:18]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:19]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:19]                     │ debg > AD job stats fetched.
[00:08:19]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:19]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:19]                     │ debg > AD job stats fetched.
[00:08:19]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:20]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:20]                     │ debg > AD job stats fetched.
[00:08:20]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:20]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:20]                     │ debg > AD job stats fetched.
[00:08:20]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:21]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:21]                     │ debg > AD job stats fetched.
[00:08:21]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:21]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:21]                     │ debg > AD job stats fetched.
[00:08:21]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:22]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:22]                     │ debg > AD job stats fetched.
[00:08:22]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:22]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:22]                     │ debg > AD job stats fetched.
[00:08:22]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:23]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:23]                     │ debg > AD job stats fetched.
[00:08:23]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:23]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:23]                     │ debg > AD job stats fetched.
[00:08:23]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:24]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:24]                     │ debg > AD job stats fetched.
[00:08:24]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:24]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:24]                     │ debg > AD job stats fetched.
[00:08:24]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:25]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:25]                     │ debg > AD job stats fetched.
[00:08:25]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:25]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:25]                     │ debg > AD job stats fetched.
[00:08:25]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:26]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:26]                     │ debg > AD job stats fetched.
[00:08:26]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:26]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:26]                     │ debg > AD job stats fetched.
[00:08:26]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:27]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:27]                     │ debg > AD job stats fetched.
[00:08:27]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:27]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:27]                     │ debg > AD job stats fetched.
[00:08:27]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:28]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:28]                     │ debg > AD job stats fetched.
[00:08:28]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:28]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:28]                     │ debg > AD job stats fetched.
[00:08:28]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:29]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:29]                     │ debg > AD job stats fetched.
[00:08:29]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:29]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:29]                     │ debg > AD job stats fetched.
[00:08:29]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:30]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:30]                     │ debg > AD job stats fetched.
[00:08:30]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:30]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:30]                     │ debg > AD job stats fetched.
[00:08:30]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:31]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:31]                     │ debg > AD job stats fetched.
[00:08:31]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:31]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:31]                     │ debg > AD job stats fetched.
[00:08:31]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:32]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:32]                     │ debg > AD job stats fetched.
[00:08:32]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:32]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:32]                     │ debg > AD job stats fetched.
[00:08:32]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:33]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:33]                     │ debg > AD job stats fetched.
[00:08:33]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:33]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:33]                     │ debg > AD job stats fetched.
[00:08:33]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:34]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:34]                     │ debg > AD job stats fetched.
[00:08:34]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:34]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:34]                     │ debg > AD job stats fetched.
[00:08:34]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:35]                     │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] Lookback has finished
[00:08:35]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [no_realtime] attempt to stop datafeed [datafeed-pf7_log-entry-categories-count] for job [pf7_log-entry-categories-count]
[00:08:35]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [no_realtime] try lock [20s] to stop datafeed [datafeed-pf7_log-entry-categories-count] for job [pf7_log-entry-categories-count]...
[00:08:35]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [no_realtime] stopping datafeed [datafeed-pf7_log-entry-categories-count] for job [pf7_log-entry-categories-count], acquired [true]...
[00:08:35]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [no_realtime] datafeed [datafeed-pf7_log-entry-categories-count] for job [pf7_log-entry-categories-count] has been stopped
[00:08:35]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] Closing job [pf7_log-entry-categories-count], because [close job (api)]
[00:08:35]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] [autodetect/242514] [CCmdSkeleton.cc@61] Handled 584 records
[00:08:35]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] [autodetect/242514] [CAnomalyJob.cc@1576] Pruning all models
[00:08:35]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [.ml-anomalies-shared/u-kUNpyZT4yRiOJiL2H3JQ] update_mapping [_doc]
[00:08:35]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:35]                     │ debg > AD job stats fetched.
[00:08:35]                     │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:08:35]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:35]                     │ debg > AD job stats fetched.
[00:08:35]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:36]                     │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] State output finished
[00:08:36]                     │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] 2342 buckets parsed from autodetect output
[00:08:36]                     │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-debian-tests-xxl-1614814708561195608] [pf7_log-entry-categories-count] job closed
[00:08:36]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:36]                     │ debg > AD job stats fetched.
[00:08:36]                     │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:08:36]                     │ debg Fetching datafeed state for datafeed datafeed-pf7_log-entry-categories-count
[00:08:36]                     └- ✖ fail: apis Machine Learning modules module setup sets up module data for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true
[00:08:36]                     │       Error: Expected job model memory limits '[{"id":"pf7_log-entry-categories-count","modelMemoryLimit":"26mb"}]' (got '[{"id":"pf7_log-entry-categories-count","modelMemoryLimit":"41mb"}]')
[00:08:36]                     │       + expected - actual
[00:08:36]                     │ 
[00:08:36]                     │        [
[00:08:36]                     │          {
[00:08:36]                     │            "id": "pf7_log-entry-categories-count"
[00:08:36]                     │       -    "modelMemoryLimit": "41mb"
[00:08:36]                     │       +    "modelMemoryLimit": "26mb"
[00:08:36]                     │          }
[00:08:36]                     │        ]
[00:08:36]                     │       
[00:08:36]                     │       at Assertion.assert (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:100:11)
[00:08:36]                     │       at Assertion.eql (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:244:8)
[00:08:36]                     │       at Context.<anonymous> (test/api_integration/apis/ml/modules/setup_module.ts:870:46)
[00:08:36]                     │       at Object.apply (/dev/shm/workspace/parallel/13/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:08:36]                     │ 
[00:08:36]                     │ 

Stack Trace

Error: Expected job model memory limits '[{"id":"pf7_log-entry-categories-count","modelMemoryLimit":"26mb"}]' (got '[{"id":"pf7_log-entry-categories-count","modelMemoryLimit":"41mb"}]')
    at Assertion.assert (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/api_integration/apis/ml/modules/setup_module.ts:870:46)
    at Object.apply (/dev/shm/workspace/parallel/13/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '[\n' +
    '  {\n' +
    '    "id": "pf7_log-entry-categories-count"\n' +
    '    "modelMemoryLimit": "41mb"\n' +
    '  }\n' +
    ']',
  expected: '[\n' +
    '  {\n' +
    '    "id": "pf7_log-entry-categories-count"\n' +
    '    "modelMemoryLimit": "26mb"\n' +
    '  }\n' +
    ']',
  showDiff: true
}

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@afharo
Copy link
Member Author

afharo commented Mar 4, 2021

@gchaps noted! I'll use it right next time. Sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Plugins release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants