Skip to content

Conversation

@jfsiii
Copy link
Contributor

@jfsiii jfsiii commented Feb 9, 2021

Backports the following commits to 7.x:

## Summary
 * Added references to all dependencies
    https://github.com/elastic/kibana/blob/6bc6f3459a120eddfae70ad2fc7e4669e3a996b0/x-pack/plugins/fleet/tsconfig.json#L17-L38
 * `node scripts/check_ts_projects` is successful
 * `node scripts/build_ts_refs` is successful
<details><summary><code>node --max-old-space-size=4096 ./node_modules/.bin/tsc -p tsconfig.json --extendedDiagnostics --noEmit</code></summary>

```
Files:                        1436
Lines:                      267372
Nodes:                     1016769
Identifiers:                361835
Symbols:                    250405
Types:                       31105
Instantiations:              57570
Memory used:               347817K
Assignability cache size:     5597
Identity cache size:          3073
Subtype cache size:           2140
Strict subtype cache size:    1012
I/O Read time:               0.49s
Parse time:                  3.84s
ResolveModule time:          1.59s
ResolveTypeReference time:   0.16s
Program time:                7.46s
Bind time:                   1.87s
Check time:                  4.02s
printTime time:              0.00s
Emit time:                   0.00s
Total time:                 13.35s
```
</details>
@jfsiii jfsiii added the backport This PR is a backport of another PR label Feb 9, 2021
@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/api_keys/feature_controls/api_keys_security·ts.API Keys app feature controls security global all privileges (aka kibana_admin) should not render the "Security" section

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:34:43]         └-: API Keys app
[00:34:43]           └-> "before all" hook in "API Keys app"
[00:34:54]           └-: feature controls
[00:34:54]             └-> "before all" hook in "feature controls"
[00:34:54]             └-: security
[00:34:54]               └-> "before all" hook in "security"
[00:34:54]               └-> "before all" hook in "security"
[00:34:54]                 │ info [empty_kibana] Loading "mappings.json"
[00:34:54]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] [.kibana_2/xBNSsjdWRvy_4lK-4p2AzQ] deleting index
[00:34:54]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] [.kibana_1/H2ZT22PWTie2-jwICROEfw] deleting index
[00:34:54]                 │ info [empty_kibana] Deleted existing index ".kibana_2"
[00:34:54]                 │ info [empty_kibana] Deleted existing index ".kibana_1"
[00:34:54]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:34:54]                 │ info [empty_kibana] Created index ".kibana"
[00:34:54]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:34:54]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] [.kibana/y4cdnLggTHGAuVblEtzFBw] update_mapping [_doc]
[00:34:54]                 │ debg Migrating saved objects
[00:34:54]                 │ proc [kibana]   log   [12:19:51.226] [info][savedobjects-service] Creating index .kibana_2.
[00:34:55]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:34:55]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] updating number_of_replicas to [0] for indices [.kibana_2]
[00:34:55]                 │ proc [kibana]   log   [12:19:51.292] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:34:55]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:34:55]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] updating number_of_replicas to [0] for indices [.kibana_1]
[00:34:55]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] 68783 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:34:55]                 │ proc [kibana]   log   [12:19:51.378] [warning][environment] Detected an unhandled Promise rejection.
[00:34:55]                 │ proc [kibana] Error: Saved object [space/default] not found
[00:34:55]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] [.kibana/y4cdnLggTHGAuVblEtzFBw] deleting index
[00:34:55]                 │ proc [kibana]   log   [12:19:51.634] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:34:55]                 │ proc [kibana]   log   [12:19:51.638] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:34:55]                 │ proc [kibana]   log   [12:19:51.667] [info][savedobjects-service] Finished in 443ms.
[00:34:55]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:34:55]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:34:55]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:34:55]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] [.kibana_2/jitZHqd-Q1-eWDx7miOTAQ] update_mapping [_doc]
[00:34:57]                 │ debg navigating to home url: http://localhost:6171/app/home#/
[00:34:57]                 │ debg navigate to: http://localhost:6171/app/home#/
[00:34:57]                 │ debg browser[INFO] http://localhost:6171/app/home?_t=1612873193281#/ 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:34:57]                 │
[00:34:57]                 │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:34:57]                 │ debg ... sleep(700) start
[00:34:57]                 │ debg ... sleep(700) end
[00:34:57]                 │ debg returned from get, calling refresh
[00:34:58]                 │ERROR browser[SEVERE] http://localhost:6171/38579/bundles/core/core.entry.js 12:158464 TypeError: Failed to fetch
[00:34:58]                 │          at fetch_Fetch.fetchResponse (http://localhost:6171/38579/bundles/core/core.entry.js:6:32451)
[00:34:58]                 │          at async interceptResponse (http://localhost:6171/38579/bundles/core/core.entry.js:6:28637)
[00:34:58]                 │          at async http://localhost:6171/38579/bundles/core/core.entry.js:6:31117
[00:34:58]                 │ debg browser[INFO] http://localhost:6171/app/home?_t=1612873193281#/ 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:34:58]                 │
[00:34:58]                 │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:34:58]                 │ debg currentUrl = http://localhost:6171/app/home#/
[00:34:58]                 │          appUrl = http://localhost:6171/app/home#/
[00:34:58]                 │ debg TestSubjects.find(kibanaChrome)
[00:34:58]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:34:59]                 │ debg ... sleep(501) start
[00:34:59]                 │ debg ... sleep(501) end
[00:34:59]                 │ debg in navigateTo url = http://localhost:6171/app/home#/
[00:34:59]                 │ debg TestSubjects.exists(statusPageContainer)
[00:34:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:35:02]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:35:02]               └-: global all privileges (aka kibana_admin)
[00:35:02]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:35:02]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:35:02]                   │ debg set roles = kibana_admin
[00:35:02]                   │ debg creating user test_user
[00:35:02]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612868655181995002] updated user [test_user]
[00:35:02]                   │ debg created user test_user
[00:35:02]                   │ debg TestSubjects.exists(kibanaChrome)
[00:35:02]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:35:03]                   │ debg TestSubjects.find(kibanaChrome)
[00:35:03]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:35:03]                   │ debg browser[INFO] http://localhost:6171/app/home?_t=1612873193281#/ 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:35:03]                   │
[00:35:03]                   │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:35:04]                 └-> should show the Stack Management nav link
[00:35:04]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:35:04]                   │ debg isGlobalLoadingIndicatorVisible
[00:35:04]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:35:04]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:35:05]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:35:06]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:35:06]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:35:06]                   │ debg TestSubjects.exists(collapsibleNav)
[00:35:06]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:35:08]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:35:09]                   │ debg TestSubjects.click(toggleNavButton)
[00:35:09]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:35:09]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:35:09]                   │ debg TestSubjects.find(collapsibleNav)
[00:35:09]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:35:09]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:35:09]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:35:09]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:35:09]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:35:09]                   └- ✓ pass  (5.5s) "API Keys app feature controls security global all privileges (aka kibana_admin) should show the Stack Management nav link"
[00:35:09]                 └-> should not render the "Security" section
[00:35:09]                   └-> "before each" hook: global before each for "should not render the "Security" section"
[00:35:09]                   │ debg navigating to management url: http://localhost:6171/app/management
[00:35:09]                   │ debg navigate to: http://localhost:6171/app/management
[00:35:09]                   │ debg browser[INFO] http://localhost:6171/app/management?_t=1612873206064 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:35:09]                   │
[00:35:09]                   │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:35:09]                   │ debg ... sleep(700) start
[00:35:10]                   │ debg ... sleep(700) end
[00:35:10]                   │ debg returned from get, calling refresh
[00:35:11]                   │ debg browser[INFO] http://localhost:6171/app/management?_t=1612873206064 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:35:11]                   │
[00:35:11]                   │ debg browser[INFO] http://localhost:6171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:35:11]                   │ debg currentUrl = http://localhost:6171/app/management
[00:35:11]                   │          appUrl = http://localhost:6171/app/management
[00:35:11]                   │ debg TestSubjects.find(kibanaChrome)
[00:35:11]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:35:11]                   │ debg ... sleep(501) start
[00:35:12]                   │ debg ... sleep(501) end
[00:35:12]                   │ debg in navigateTo url = http://localhost:6171/app/management
[00:35:12]                   │ debg TestSubjects.exists(statusPageContainer)
[00:35:12]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:35:14]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:35:15]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:35:15]                   │ info Taking screenshot "/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/screenshots/failure/API Keys app feature controls security global all privileges _aka kibana_admin_ should not render the _Security_ section.png"
[00:35:15]                   │ info Current URL is: http://localhost:6171/app/management
[00:35:15]                   │ info Saving page source to: /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/failure_debug/html/API Keys app feature controls security global all privileges _aka kibana_admin_ should not render the _Security_ section.html
[00:35:15]                   └- ✖ fail: API Keys app feature controls security global all privileges (aka kibana_admin) should not render the "Security" section
[00:35:15]                   │       Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
[00:35:15]                   │       + expected - actual
[00:35:15]                   │ 
[00:35:15]                   │        [
[00:35:15]                   │       -  "ingest"
[00:35:15]                   │          "insightsAndAlerting"
[00:35:15]                   │          "kibana"
[00:35:15]                   │        ]
[00:35:15]                   │       
[00:35:15]                   │       at Assertion.assert (/dev/shm/workspace/parallel/7/kibana/packages/kbn-expect/expect.js:100:11)
[00:35:15]                   │       at Assertion.eql (/dev/shm/workspace/parallel/7/kibana/packages/kbn-expect/expect.js:244:8)
[00:35:15]                   │       at Context.<anonymous> (test/functional/apps/api_keys/feature_controls/api_keys_security.ts:44:29)
[00:35:15]                   │       at runMicrotasks (<anonymous>)
[00:35:15]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:35:15]                   │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:35:15]                   │ 
[00:35:15]                   │ 

Stack Trace

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

✅ unchanged

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

@jfsiii jfsiii merged commit d91d299 into elastic:7.x Feb 9, 2021
@jfsiii jfsiii deleted the backport/7.x/pr-87574 branch April 6, 2021 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants