Skip to content

fix(NA): use the same polyfill between the dev environment and jest env#57467

Merged
mistic merged 1 commit intoelastic:masterfrom
mistic:fix-different-polyfills
Feb 12, 2020
Merged

fix(NA): use the same polyfill between the dev environment and jest env#57467
mistic merged 1 commit intoelastic:masterfrom
mistic:fix-different-polyfills

Conversation

@mistic
Copy link
Copy Markdown
Contributor

@mistic mistic commented Feb 12, 2020

That assures we are using the declared version of core-js that we install on package.json so we can use the same version across environments.

@mistic mistic added chore Team:Operations Kibana-Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v7.6.1 labels Feb 12, 2020
@mistic mistic requested a review from mshustov February 12, 2020 16:52
@mistic mistic requested a review from a team as a code owner February 12, 2020 16:52
@mistic mistic self-assigned this Feb 12, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@mshustov mshustov mentioned this pull request Feb 12, 2020
2 tasks
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security·ts.Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings; redirects to management home

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Advanced Settings
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: security feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook
[00:00:00]               │ info [empty_kibana] Loading "mappings.json"
[00:00:00]               │ info [empty_kibana] Loading "data.json.gz"
[00:00:00]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana_1/Z9GTTdjmRo2Y1aBJhhSBgw] deleting index
[00:00:00]               │ info [empty_kibana] Deleted existing index [".kibana_1"]
[00:00:00]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]               │ info [empty_kibana] Created index ".kibana"
[00:00:00]               │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]               │ info [empty_kibana] Indexed 2 docs into ".kibana"
[00:00:34]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana/S1FA8IbHRkmv0xFZKP4pQw] update_mapping [_doc]
[00:00:36]               │ info Creating index .kibana_2.
[00:00:36]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:36]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:36]               │ info Reindexing .kibana to .kibana_1
[00:00:36]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:36]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:36]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:36]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] updating number_of_replicas to [0] for indices [.tasks]
[00:00:36]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] 776 finished with response BulkByScrollResponse[took=43.8ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:36]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana/S1FA8IbHRkmv0xFZKP4pQw] deleting index
[00:00:36]               │ info Migrating .kibana_1 saved objects to .kibana_2
[00:00:36]               │ debg Migrating saved objects config:6.0.0-alpha1, space:default, maps-telemetry:maps-telemetry, config:8.0.0-SNAPSHOT
[00:00:36]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana_2/UkYD2TouTzaq-w7ZjzQHjQ] update_mapping [_doc]
[00:00:36]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana_2/UkYD2TouTzaq-w7ZjzQHjQ] update_mapping [_doc]
[00:00:36]               │ info Pointing alias .kibana to .kibana_2.
[00:00:36]               │ info Finished in 733ms.
[00:00:36]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:36]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] [.kibana_2/UkYD2TouTzaq-w7ZjzQHjQ] update_mapping [_doc]
[00:02:04]             └-: no advanced_settings privileges
[00:02:04]               └-> "before all" hook
[00:02:04]               └-> "before all" hook
[00:02:04]                 │ debg creating role no_advanced_settings_privileges_role
[00:02:04]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] added role [no_advanced_settings_privileges_role]
[00:02:04]                 │ debg created role no_advanced_settings_privileges_role
[00:02:04]                 │ debg creating user no_advanced_settings_privileges_user
[00:02:05]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-tests-xl-1581526377338169404] added user [no_advanced_settings_privileges_user]
[00:02:05]                 │ debg created user no_advanced_settings_privileges_user
[00:02:05]                 │ debg navigating to login url: http://localhost:6131/login
[00:02:05]                 │ debg Navigate to: http://localhost:6131/login
[00:02:05]                 │ proc [kibana]   log   [17:26:57.953] [info][authentication][plugins][security] Authentication attempt failed: [security_exception] unable to authenticate user [global_advanced_settings_read_user] for REST request [/_security/_authenticate], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } }
[00:02:05]                 │ debg ... sleep(700) start
[00:02:05]                 │ERROR browser[SEVERE] http://localhost:6131/ - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:02:05]                 │ debg ... sleep(700) end
[00:02:05]                 │ debg returned from get, calling refresh
[00:02:06]                 │ debg browser[INFO] http://localhost:6131/login?next=%2F 350 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:02:06]                 │
[00:02:06]                 │ debg browser[INFO] http://localhost:6131/bundles/app/login/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:06]                 │ debg currentUrl = http://localhost:6131/login?next=%2F
[00:02:06]                 │          appUrl = http://localhost:6131/login
[00:02:06]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:10]                 │ debg browser[INFO] http://localhost:6131/built_assets/dlls/vendors_3.bundle.dll.js 181:139970 "INFO: 2020-02-12T17:27:02Z
[00:02:10]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:02:10]                 │
[00:02:10]                 │      "
[00:02:10]                 │ debg ... sleep(501) start
[00:02:11]                 │ debg ... sleep(501) end
[00:02:11]                 │ debg in navigateTo url = http://localhost:6131/login?next=%2F#/
[00:02:11]                 │ debg TestSubjects.exists(statusPageContainer)
[00:02:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:13]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:14]                 │ debg TestSubjects.setValue(loginUsername, no_advanced_settings_privileges_user)
[00:02:14]                 │ debg TestSubjects.click(loginUsername)
[00:02:14]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:14]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:14]                 │ debg TestSubjects.setValue(loginPassword, no_advanced_settings_privileges_user-password)
[00:02:14]                 │ debg TestSubjects.click(loginPassword)
[00:02:14]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:14]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:15]                 │ debg TestSubjects.click(loginSubmit)
[00:02:15]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:15]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:15]                 │ debg Waiting up to 20000ms for logout button visible...
[00:02:15]                 │ debg TestSubjects.exists(userMenuButton)
[00:02:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:02:17]                 │ debg browser[INFO] http://localhost:6131/app/kibana#/ 350 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:02:17]                 │
[00:02:17]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:17]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:02:18]                 │ debg TestSubjects.exists(userMenuButton)
[00:02:18]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:02:20]                 │ debg browser[INFO] http://localhost:6131/built_assets/dlls/vendors_3.bundle.dll.js 181:139970 "INFO: 2020-02-12T17:27:12Z
[00:02:20]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:02:20]                 │
[00:02:20]                 │      "
[00:02:20]                 │ debg TestSubjects.exists(userMenu)
[00:02:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:02:23]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:02:24]                 │ debg TestSubjects.click(userMenuButton)
[00:02:24]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:02:24]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:02:24]                 │ debg Waiting up to 20000ms for user menu opened...
[00:02:24]                 │ debg TestSubjects.exists(userMenu)
[00:02:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:02:24]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:02:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:02:24]               └-> shows Management navlink
[00:02:24]                 └-> "before each" hook: global before each
[00:02:24]                 │ debg TestSubjects.find(navDrawer)
[00:02:24]                 │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:02:24]                 └- ✓ pass  (47ms) "Advanced Settings security feature controls no advanced_settings privileges shows Management navlink"
[00:02:24]               └-> does not allow navigation to advanced settings; redirects to management home
[00:02:24]                 └-> "before each" hook: global before each
[00:02:24]                 │ debg navigateToActualUrl http://localhost:6131/app/kibana#management/kibana/settings
[00:02:24]                 │ debg browser[INFO] http://localhost:6131/app/kibana?_t=1581528437125#management/kibana/settings 350 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:02:24]                 │
[00:02:24]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:24]                 │ debg TestSubjects.exists(managementHome)
[00:02:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="managementHome"]') with timeout=10000
[00:02:27]                 │ debg --- retry.tryForTime error: [data-test-subj="managementHome"] is not displayed
[00:02:30]                 │ debg browser[INFO] http://localhost:6131/built_assets/dlls/vendors_3.bundle.dll.js 181:139970 "INFO: 2020-02-12T17:27:21Z
[00:02:30]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:02:30]                 │
[00:02:30]                 │      "
[00:02:30]                 │ debg browser[INFO] http://localhost:6131/app/kibana#/management 350 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:02:30]                 │
[00:02:30]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:30]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:34]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:34]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings_ redirects to management home.png"
[00:02:36]                 │ debg browser[INFO] http://localhost:6131/built_assets/dlls/vendors_3.bundle.dll.js 181:139970 "INFO: 2020-02-12T17:27:27Z
[00:02:36]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:02:36]                 │
[00:02:36]                 │      "
[00:02:36]                 │ info Current URL is: http://localhost:6131/app/kibana#/management?_g=()
[00:02:36]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings_ redirects to management home.html
[00:02:36]                 └- ✖ fail: "Advanced Settings security feature controls no advanced_settings privileges does not allow navigation to advanced settings; redirects to management home"
[00:02:36]                 │

Stack Trace

Error: expected testSubject(managementHome) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/kibana/test/functional/services/test_subjects.ts:60:15)

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

@mistic mistic merged commit dbaa6b1 into elastic:master Feb 12, 2020
@mistic
Copy link
Copy Markdown
Contributor Author

mistic commented Feb 12, 2020

7.6: e097441
7.x: 4e75d5b

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

Labels

chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.6.1 v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants