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

[ML] Data Frame Analytics: Support early stopping data frame analytics job parameter #90695

Merged

Conversation

alvarezmelissa87
Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 commented Feb 8, 2021

Summary

Fixes #90195

An early_stopping_enabled optional data frame analysis configuration parameter was added in elastic/elasticsearch#68099. This PR adds support in the data frame analytics UI for this parameter:

  • property is now copied when cloning jobs
  • property is editable in the advanced JSON editor
  • cloning functional tests have been re-enabled

Checklist

Delete any items that are not applicable to this PR.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@alvarezmelissa87 alvarezmelissa87 requested review from qn895 and removed request for walterra February 9, 2021 17:04
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested and LGTM

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/transform/feature_controls/transform_security·ts.transform feature controls security global all privileges (aka kibana_admin) should not render the "Stack" section

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 5 times on tracked branches: https://github.com/elastic/kibana/issues/90576

[00:00:00]       │
[00:19:36]         └-: transform
[00:19:36]           └-> "before all" hook in "transform"
[00:19:36]           └-> "before all" hook in "transform"
[00:19:36]             │ debg creating role transform_source
[00:19:36]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] added role [transform_source]
[00:19:36]             │ debg creating role transform_dest
[00:19:36]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] added role [transform_dest]
[00:19:36]             │ debg creating role transform_dest_readonly
[00:19:36]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] added role [transform_dest_readonly]
[00:19:36]             │ debg creating role transform_ui_extras
[00:19:36]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] added role [transform_ui_extras]
[00:19:36]             │ debg creating user transform_poweruser
[00:19:36]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] added user [transform_poweruser]
[00:19:36]             │ debg created user transform_poweruser
[00:19:36]             │ debg creating user transform_viewer
[00:19:36]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] added user [transform_viewer]
[00:19:36]             │ debg created user transform_viewer
[00:24:43]           └-: feature controls
[00:24:43]             └-> "before all" hook in "feature controls"
[00:24:43]             └-: security
[00:24:43]               └-> "before all" hook in "security"
[00:24:43]               └-> "before all" hook in "security"
[00:24:43]                 │ info [empty_kibana] Loading "mappings.json"
[00:24:43]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_8.0.0_001/Y59SjUFtQKOTHut91oltUg] deleting index
[00:24:43]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_task_manager_8.0.0_001/a_YJGkYCTKacM2sLA9z0gQ] deleting index
[00:24:43]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_pre6.5.0_001/ZMWmEl52QU2G8kLCdBZ9Uw] deleting index
[00:24:43]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:24:43]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:24:43]                 │ info [empty_kibana] Deleted existing index ".kibana_pre6.5.0_001"
[00:24:43]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:24:43]                 │ info [empty_kibana] Created index ".kibana"
[00:24:43]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:24:43]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana/R3YQpsIpRJeaqEVZ6g-vOw] update_mapping [_doc]
[00:24:43]                 │ debg Migrating saved objects
[00:24:43]                 │ proc [kibana]   log   [18:07:46.880] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET
[00:24:43]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:24:43]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:24:43]                 │ proc [kibana]   log   [18:07:46.894] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:24:43]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] adding block write to indices [[.kibana/R3YQpsIpRJeaqEVZ6g-vOw]]
[00:24:43]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] completed adding block write to indices [.kibana]
[00:24:43]                 │ proc [kibana]   log   [18:07:46.947] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY
[00:24:43]                 │ proc [kibana]   log   [18:07:46.967] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:24:43]                 │ proc [kibana]   log   [18:07:46.973] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:24:43]                 │ proc [kibana]   log   [18:07:46.974] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 100ms
[00:24:43]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:24:43]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:24:43]                 │ proc [kibana]   log   [18:07:47.023] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:24:43]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] 31892 finished with response BulkByScrollResponse[took=2.3ms,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:24:43]                 │ proc [kibana]   log   [18:07:47.031] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:24:43]                 │ proc [kibana]   log   [18:07:47.038] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:24:43]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana/R3YQpsIpRJeaqEVZ6g-vOw] deleting index
[00:24:43]                 │ proc [kibana]   log   [18:07:47.073] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:24:43]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] adding block write to indices [[.kibana_pre6.5.0_001/ocYpHjLWRWquHVu66xDLKQ]]
[00:24:43]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:24:43]                 │ proc [kibana]   log   [18:07:47.111] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:24:43]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:24:43]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:24:43]                 │ proc [kibana]   log   [18:07:47.169] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:24:43]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] 31921 finished with response BulkByScrollResponse[took=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:24:43]                 │ proc [kibana]   log   [18:07:47.178] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:24:43]                 │ proc [kibana]   log   [18:07:47.185] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:24:43]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] adding block write to indices [[.kibana_8.0.0_reindex_temp/UIZUv0KBQleVAlIomZsHwA]]
[00:24:43]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:24:43]                 │ proc [kibana]   log   [18:07:47.222] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:24:43]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:24:43]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:24:43]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:24:43]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_8.0.0_001/45Wy2eKJS_aOC-UgnVQ7Yg] create_mapping
[00:24:43]                 │ proc [kibana]   log   [18:07:47.318] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:24:43]                 │ proc [kibana]   log   [18:07:47.327] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:24:43]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_8.0.0_001/45Wy2eKJS_aOC-UgnVQ7Yg] update_mapping [_doc]
[00:24:43]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] 31957 finished with response BulkByScrollResponse[took=1.3ms,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:24:43]                 │ proc [kibana]   log   [18:07:47.390] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:24:43]                 │ proc [kibana]   log   [18:07:47.397] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:24:43]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_8.0.0_reindex_temp/UIZUv0KBQleVAlIomZsHwA] deleting index
[00:24:43]                 │ proc [kibana]   log   [18:07:47.437] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:24:43]                 │ proc [kibana]   log   [18:07:47.438] [info][savedobjects-service] [.kibana] Migration completed after 566ms
[00:24:43]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:24:43]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:24:43]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:24:43]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] [.kibana_8.0.0_001/45Wy2eKJS_aOC-UgnVQ7Yg] update_mapping [_doc]
[00:24:45]                 │ debg SecurityPage.forceLogout
[00:24:45]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:24:45]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:46]                 │ debg Redirecting to /logout to force the logout
[00:24:46]                 │ debg Waiting on the login form to appear
[00:24:46]                 │ debg Waiting for Login Page to appear.
[00:24:46]                 │ debg Waiting up to 100000ms for login page...
[00:24:46]                 │ debg browser[INFO] http://localhost:61141/logout?_t=1612894069901 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:24:46]                 │
[00:24:46]                 │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:46]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:49]                 │ERROR browser[SEVERE] http://localhost:61141/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:49]                 │ debg browser[INFO] http://localhost:61141/login?msg=LOGGED_OUT 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:24:49]                 │
[00:24:49]                 │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:49]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:49]                 │ERROR browser[SEVERE] http://localhost:61141/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:49]                 │ERROR browser[SEVERE] http://localhost:61141/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:49]                 │ debg browser[INFO] http://localhost:61141/40248/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:24:49]                 │      Error: Unauthorized"
[00:24:49]                 │ERROR browser[SEVERE] http://localhost:61141/40248/bundles/core/core.entry.js 5:3002 
[00:24:49]                 │ERROR browser[SEVERE] http://localhost:61141/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:50]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:50]                 │ debg navigating to home url: http://localhost:61141/app/home#/
[00:24:50]                 │ debg navigate to: http://localhost:61141/app/home#/
[00:24:50]                 │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fhome%3F_t%3D1612894073665#/ 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:24:50]                 │
[00:24:50]                 │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:50]                 │ debg ... sleep(700) start
[00:24:50]                 │ERROR browser[SEVERE] http://localhost:61141/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:50]                 │ debg browser[INFO] http://localhost:61141/40248/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:24:50]                 │      Error: Unauthorized"
[00:24:50]                 │ERROR browser[SEVERE] http://localhost:61141/40248/bundles/core/core.entry.js 5:3002 
[00:24:50]                 │ERROR browser[SEVERE] http://localhost:61141/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:50]                 │ERROR browser[SEVERE] http://localhost:61141/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:51]                 │ debg ... sleep(700) end
[00:24:51]                 │ debg returned from get, calling refresh
[00:24:51]                 │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fhome%3F_t%3D1612894073665#/ 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:24:51]                 │
[00:24:51]                 │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:51]                 │ debg currentUrl = http://localhost:61141/login?next=%2Fapp%2Fhome%3F_t%3D1612894073665#/
[00:24:51]                 │          appUrl = http://localhost:61141/app/home#/
[00:24:51]                 │ debg TestSubjects.find(kibanaChrome)
[00:24:51]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:51]                 │ debg Found login page
[00:24:51]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:24:51]                 │ debg TestSubjects.click(loginUsername)
[00:24:51]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:51]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:51]                 │ERROR browser[SEVERE] http://localhost:61141/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:51]                 │ debg browser[INFO] http://localhost:61141/40248/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:24:51]                 │      Error: Unauthorized"
[00:24:51]                 │ERROR browser[SEVERE] http://localhost:61141/40248/bundles/core/core.entry.js 5:3002 
[00:24:51]                 │ERROR browser[SEVERE] http://localhost:61141/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:52]                 │ERROR browser[SEVERE] http://localhost:61141/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:52]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:24:52]                 │ debg TestSubjects.click(loginPassword)
[00:24:52]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:52]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:52]                 │ debg TestSubjects.click(loginSubmit)
[00:24:52]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:52]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:52]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:24:52]                 │ proc [kibana]   log   [18:07:55.836] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:24:53]                 │ debg browser[INFO] http://localhost:61141/app/home?_t=1612894073665#/ 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:24:53]                 │
[00:24:53]                 │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:53]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:53]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:24:54]                 │ debg browser[INFO] http://localhost:61141/app/home?_t=1612894077364#/ 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:24:54]                 │
[00:24:54]                 │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:54]                 │ debg Finished login process currentUrl = http://localhost:61141/app/home#/
[00:24:54]                 │ debg ... sleep(501) start
[00:24:55]                 │ debg ... sleep(501) end
[00:24:55]                 │ debg in navigateTo url = http://localhost:61141/app/home#/
[00:24:55]                 │ debg TestSubjects.exists(statusPageContainer)
[00:24:55]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:57]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:58]               └-: global all privileges (aka kibana_admin)
[00:24:58]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:24:58]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:24:58]                   │ debg set roles = kibana_admin
[00:24:58]                   │ debg creating user test_user
[00:24:58]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612890158941463886] updated user [test_user]
[00:24:58]                   │ debg created user test_user
[00:24:58]                   │ debg TestSubjects.exists(kibanaChrome)
[00:24:58]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:24:58]                   │ debg TestSubjects.find(kibanaChrome)
[00:24:58]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:24:58]                   │ debg browser[INFO] http://localhost:61141/app/home?_t=1612894077364#/ 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:24:58]                   │
[00:24:58]                   │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:59]                 └-> should show the Stack Management nav link
[00:24:59]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:24:59]                   │ debg isGlobalLoadingIndicatorVisible
[00:24:59]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:24:59]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:25:01]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:25:01]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:25:01]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:25:01]                   │ debg TestSubjects.exists(collapsibleNav)
[00:25:01]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:25:04]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:25:04]                   │ debg TestSubjects.click(toggleNavButton)
[00:25:04]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:25:04]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:25:04]                   │ debg TestSubjects.find(collapsibleNav)
[00:25:04]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:25:04]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:25:04]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:25:04]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:25:04]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:25:04]                   └- ✓ pass  (5.5s) "transform feature controls security global all privileges (aka kibana_admin) should show the Stack Management nav link"
[00:25:04]                 └-> should not render the "Stack" section
[00:25:04]                   └-> "before each" hook: global before each for "should not render the "Stack" section"
[00:25:04]                   │ debg navigating to management url: http://localhost:61141/app/management
[00:25:04]                   │ debg navigate to: http://localhost:61141/app/management
[00:25:05]                   │ debg browser[INFO] http://localhost:61141/app/management?_t=1612894088441 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:25:05]                   │
[00:25:05]                   │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:05]                   │ debg ... sleep(700) start
[00:25:05]                   │ debg ... sleep(700) end
[00:25:05]                   │ debg returned from get, calling refresh
[00:25:06]                   │ debg browser[INFO] http://localhost:61141/app/management?_t=1612894088441 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:25:06]                   │
[00:25:06]                   │ debg browser[INFO] http://localhost:61141/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:06]                   │ debg currentUrl = http://localhost:61141/app/management
[00:25:06]                   │          appUrl = http://localhost:61141/app/management
[00:25:06]                   │ debg TestSubjects.find(kibanaChrome)
[00:25:06]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:25:06]                   │ debg ... sleep(501) start
[00:25:07]                   │ debg ... sleep(501) end
[00:25:07]                   │ debg in navigateTo url = http://localhost:61141/app/management
[00:25:07]                   │ debg TestSubjects.exists(statusPageContainer)
[00:25:07]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:25:09]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:25:10]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:25:10]                   │ info Taking screenshot "/dev/shm/workspace/parallel/14/kibana/x-pack/test/functional/screenshots/failure/transform feature controls security global all privileges _aka kibana_admin_ should not render the _Stack_ section.png"
[00:25:10]                   │ info Current URL is: http://localhost:61141/app/management
[00:25:10]                   │ info Saving page source to: /dev/shm/workspace/parallel/14/kibana/x-pack/test/functional/failure_debug/html/transform feature controls security global all privileges _aka kibana_admin_ should not render the _Stack_ section.html
[00:25:10]                   └- ✖ fail: transform feature controls security global all privileges (aka kibana_admin) should not render the "Stack" section
[00:25:10]                   │       Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
[00:25:10]                   │       + expected - actual
[00:25:10]                   │ 
[00:25:10]                   │        [
[00:25:10]                   │       -  "ingest"
[00:25:10]                   │          "insightsAndAlerting"
[00:25:10]                   │          "kibana"
[00:25:10]                   │        ]
[00:25:10]                   │       
[00:25:10]                   │       at Assertion.assert (/dev/shm/workspace/parallel/14/kibana/packages/kbn-expect/expect.js:100:11)
[00:25:10]                   │       at Assertion.eql (/dev/shm/workspace/parallel/14/kibana/packages/kbn-expect/expect.js:244:8)
[00:25:10]                   │       at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:45:29)
[00:25:10]                   │       at runMicrotasks (<anonymous>)
[00:25:10]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:25:10]                   │       at Object.apply (/dev/shm/workspace/parallel/14/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:25:10]                   │ 
[00:25:10]                   │ 

Stack Trace

Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
    at Assertion.assert (/dev/shm/workspace/parallel/14/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/14/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:45:29)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/14/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
}

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 6.3MB 6.3MB +233.0B

History

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

@qn895
Copy link
Member

qn895 commented Feb 9, 2021

LGTM 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Support early stopping data frame analytics job parameter
6 participants