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

[7.x] [APM] Update tsconfig.json template in optimization script (#58731) #58885

Merged
merged 2 commits into from
Feb 29, 2020

Conversation

dgieselaar
Copy link
Member

Backports the following commits to 7.x:

…8731)

* [APM] Update tsconfig.json template in optimization script

The location of the cypress tests has changed, and those files are no longer excluded in the APM type check. This change updates the tsconfig.json template to exclude the new location.

* Update link in readme
@dgieselaar
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/timelion/_expression_typeahead·js.timelion app expression typeahead "before all" hook

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:03:06]         └-: timelion app
[00:03:06]           └-> "before all" hook
[00:03:06]           └-> "before all" hook
[00:03:06]             │ debg Starting timelion before method
[00:03:06]             │ info [logstash_functional] Loading "mappings.json"
[00:03:06]             │ info [logstash_functional] Loading "data.json.gz"
[00:03:06]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:03:06]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:03:06]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:03:06]             │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:03:06]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:03:06]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:03:06]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:03:06]             │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:03:06]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:03:06]             │ debg TestSubjects.exists(filter filter-disabled filter-key-geo.src filter-value-IN)
[00:03:06]             │ debg Find.existsByCssSelector('[data-test-subj="filter filter-disabled filter-key-geo.src filter-value-IN"]') with timeout=2500
[00:03:06]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:03:06]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:03:06]             │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:03:09]             │ debg --- retry.try failed again with the same message...
[00:03:09]             │ debg TestSubjects.exists(filter filter-disabled filter-key-geo.src filter-value-IN)
[00:03:09]             │ debg Find.existsByCssSelector('[data-test-subj="filter filter-disabled filter-key-geo.src filter-value-IN"]') with timeout=2500
[00:03:12]             │ debg --- retry.try failed again with the same message...
[00:03:12]             │ debg TestSubjects.exists(filter filter-disabled filter-key-geo.src filter-value-IN)
[00:03:12]             │ debg Find.existsByCssSelector('[data-test-subj="filter filter-disabled filter-key-geo.src filter-value-IN"]') with timeout=2500
[00:03:15]             │ debg --- retry.try failed again with the same message...
[00:03:15]             │ debg TestSubjects.exists(filter filter-disabled filter-key-geo.src filter-value-IN)
[00:03:15]             │ debg Find.existsByCssSelector('[data-test-subj="filter filter-disabled filter-key-geo.src filter-value-IN"]') with timeout=2500
[00:03:16]             │ info progress: 11436
[00:03:18]             │ debg --- retry.try failed again with the same message...
[00:03:18]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:03:18]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:03:18]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:03:18]             │ debg TestSubjects.exists(filter filter-disabled filter-key-geo.src filter-value-IN)
[00:03:18]             │ debg Find.existsByCssSelector('[data-test-subj="filter filter-disabled filter-key-geo.src filter-value-IN"]') with timeout=2500
[00:03:19]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:03:19]           └-: expression typeahead
[00:03:19]             └-> "before all" hook
[00:03:21]               │ debg --- retry.try failed again with the same message...
[00:03:21]             └-> "before all" hook
[00:03:21]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:03:21]               │ debg load kibana index
[00:03:21]               │ info [timelion] Loading "mappings.json"
[00:03:21]               │ info [timelion] Loading "data.json.gz"
[00:03:21]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana_2/5ub4EpxkS0WnfZjwhu4NZg] deleting index
[00:03:21]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana_1/A5azFPilRRaaoTiJLHoYwg] deleting index
[00:03:21]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana_3/i_9YTi-gQnCWILUyADUrMw] deleting index
[00:03:21]               │ info [timelion] Deleted existing index [".kibana_2",".kibana_1",".kibana_3"]
[00:03:21]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:03:21]               │ info [timelion] Created index ".kibana"
[00:03:21]               │ debg [timelion] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:03:21]               │ info [timelion] Indexed 1 docs into ".kibana"
[00:03:21]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana/Yd5hhR29TeeynkN2v3qFCA] update_mapping [_doc]
[00:03:21]               │ debg Migrating saved objects
[00:03:21]               │ debg TestSubjects.exists(filter filter-disabled filter-key-geo.src filter-value-IN)
[00:03:21]               │ debg Find.existsByCssSelector('[data-test-subj="filter filter-disabled filter-key-geo.src filter-value-IN"]') with timeout=2500
[00:03:21]               │ proc [kibana]   log   [19:59:42.314] [info][savedobjects-service] Creating index .kibana_2.
[00:03:22]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:03:22]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] updating number_of_replicas to [0] for indices [.kibana_2]
[00:03:22]               │ proc [kibana]   log   [19:59:42.420] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:03:22]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:03:22]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] updating number_of_replicas to [0] for indices [.kibana_1]
[00:03:22]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] 2598 finished with response BulkByScrollResponse[took=39.6ms,timed_out=false,sliceId=null,updated=0,created=1,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:03:22]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana/Yd5hhR29TeeynkN2v3qFCA] deleting index
[00:03:22]               │ proc [kibana]   log   [19:59:42.813] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:03:22]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana_2/IPgYoPXYSlKPqMeumssX1A] update_mapping [_doc]
[00:03:22]               │ proc [kibana]   log   [19:59:42.872] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:03:22]               │ proc [kibana]   log   [19:59:42.932] [info][savedobjects-service] Finished in 621ms.
[00:03:22]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:03:23]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583004876785406316] [.kibana_2/IPgYoPXYSlKPqMeumssX1A] update_mapping [_doc]
[00:03:24]               │ debg navigating to timelion url: http://localhost:6111/app/timelion
[00:03:24]               │ debg Navigate to: http://localhost:6111/app/timelion
[00:03:24]               │ debg ... sleep(700) start
[00:03:24]               │ debg browser[INFO] http://localhost:6111/app/timelion?_t=1583006384413 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:03:24]               │
[00:03:24]               │ debg browser[INFO] http://localhost:6111/bundles/app/timelion/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:24]               │ debg --- retry.try failed again with the same message...
[00:03:25]               │ debg TestSubjects.exists(filter filter-disabled filter-key-geo.src filter-value-IN)
[00:03:25]               │ debg Find.existsByCssSelector('[data-test-subj="filter filter-disabled filter-key-geo.src filter-value-IN"]') with timeout=2500
[00:03:25]               │ debg ... sleep(700) end
[00:03:25]               │ debg returned from get, calling refresh
[00:03:28]               │ debg browser[INFO] http://localhost:6111/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-02-29T19:59:46Z
[00:03:28]               │        Adding connection to http://localhost:6111/elasticsearch
[00:03:28]               │
[00:03:28]               │      "
[00:03:28]               │ debg --- retry.try failed again with the same message...
[00:03:28]               │ debg currentUrl = http://localhost:6111/app/timelion#/?_g=()&_a=(columns:2,interval:auto,rows:2,selected:0,sheet:!(%27.es(*)%27))
[00:03:28]               │          appUrl = http://localhost:6111/app/timelion
[00:03:28]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:28]               │ debg TestSubjects.exists(filter filter-disabled filter-key-geo.src filter-value-IN)
[00:03:28]               │ debg Find.existsByCssSelector('[data-test-subj="filter filter-disabled filter-key-geo.src filter-value-IN"]') with timeout=2500
[00:03:31]               │ debg browser[INFO] http://localhost:6111/app/timelion?_t=1583006384413#/?_g=()&_a=(columns:2,interval:auto,rows:2,selected:0,sheet:!('.es(*)')) 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:03:31]               │
[00:03:31]               │ debg browser[INFO] http://localhost:6111/bundles/app/timelion/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:31]               │ debg browser[INFO] http://localhost:6111/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-02-29T19:59:50Z
[00:03:31]               │        Adding connection to http://localhost:6111/elasticsearch
[00:03:31]               │
[00:03:31]               │      "
[00:03:31]               │ debg ... sleep(501) start
[00:03:31]               │ debg ... sleep(501) end
[00:03:33]               │ debg in navigateTo url = http://localhost:6111/app/timelion#/?_g=()&_a=(columns:2,interval:auto,rows:2,selected:0,sheet:!(%27.es(*)%27))
[00:03:33]               │ debg TestSubjects.exists(statusPageContainer)
[00:03:33]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:33]               │ debg --- retry.try failed again with the same message...
[00:03:34]               └- ✖ fail: "timelion app expression typeahead "before all" hook"
[00:03:34]               │

Stack Trace

{ DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    at emitDeprecationWarning (internal/process/promises.js:111:13)
    at emitWarning (internal/process/promises.js:104:3)
    at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
    at process._tickCallback (internal/process/next_tick.js:69:34) name: 'DeprecationWarning', code: 'DEP0018', uncaught: true }

History

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

@dgieselaar dgieselaar merged commit 5e8d6c2 into elastic:7.x Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants