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

[data views] Make data view saved objects share capable #114408

Merged
merged 9 commits into from
Oct 25, 2021

Conversation

mattkime
Copy link
Contributor

@mattkime mattkime commented Oct 9, 2021

Summary

Make data view saved objects share capable.

Closes: #113370

@mattkime mattkime added backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes v8.0.0 Team:AppServicesSv Feature:Data Views Data Views code and UI - index patterns before 8.0 labels Oct 9, 2021
@jportner jportner self-requested a review October 12, 2021 14:30
@jportner
Copy link
Contributor

Looking at why the tests are failing:

X-Pack Group 2

✖ fail: Reporting APIs Exports and Spaces CSV saved search export should use formats from non-default spaces

The error is in the "before each" hook: [2021-10-09T16:26:51.300+00:00][ERROR][plugins.reporting] Error: Saved object [index-pattern/067dec90-e7ee-11ea-a730-d58e9ea7581b] not found

The index pattern gets converted when kbn-archiver loads the test fixture, and the index pattern's ID changes accordingly, but the Reporting plugin doesn't use resolve yet. So when the Reporting plugin tries to fetch the index pattern, it is not found.

You can either change the test fixtures to this an "8.0 index pattern" that doesn't get converted at all, or wait for Reporting to start using resolve: #112565
It looks like there's already a linked PR that will close that issue 👍

X-Pack Group 5 / Group 8

✖ fail: spaces api without security copy to spaces from the default space single-namespace types should return 200 when copying to space without conflicts with references

The problem here is that, in the interest of performance, the Spaces API tests are configured to skip the index migration. Normally this would be fine, but since the index patterns are changing to become share-capable, the raw ES documents are no longer valid. E.g., Kibana searches for index pattern "foo" but it does not exist. There are two ways to solve this:

  1. Change the tests to migrate the whole index, or
  2. Change the test data so that it includes "8.0 index pattern" objects

I explored option (1) but it has a lot of downstream effects that would require us to also change lots of test assertions. That, coupled with the huge performance hit (10-20 minutes for the test suite), I think we should do option (2). I'll go ahead and push a commit to your branch to make this change.

I expect some of the Saved Object API integration tests will fail too, but we won't see that until we get the Spaces API integration tests to pass.

@jportner
Copy link
Contributor

I think we should do option (2). I'll go ahead and push a commit to your branch to make this change.

I expect some of the Saved Object API integration tests will fail too, but we won't see that until we get the Spaces API integration tests to pass.

I added a8af7f7 to fix the Spaces API integration tests. Let's see the outcome of the next CI run.

@mattkime
Copy link
Contributor Author

@jportner #113641 should be merged soon

@jportner
Copy link
Contributor

I pushed 44fbb9c to fix merge conflicts with #114620

@kibanamachine
Copy link
Contributor

kibanamachine commented Oct 18, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / X-Pack Reporting API Integration Tests.x-pack/test/reporting_api_integration/reporting_and_security/spaces·ts.Reporting APIs Exports and Spaces CSV saved search export should use formats from non-default spaces

Link to Jenkins

Standard Out

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

[00:00:00]     │
[00:00:00]       └-: Reporting APIs
[00:00:00]         └-> "before all" hook in "Reporting APIs"
[00:00:00]         └-> "before all" hook in "Reporting APIs"
[00:00:00]           │ debg creating role data_analyst
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [data_analyst]
[00:00:00]           │ debg creating role test_reporting_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [test_reporting_user]
[00:00:00]           │ debg creating user data_analyst
[00:00:00]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [data_analyst]
[00:00:00]           │ debg created user data_analyst
[00:00:00]           │ debg creating user reporting_user
[00:00:00]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [reporting_user]
[00:00:00]           │ debg created user reporting_user
[00:02:04]         └-: Exports and Spaces
[00:02:04]           └-> "before all" hook for "should complete a job of PNG export of a dashboard in non-default space"
[00:02:04]           └-> "before all" hook for "should complete a job of PNG export of a dashboard in non-default space"
[00:02:04]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Loading "mappings.json"
[00:02:04]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Loading "data.json.gz"
[00:02:04]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [ecommerce] creating index, cause [api], templates [], shards [1]/[0]
[00:02:05]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Created index "ecommerce"
[00:02:05]             │ debg [x-pack/test/functional/es_archives/reporting/ecommerce] "ecommerce" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:06]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Indexed 4675 docs into "ecommerce"
[00:02:06]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Loading "mappings.json"
[00:02:06]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Loading "data.json"
[00:02:06]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/UFt5GeqHQdODLAZTNFuVRw] deleting index
[00:02:06]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/dUqjC3I8Q5iUynwiPgV24Q] deleting index
[00:02:06]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/is7jRQ8yRBur_KJua7bGpw] deleting index
[00:02:06]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Deleted existing index ".kibana_8.0.0_001"
[00:02:06]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:02:06]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Deleted existing index ".kibana_1"
[00:02:06]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:02:06]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Created index ".kibana_1"
[00:02:06]             │ debg [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:02:06]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Indexed 13 docs into ".kibana_1"
[00:02:06]             │ debg Migrating saved objects
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.863+00:00][INFO ][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 2ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.866+00:00][INFO ][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 7ms.
[00:02:06]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.868+00:00][INFO ][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 2ms.
[00:02:06]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.874+00:00][INFO ][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 6ms.
[00:02:06]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/ljAQULUORZeJO_NNu24EfQ]]
[00:02:06]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.921+00:00][INFO ][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 58ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.933+00:00][INFO ][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 59ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.937+00:00][INFO ][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 4ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.948+00:00][INFO ][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 27ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.948+00:00][INFO ][savedobjects-service] [.kibana_task_manager] Migration completed after 87ms
[00:02:06]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:02:06]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.986+00:00][INFO ][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 49ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.989+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 3ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.994+00:00][INFO ][savedobjects-service] [.kibana] Starting to process 13 documents.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:57.994+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_TRANSFORM. took: 5ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.007+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_TRANSFORM -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 13ms.
[00:02:06]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/msmqqDX0QVWcPF4LolADYw] update_mapping [_doc]
[00:02:06]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/msmqqDX0QVWcPF4LolADYw] update_mapping [_doc]
[00:02:06]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/msmqqDX0QVWcPF4LolADYw] update_mapping [_doc]
[00:02:06]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/msmqqDX0QVWcPF4LolADYw] update_mapping [_doc]
[00:02:06]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/msmqqDX0QVWcPF4LolADYw] update_mapping [_doc]
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.108+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 101ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.112+00:00][INFO ][savedobjects-service] [.kibana] Processed 13 documents out of 13.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.112+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 4ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.114+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 2ms.
[00:02:06]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/msmqqDX0QVWcPF4LolADYw]]
[00:02:06]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.145+00:00][INFO ][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 31ms.
[00:02:06]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:02:06]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:02:06]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:02:06]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/gvyzwjROQT27JhzMslgncw] create_mapping
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.218+00:00][INFO ][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 73ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.221+00:00][INFO ][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 3ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.223+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 2ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.227+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 4ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.228+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 1ms.
[00:02:06]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/gvyzwjROQT27JhzMslgncw] update_mapping [_doc]
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.273+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 45ms.
[00:02:06]             │ info [o.e.t.LoggingTaskListener] [node-01] 13619 finished with response BulkByScrollResponse[took=18.8ms,timed_out=false,sliceId=null,updated=17,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.377+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 104ms.
[00:02:06]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/msmqqDX0QVWcPF4LolADYw] deleting index
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.415+00:00][INFO ][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 38ms.
[00:02:06]             │ proc [kibana] [2021-10-18T18:52:58.415+00:00][INFO ][savedobjects-service] [.kibana] Migration completed after 556ms
[00:02:06]             │ debg [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Migrated Kibana index after loading Kibana data
[00:02:06]             │ debg [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Ensured that default space exists in .kibana
[00:02:06]           └-> should complete a job of PNG export of a dashboard in non-default space
[00:02:06]             └-> "before each" hook: global before each for "should complete a job of PNG export of a dashboard in non-default space"
[00:02:06]             │ debg ReportingAPI.postJobJSON((/s/non_default_space/api/reporting/generate/png): {"jobParams":"(browserTimezone:UTC,layout:(dimensions:(height:512,width:2402),id:png),objectType:dashboard,relativeUrl:'/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters:!!(),refreshInterval:(pause:!!t,value:0),time:(from:!'2019-06-10T03:17:28.800Z!',to:!'2019-07-14T19:25:06.385Z!'))&_a=(description:!'!',filters:!!(),fullScreenMode:!!f,options:(hidePanelTitles:!!f,useMargins:!!t),query:(language:kuery,query:!'!'),timeRestore:!!t,title:!'Ecom%20Dashboard%20Non%20Default%20Space!',viewMode:view)',title:'Ecom Dashboard Non Default Space')"})
[00:02:07]             │ proc [kibana] [2021-10-18T18:52:58.433+00:00][WARN ][plugins.reporting] No version provided in report job params. Assuming 7.14.0
[00:02:07]             │ proc [kibana] [2021-10-18T18:52:58.442+00:00][INFO ][plugins.reporting] Request uses Space ID: non_default_space
[00:02:07]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/WLnUwR1QS42kiui36VLpPQ] update_mapping [_doc]
[00:02:07]             │ proc [kibana] [2021-10-18T18:52:58.483+00:00][INFO ][plugins.reporting] Scheduled PNG reporting task. Task ID: task:9c94f580-3044-11ec-bd05-37edea894591. Report ID: kux0mci38f0y3964fa2b6jm4
[00:02:08]             │ proc [kibana] [2021-10-18T18:52:59.759+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kux0mci38f0y3964fa2b6jm4.browser-driver] Creating browser page driver
[00:02:08]             │ proc [kibana] [2021-10-18T18:53:00.125+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kux0mci38f0y3964fa2b6jm4] opening url http://localhost:61111/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-06-10T03%3A17%3A28.800Z'%2Cto%3A'2019-07-14T19%3A25%3A06.385Z'))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!t%2Ctitle%3A'Ecom%20Dashboard%20Non%20Default%20Space'%2CviewMode%3Aview)&forceNow=2021-10-18T18%3A52%3A58.434Z
[00:02:09]             │ debg checking report status at /api/reporting/jobs/download/kux0mci38f0y3964fa2b6jm4...
[00:02:09]             │ proc [kibana] [2021-10-18T18:53:01.222+00:00][ERROR][plugins.reporting.runTask.png.PNG.execute.kux0mci38f0y3964fa2b6jm4.browser-driver.headless-browser-console] Error in browser console: { text: "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.", url: http://localhost:61111/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-06-10T03%3A17%3A28.800Z'%2Cto%3A'2019-07-14T19%3A25%3A06.385Z'))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!t%2Ctitle%3A'Ecom%20Dashboard%20Non%20Default%20Space'%2CviewMode%3Aview)&forceNow=2021-10-18T18%3A52%3A58.434Z }
[00:02:11]             │ debg checking report status at /api/reporting/jobs/download/kux0mci38f0y3964fa2b6jm4...
[00:02:12]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/gvyzwjROQT27JhzMslgncw] update_mapping [_doc]
[00:02:12]             │ proc [kibana] [2021-10-18T18:53:04.075+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kux0mci38f0y3964fa2b6jm4] handled 160 page requests
[00:02:13]             │ debg checking report status at /api/reporting/jobs/download/kux0mci38f0y3964fa2b6jm4...
[00:02:13]             │ proc [kibana] [2021-10-18T18:53:05.068+00:00][WARN ][plugins.reporting.runTask.png.PNG.execute.kux0mci38f0y3964fa2b6jm4.browser-driver] Request to [http://localhost:61111/s/non_default_space/internal/bsearch?compress=true] failed! [net::ERR_ABORTED]. This error will be ignored.
[00:02:14]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/gvyzwjROQT27JhzMslgncw] update_mapping [_doc]
[00:02:15]             │ debg checking report status at /api/reporting/jobs/download/kux0mci38f0y3964fa2b6jm4...
[00:02:16]             │ proc [kibana] [2021-10-18T18:53:07.951+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kux0mci38f0y3964fa2b6jm4] timeRange: Jun 10, 2019 @ 03:17:28.800 to Jul 14, 2019 @ 19:25:06.385
[00:02:16]             │ proc [kibana] [2021-10-18T18:53:07.954+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kux0mci38f0y3964fa2b6jm4] taking screenshots
[00:02:17]             │ debg checking report status at /api/reporting/jobs/download/kux0mci38f0y3964fa2b6jm4...
[00:02:17]             │ proc [kibana] [2021-10-18T18:53:08.902+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kux0mci38f0y3964fa2b6jm4] screenshots taken: 1
[00:02:17]             │ proc [kibana] [2021-10-18T18:53:08.986+00:00][INFO ][plugins.reporting.runTask] Saved PNG job /.reporting-2021-10-17/_doc/kux0mci38f0y3964fa2b6jm4
[00:02:19]             │ debg checking report status at /api/reporting/jobs/download/kux0mci38f0y3964fa2b6jm4...
[00:02:19]             │ debg report at /api/reporting/jobs/download/kux0mci38f0y3964fa2b6jm4 is done
[00:02:19]             └- ✓ pass  (12.1s)
[00:02:19]           └-> should complete a job of PDF export of a dashboard in non-default space
[00:02:19]             └-> "before each" hook: global before each for "should complete a job of PDF export of a dashboard in non-default space"
[00:02:19]             │ debg ReportingAPI.postJobJSON((/s/non_default_space/api/reporting/generate/printablePdf): {"jobParams":"(browserTimezone:UTC,layout:(dimensions:(height:512,width:2402),id:preserve_layout),objectType:dashboard,relativeUrls:!('/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters:!!(),refreshInterval:(pause:!!t,value:0),time:(from:!'2019-06-10T03:17:28.800Z!',to:!'2019-07-14T19:25:06.385Z!'))&_a=(description:!'!',filters:!!(),fullScreenMode:!!f,options:(hidePanelTitles:!!f,useMargins:!!t),query:(language:kuery,query:!'!'),timeRestore:!!t,title:!'Ecom%20Dashboard%20Non%20Default%20Space!',viewMode:view)'),title:'Ecom Dashboard Non Default Space')"})
[00:02:19]             │ proc [kibana] [2021-10-18T18:53:10.527+00:00][WARN ][plugins.reporting] No version provided in report job params. Assuming 7.14.0
[00:02:19]             │ proc [kibana] [2021-10-18T18:53:10.537+00:00][INFO ][plugins.reporting] Request uses Space ID: non_default_space
[00:02:19]             │ proc [kibana] [2021-10-18T18:53:10.553+00:00][INFO ][plugins.reporting] Scheduled PDF reporting task. Task ID: task:a3ca5b60-3044-11ec-bd05-37edea894591. Report ID: kux0mlu18f0y3964fa3v67v6
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/gvyzwjROQT27JhzMslgncw] update_mapping [_doc]
[00:02:20]             │ proc [kibana] [2021-10-18T18:53:11.728+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6] Generating request for space: non_default_space
[00:02:20]             │ proc [kibana] [2021-10-18T18:53:11.728+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6] Request uses Space ID: non_default_space
[00:02:20]             │ proc [kibana] [2021-10-18T18:53:11.728+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6] Creating UI Settings Client for space: non_default_space
[00:02:20]             │ proc [kibana] [2021-10-18T18:53:11.736+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6.browser-driver] Creating browser page driver
[00:02:20]             │ proc [kibana] [2021-10-18T18:53:12.105+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6] opening url http://localhost:61111/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-06-10T03%3A17%3A28.800Z'%2Cto%3A'2019-07-14T19%3A25%3A06.385Z'))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!t%2Ctitle%3A'Ecom%20Dashboard%20Non%20Default%20Space'%2CviewMode%3Aview)&forceNow=2021-10-18T18%3A53%3A10.528Z
[00:02:20]             │ proc [kibana] [2021-10-18T18:53:12.173+00:00][ERROR][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6.browser-driver.headless-browser-console] Error in browser console: { text: "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.", url: http://localhost:61111/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-06-10T03%3A17%3A28.800Z'%2Cto%3A'2019-07-14T19%3A25%3A06.385Z'))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!t%2Ctitle%3A'Ecom%20Dashboard%20Non%20Default%20Space'%2CviewMode%3Aview)&forceNow=2021-10-18T18%3A53%3A10.528Z }
[00:02:21]             │ debg checking report status at /api/reporting/jobs/download/kux0mlu18f0y3964fa3v67v6...
[00:02:23]             │ debg checking report status at /api/reporting/jobs/download/kux0mlu18f0y3964fa3v67v6...
[00:02:23]             │ proc [kibana] [2021-10-18T18:53:15.025+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6] handled 159 page requests
[00:02:25]             │ debg checking report status at /api/reporting/jobs/download/kux0mlu18f0y3964fa3v67v6...
[00:02:25]             │ proc [kibana] [2021-10-18T18:53:17.349+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6] timeRange: Jun 10, 2019 @ 03:17:28.800 to Jul 14, 2019 @ 19:25:06.385
[00:02:25]             │ proc [kibana] [2021-10-18T18:53:17.352+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6] taking screenshots
[00:02:26]             │ proc [kibana] [2021-10-18T18:53:18.277+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kux0mlu18f0y3964fa3v67v6] screenshots taken: 1
[00:02:27]             │ debg checking report status at /api/reporting/jobs/download/kux0mlu18f0y3964fa3v67v6...
[00:02:27]             │ proc [kibana] [2021-10-18T18:53:19.327+00:00][INFO ][plugins.reporting.runTask] Saved printable_pdf job /.reporting-2021-10-17/_doc/kux0mlu18f0y3964fa3v67v6
[00:02:29]             │ debg checking report status at /api/reporting/jobs/download/kux0mlu18f0y3964fa3v67v6...
[00:02:29]             │ debg report at /api/reporting/jobs/download/kux0mlu18f0y3964fa3v67v6 is done
[00:02:29]             └- ✓ pass  (10.1s)
[00:02:29]           └-: CSV saved search export
[00:02:29]             └-> "before all" hook for "should use formats from the default space"
[00:02:29]             └-> should use formats from the default space
[00:02:29]               └-> "before each" hook: global before each for "should use formats from the default space"
[00:02:29]               │ debg applying update to kibana config: {"csv:separator":",","dateFormat:tz":"UTC"}
[00:02:29]               │ debg ReportingAPI.postJobJSON((/api/reporting/generate/csv): {"jobParams":"(conflictedTypesFields:!(),fields:!(order_date,order_date,customer_full_name,taxful_total_price),indexPatternId:aac3e500-f2c7-11ea-8250-fb138aa491e7,metaFields:!(_source,_id,_type,_index,_score),objectType:search,searchRequest:(body:(_source:(includes:!(order_date,customer_full_name,taxful_total_price)),docvalue_fields:!((field:order_date,format:date_time)),query:(bool:(filter:!((match_all:()),(range:(order_date:(format:strict_date_optional_time,gte:'2019-06-11T04:49:43.495Z',lte:'2019-07-14T10:25:34.149Z')))),must:!(),must_not:!(),should:!())),script_fields:(),sort:!((order_date:(order:desc,unmapped_type:boolean))),stored_fields:!(order_date,customer_full_name,taxful_total_price),version:!t),index:'ec*'),title:'EC SEARCH')"})
[00:02:29]               │ proc [kibana] [2021-10-18T18:53:20.600+00:00][WARN ][plugins.reporting] No version provided in report job params. Assuming 7.14.0
[00:02:29]               │ proc [kibana] [2021-10-18T18:53:20.601+00:00][WARN ][plugins.reporting.csv] The "/generate/csv" endpoint is deprecated and will be removed in Kibana 8.0. Please recreate the POST URL used to automate this CSV export.
[00:02:29]               │ proc [kibana] [2021-10-18T18:53:20.627+00:00][INFO ][plugins.reporting] Scheduled CSV reporting task. Task ID: task:a9cb5ff0-3044-11ec-bd05-37edea894591. Report ID: kux0mtlu8f0y3964fa52yo00
[00:02:31]               │ debg checking report status at /api/reporting/jobs/download/kux0mtlu8f0y3964fa52yo00...
[00:02:32]               │ proc [kibana] [2021-10-18T18:53:23.804+00:00][WARN ][plugins.reporting.runTask.csv.kux0mtlu8f0y3964fa52yo00] max Size Reached
[00:02:32]               │ proc [kibana] [2021-10-18T18:53:23.828+00:00][INFO ][plugins.reporting.runTask] Saved csv job /.reporting-2021-10-17/_doc/kux0mtlu8f0y3964fa52yo00
[00:02:33]               │ debg checking report status at /api/reporting/jobs/download/kux0mtlu8f0y3964fa52yo00...
[00:02:33]               │ debg report at /api/reporting/jobs/download/kux0mtlu8f0y3964fa52yo00 is done
[00:02:33]               └- ✓ pass  (4.1s)
[00:02:33]             └-> should use formats from non-default spaces
[00:02:33]               └-> "before each" hook: global before each for "should use formats from non-default spaces"
[00:02:33]               │ debg ReportingAPI.postJobJSON((/s/non_default_space/api/reporting/generate/csv): {"jobParams":"(conflictedTypesFields:!(),fields:!(order_date,category,customer_first_name,customer_full_name,total_quantity,total_unique_products,taxless_total_price,taxful_total_price,currency),indexPatternId:'067dec90-e7ee-11ea-a730-d58e9ea7581b',metaFields:!(_source,_id,_type,_index,_score),objectType:search,searchRequest:(body:(_source:(includes:!(order_date,category,customer_first_name,customer_full_name,total_quantity,total_unique_products,taxless_total_price,taxful_total_price,currency)),docvalue_fields:!((field:order_date,format:date_time)),query:(bool:(filter:!((match_all:()),(range:(order_date:(format:strict_date_optional_time,gte:'2019-06-11T08:24:16.425Z',lte:'2019-07-13T09:31:07.520Z')))),must:!(),must_not:!(),should:!())),script_fields:(),sort:!((order_date:(order:desc,unmapped_type:boolean))),stored_fields:!(order_date,category,customer_first_name,customer_full_name,total_quantity,total_unique_products,taxless_total_price,taxful_total_price,currency),version:!t),index:'ecommerce*'),title:'Ecom Search')"})
[00:02:33]               │ proc [kibana] [2021-10-18T18:53:25.300+00:00][WARN ][plugins.reporting] No version provided in report job params. Assuming 7.14.0
[00:02:33]               │ proc [kibana] [2021-10-18T18:53:25.301+00:00][WARN ][plugins.reporting.csv] The "/generate/csv" endpoint is deprecated and will be removed in Kibana 8.0. Please recreate the POST URL used to automate this CSV export.
[00:02:33]               │ proc [kibana] [2021-10-18T18:53:25.305+00:00][ERROR][plugins.reporting] Error: Saved object [index-pattern/067dec90-e7ee-11ea-a730-d58e9ea7581b] not found
[00:02:33]               │ proc [kibana]     at Function.createGenericNotFoundError (/dev/shm/workspace/kibana-build-11/src/core/server/saved_objects/service/lib/errors.js:125:37)
[00:02:33]               │ proc [kibana]     at SavedObjectsRepository.get (/dev/shm/workspace/kibana-build-11/src/core/server/saved_objects/service/lib/repository.js:1108:46)
[00:02:33]               │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:02:33]               │ proc [kibana]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[00:02:33]               │ proc [kibana]     at SavedObjectsClient.get (/dev/shm/workspace/kibana-build-11/src/core/server/saved_objects/service/saved_objects_client.js:116:12)
[00:02:33]               │ proc [kibana]     at EncryptedSavedObjectsClientWrapper.get (/dev/shm/workspace/kibana-build-11/x-pack/plugins/encrypted_saved_objects/server/saved_objects/encrypted_saved_objects_client_wrapper.js:115:59)
[00:02:33]               │ proc [kibana]     at SecureSavedObjectsClientWrapper.get (/dev/shm/workspace/kibana-build-11/x-pack/plugins/security/server/saved_objects/secure_saved_objects_client_wrapper.js:313:25)
[00:02:33]               │ proc [kibana]     at SpacesSavedObjectsClient.get (/dev/shm/workspace/kibana-build-11/x-pack/plugins/spaces/server/saved_objects/spaces_saved_objects_client.js:195:12)
[00:02:33]               │ proc [kibana]     at createJob (/dev/shm/workspace/kibana-build-11/x-pack/plugins/reporting/server/export_types/csv/create_job.js:18:37)
[00:02:33]               │ proc [kibana]     at async Promise.all (index 1)
[00:02:33]               │ proc [kibana]     at RequestHandler.enqueueJob (/dev/shm/workspace/kibana-build-11/x-pack/plugins/reporting/server/routes/lib/request_handler.js:85:28)
[00:02:33]               │ proc [kibana]     at RequestHandler.handleGenerateRequest (/dev/shm/workspace/kibana-build-11/x-pack/plugins/reporting/server/routes/lib/request_handler.js:131:22)
[00:02:33]               │ proc [kibana]     at /dev/shm/workspace/kibana-build-11/x-pack/plugins/reporting/server/routes/generate/generate_from_jobparams.js:111:14
[00:02:33]               │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-11/src/core/server/http/router/router.js:163:30)
[00:02:33]               │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-11/src/core/server/http/router/router.js:124:50)
[00:02:33]               │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-11/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:02:35]               │ debg checking report status at undefined...
[00:02:35]               └- ✖ fail: Reporting APIs Exports and Spaces CSV saved search export should use formats from non-default spaces
[00:02:35]               │      TypeError: The "urlObject" argument must be one of type object or string. Received undefined
[00:02:35]               │       at new NodeError (node:internal/errors:371:5)
[00:02:35]               │       at urlFormat (node:url:554:11)
[00:02:35]               │       at Test.Request (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:136:37)
[00:02:35]               │       at new Test (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/lib/test.js:29:11)
[00:02:35]               │       at Object.get (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/index.js:25:14)
[00:02:35]               │       at SwitchMapSubscriber.project (test/reporting_api_integration/reporting_and_security/spaces.ts:32:33)
[00:02:35]               │       at SwitchMapSubscriber._next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/operators/switchMap.ts:121:21)
[00:02:35]               │       at SwitchMapSubscriber.Subscriber.next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
[00:02:35]               │       at TapSubscriber._next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/operators/tap.ts:125:22)
[00:02:35]               │       at TapSubscriber.Subscriber.next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
[00:02:35]               │       at AsyncAction.dispatch (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/observable/interval.ts:75:14)
[00:02:35]               │       at AsyncAction._execute (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts:122:12)
[00:02:35]               │       at AsyncAction.execute (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts:97:24)
[00:02:35]               │       at AsyncScheduler.flush (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts:58:26)
[00:02:35]               │       at listOnTimeout (node:internal/timers:557:17)
[00:02:35]               │       at processTimers (node:internal/timers:500:7)
[00:02:35]               │ 
[00:02:35]               │ 

Stack Trace

TypeError: The "urlObject" argument must be one of type object or string. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at urlFormat (node:url:554:11)
    at Test.Request (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:136:37)
    at new Test (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/lib/test.js:29:11)
    at Object.get (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/index.js:25:14)
    at SwitchMapSubscriber.project (test/reporting_api_integration/reporting_and_security/spaces.ts:32:33)
    at SwitchMapSubscriber._next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/operators/switchMap.ts:121:21)
    at SwitchMapSubscriber.Subscriber.next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at TapSubscriber._next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/operators/tap.ts:125:22)
    at TapSubscriber.Subscriber.next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at AsyncAction.dispatch (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/observable/interval.ts:75:14)
    at AsyncAction._execute (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts:122:12)
    at AsyncAction.execute (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts:97:24)
    at AsyncScheduler.flush (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts:58:26)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Kibana Pipeline / general / X-Pack Reporting API Integration Tests.x-pack/test/reporting_api_integration/reporting_and_security/spaces·ts.Reporting APIs Exports and Spaces CSV saved search export should use formats from non-default spaces

Link to Jenkins

Standard Out

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

[00:00:00]     │
[00:00:00]       └-: Reporting APIs
[00:00:00]         └-> "before all" hook in "Reporting APIs"
[00:00:00]         └-> "before all" hook in "Reporting APIs"
[00:00:00]           │ debg creating role data_analyst
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [data_analyst]
[00:00:00]           │ debg creating role test_reporting_user
[00:00:00]           │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [test_reporting_user]
[00:00:00]           │ debg creating user data_analyst
[00:00:00]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [data_analyst]
[00:00:00]           │ debg created user data_analyst
[00:00:00]           │ debg creating user reporting_user
[00:00:00]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [reporting_user]
[00:00:00]           │ debg created user reporting_user
[00:02:18]         └-: Exports and Spaces
[00:02:18]           └-> "before all" hook for "should complete a job of PNG export of a dashboard in non-default space"
[00:02:18]           └-> "before all" hook for "should complete a job of PNG export of a dashboard in non-default space"
[00:02:18]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Loading "mappings.json"
[00:02:18]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Loading "data.json.gz"
[00:02:18]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [ecommerce] creating index, cause [api], templates [], shards [1]/[0]
[00:02:18]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Created index "ecommerce"
[00:02:18]             │ debg [x-pack/test/functional/es_archives/reporting/ecommerce] "ecommerce" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:19]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Indexed 4675 docs into "ecommerce"
[00:02:19]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Loading "mappings.json"
[00:02:19]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Loading "data.json"
[00:02:19]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/sB0-L38bQV6V4qVFn7fUyA] deleting index
[00:02:19]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/S4un8m0kQjCHrPROLVxnZA] deleting index
[00:02:19]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/R45RW57oRhOSy-9W-w08Fw] deleting index
[00:02:20]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Deleted existing index ".kibana_8.0.0_001"
[00:02:20]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:02:20]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Deleted existing index ".kibana_1"
[00:02:20]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:02:20]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Created index ".kibana_1"
[00:02:20]             │ debg [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:02:20]             │ info [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Indexed 13 docs into ".kibana_1"
[00:02:20]             │ debg Migrating saved objects
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.724+00:00][INFO ][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 8ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.726+00:00][INFO ][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 12ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.729+00:00][INFO ][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 3ms.
[00:02:20]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:20]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.735+00:00][INFO ][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 6ms.
[00:02:20]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/jQ6kGzX5R_C5ah_XTyLDmQ]]
[00:02:20]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.792+00:00][INFO ][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 68ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.807+00:00][INFO ][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 71ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.811+00:00][INFO ][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 5ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.824+00:00][INFO ][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 32ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.824+00:00][INFO ][savedobjects-service] [.kibana_task_manager] Migration completed after 108ms
[00:02:20]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:02:20]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.872+00:00][INFO ][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 61ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.876+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.882+00:00][INFO ][savedobjects-service] [.kibana] Starting to process 13 documents.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.882+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_TRANSFORM. took: 6ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:11.890+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_TRANSFORM -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 8ms.
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/H4HvEgXOR6KUxqszIfPVIQ] update_mapping [_doc]
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/H4HvEgXOR6KUxqszIfPVIQ] update_mapping [_doc]
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/H4HvEgXOR6KUxqszIfPVIQ] update_mapping [_doc]
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/H4HvEgXOR6KUxqszIfPVIQ] update_mapping [_doc]
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/H4HvEgXOR6KUxqszIfPVIQ] update_mapping [_doc]
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.014+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 124ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.020+00:00][INFO ][savedobjects-service] [.kibana] Processed 13 documents out of 13.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.020+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.023+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 2ms.
[00:02:20]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/H4HvEgXOR6KUxqszIfPVIQ]]
[00:02:20]             │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.061+00:00][INFO ][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 39ms.
[00:02:20]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:02:20]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:02:20]             │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/0rrxrY8ARMeo4r9BePe4ng] create_mapping
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.153+00:00][INFO ][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 92ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.156+00:00][INFO ][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 3ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.158+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 2ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.164+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 6ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.166+00:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 2ms.
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/0rrxrY8ARMeo4r9BePe4ng] update_mapping [_doc]
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.219+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 53ms.
[00:02:20]             │ info [o.e.t.LoggingTaskListener] [node-01] 13680 finished with response BulkByScrollResponse[took=17.7ms,timed_out=false,sliceId=null,updated=17,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.323+00:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 104ms.
[00:02:20]             │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/H4HvEgXOR6KUxqszIfPVIQ] deleting index
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.367+00:00][INFO ][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 44ms.
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.367+00:00][INFO ][savedobjects-service] [.kibana] Migration completed after 653ms
[00:02:20]             │ debg [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Migrated Kibana index after loading Kibana data
[00:02:20]             │ debg [x-pack/test/functional/es_archives/reporting/ecommerce_kibana_spaces] Ensured that default space exists in .kibana
[00:02:20]           └-> should complete a job of PNG export of a dashboard in non-default space
[00:02:20]             └-> "before each" hook: global before each for "should complete a job of PNG export of a dashboard in non-default space"
[00:02:20]             │ debg ReportingAPI.postJobJSON((/s/non_default_space/api/reporting/generate/png): {"jobParams":"(browserTimezone:UTC,layout:(dimensions:(height:512,width:2402),id:png),objectType:dashboard,relativeUrl:'/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters:!!(),refreshInterval:(pause:!!t,value:0),time:(from:!'2019-06-10T03:17:28.800Z!',to:!'2019-07-14T19:25:06.385Z!'))&_a=(description:!'!',filters:!!(),fullScreenMode:!!f,options:(hidePanelTitles:!!f,useMargins:!!t),query:(language:kuery,query:!'!'),timeRestore:!!t,title:!'Ecom%20Dashboard%20Non%20Default%20Space!',viewMode:view)',title:'Ecom Dashboard Non Default Space')"})
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.390+00:00][WARN ][plugins.reporting] No version provided in report job params. Assuming 7.14.0
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.404+00:00][INFO ][plugins.reporting] Request uses Space ID: non_default_space
[00:02:20]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/Q9_uXFXCQp-Ktpk48VwNMg] update_mapping [_doc]
[00:02:20]             │ proc [kibana] [2021-10-18T17:50:12.455+00:00][INFO ][plugins.reporting] Scheduled PNG reporting task. Task ID: task:d7d97840-303b-11ec-95cf-e5c3c3a0b0e8. Report ID: kuwydmlx5izl3964fa1oed24
[00:02:22]             │ proc [kibana] [2021-10-18T17:50:13.677+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kuwydmlx5izl3964fa1oed24.browser-driver] Creating browser page driver
[00:02:22]             │ proc [kibana] [2021-10-18T17:50:14.076+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kuwydmlx5izl3964fa1oed24] opening url http://localhost:61111/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-06-10T03%3A17%3A28.800Z'%2Cto%3A'2019-07-14T19%3A25%3A06.385Z'))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!t%2Ctitle%3A'Ecom%20Dashboard%20Non%20Default%20Space'%2CviewMode%3Aview)&forceNow=2021-10-18T17%3A50%3A12.391Z
[00:02:22]             │ debg checking report status at /api/reporting/jobs/download/kuwydmlx5izl3964fa1oed24...
[00:02:23]             │ proc [kibana] [2021-10-18T17:50:15.146+00:00][ERROR][plugins.reporting.runTask.png.PNG.execute.kuwydmlx5izl3964fa1oed24.browser-driver.headless-browser-console] Error in browser console: { text: "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.", url: http://localhost:61111/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-06-10T03%3A17%3A28.800Z'%2Cto%3A'2019-07-14T19%3A25%3A06.385Z'))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!t%2Ctitle%3A'Ecom%20Dashboard%20Non%20Default%20Space'%2CviewMode%3Aview)&forceNow=2021-10-18T17%3A50%3A12.391Z }
[00:02:24]             │ debg checking report status at /api/reporting/jobs/download/kuwydmlx5izl3964fa1oed24...
[00:02:26]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/0rrxrY8ARMeo4r9BePe4ng] update_mapping [_doc]
[00:02:26]             │ proc [kibana] [2021-10-18T17:50:18.250+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kuwydmlx5izl3964fa1oed24] handled 160 page requests
[00:02:26]             │ debg checking report status at /api/reporting/jobs/download/kuwydmlx5izl3964fa1oed24...
[00:02:28]             │ proc [kibana] [2021-10-18T17:50:20.160+00:00][WARN ][plugins.reporting.runTask.png.PNG.execute.kuwydmlx5izl3964fa1oed24.browser-driver] Request to [http://localhost:61111/s/non_default_space/internal/bsearch?compress=true] failed! [net::ERR_ABORTED]. This error will be ignored.
[00:02:28]             │ debg checking report status at /api/reporting/jobs/download/kuwydmlx5izl3964fa1oed24...
[00:02:29]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/0rrxrY8ARMeo4r9BePe4ng] update_mapping [_doc]
[00:02:30]             │ debg checking report status at /api/reporting/jobs/download/kuwydmlx5izl3964fa1oed24...
[00:02:31]             │ proc [kibana] [2021-10-18T17:50:22.712+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kuwydmlx5izl3964fa1oed24] timeRange: Jun 10, 2019 @ 03:17:28.800 to Jul 14, 2019 @ 19:25:06.385
[00:02:31]             │ proc [kibana] [2021-10-18T17:50:22.716+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kuwydmlx5izl3964fa1oed24] taking screenshots
[00:02:32]             │ proc [kibana] [2021-10-18T17:50:23.800+00:00][INFO ][plugins.reporting.runTask.png.PNG.execute.kuwydmlx5izl3964fa1oed24] screenshots taken: 1
[00:02:32]             │ proc [kibana] [2021-10-18T17:50:23.896+00:00][INFO ][plugins.reporting.runTask] Saved PNG job /.reporting-2021-10-17/_doc/kuwydmlx5izl3964fa1oed24
[00:02:32]             │ debg checking report status at /api/reporting/jobs/download/kuwydmlx5izl3964fa1oed24...
[00:02:32]             │ debg report at /api/reporting/jobs/download/kuwydmlx5izl3964fa1oed24 is done
[00:02:32]             └- ✓ pass  (12.1s)
[00:02:32]           └-> should complete a job of PDF export of a dashboard in non-default space
[00:02:32]             └-> "before each" hook: global before each for "should complete a job of PDF export of a dashboard in non-default space"
[00:02:32]             │ debg ReportingAPI.postJobJSON((/s/non_default_space/api/reporting/generate/printablePdf): {"jobParams":"(browserTimezone:UTC,layout:(dimensions:(height:512,width:2402),id:preserve_layout),objectType:dashboard,relativeUrls:!('/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters:!!(),refreshInterval:(pause:!!t,value:0),time:(from:!'2019-06-10T03:17:28.800Z!',to:!'2019-07-14T19:25:06.385Z!'))&_a=(description:!'!',filters:!!(),fullScreenMode:!!f,options:(hidePanelTitles:!!f,useMargins:!!t),query:(language:kuery,query:!'!'),timeRestore:!!t,title:!'Ecom%20Dashboard%20Non%20Default%20Space!',viewMode:view)'),title:'Ecom Dashboard Non Default Space')"})
[00:02:32]             │ proc [kibana] [2021-10-18T17:50:24.504+00:00][WARN ][plugins.reporting] No version provided in report job params. Assuming 7.14.0
[00:02:32]             │ proc [kibana] [2021-10-18T17:50:24.514+00:00][INFO ][plugins.reporting] Request uses Space ID: non_default_space
[00:02:32]             │ proc [kibana] [2021-10-18T17:50:24.535+00:00][INFO ][plugins.reporting] Scheduled PDF reporting task. Task ID: task:df114f20-303b-11ec-95cf-e5c3c3a0b0e8. Report ID: kuwydvyb5izl3964fa3i1apo
[00:02:34]             │ proc [kibana] [2021-10-18T17:50:25.663+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo] Generating request for space: non_default_space
[00:02:34]             │ proc [kibana] [2021-10-18T17:50:25.663+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo] Request uses Space ID: non_default_space
[00:02:34]             │ proc [kibana] [2021-10-18T17:50:25.664+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo] Creating UI Settings Client for space: non_default_space
[00:02:34]             │ proc [kibana] [2021-10-18T17:50:25.675+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo.browser-driver] Creating browser page driver
[00:02:34]             │ proc [kibana] [2021-10-18T17:50:26.106+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo] opening url http://localhost:61111/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-06-10T03%3A17%3A28.800Z'%2Cto%3A'2019-07-14T19%3A25%3A06.385Z'))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!t%2Ctitle%3A'Ecom%20Dashboard%20Non%20Default%20Space'%2CviewMode%3Aview)&forceNow=2021-10-18T17%3A50%3A24.505Z
[00:02:34]             │ proc [kibana] [2021-10-18T17:50:26.193+00:00][ERROR][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo.browser-driver.headless-browser-console] Error in browser console: { text: "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.", url: http://localhost:61111/s/non_default_space/app/dashboards#/view/3c9ee360-e7ee-11ea-a730-d58e9ea7581b?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-06-10T03%3A17%3A28.800Z'%2Cto%3A'2019-07-14T19%3A25%3A06.385Z'))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!t%2Ctitle%3A'Ecom%20Dashboard%20Non%20Default%20Space'%2CviewMode%3Aview)&forceNow=2021-10-18T17%3A50%3A24.505Z }
[00:02:34]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/0rrxrY8ARMeo4r9BePe4ng] update_mapping [_doc]
[00:02:34]             │ debg checking report status at /api/reporting/jobs/download/kuwydvyb5izl3964fa3i1apo...
[00:02:36]             │ debg checking report status at /api/reporting/jobs/download/kuwydvyb5izl3964fa3i1apo...
[00:02:37]             │ proc [kibana] [2021-10-18T17:50:29.324+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo] handled 160 page requests
[00:02:38]             │ debg checking report status at /api/reporting/jobs/download/kuwydvyb5izl3964fa3i1apo...
[00:02:40]             │ proc [kibana] [2021-10-18T17:50:31.849+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo] timeRange: Jun 10, 2019 @ 03:17:28.800 to Jul 14, 2019 @ 19:25:06.385
[00:02:40]             │ proc [kibana] [2021-10-18T17:50:31.853+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo] taking screenshots
[00:02:40]             │ debg checking report status at /api/reporting/jobs/download/kuwydvyb5izl3964fa3i1apo...
[00:02:41]             │ proc [kibana] [2021-10-18T17:50:33.008+00:00][INFO ][plugins.reporting.runTask.printablePdf.printable_pdf.execute-job.kuwydvyb5izl3964fa3i1apo] screenshots taken: 1
[00:02:42]             │ proc [kibana] [2021-10-18T17:50:34.010+00:00][INFO ][plugins.reporting.runTask] Saved printable_pdf job /.reporting-2021-10-17/_doc/kuwydvyb5izl3964fa3i1apo
[00:02:42]             │ debg checking report status at /api/reporting/jobs/download/kuwydvyb5izl3964fa3i1apo...
[00:02:43]             │ debg report at /api/reporting/jobs/download/kuwydvyb5izl3964fa3i1apo is done
[00:02:43]             └- ✓ pass  (10.2s)
[00:02:43]           └-: CSV saved search export
[00:02:43]             └-> "before all" hook for "should use formats from the default space"
[00:02:43]             └-> should use formats from the default space
[00:02:43]               └-> "before each" hook: global before each for "should use formats from the default space"
[00:02:43]               │ debg applying update to kibana config: {"csv:separator":",","dateFormat:tz":"UTC"}
[00:02:43]               │ debg ReportingAPI.postJobJSON((/api/reporting/generate/csv): {"jobParams":"(conflictedTypesFields:!(),fields:!(order_date,order_date,customer_full_name,taxful_total_price),indexPatternId:aac3e500-f2c7-11ea-8250-fb138aa491e7,metaFields:!(_source,_id,_type,_index,_score),objectType:search,searchRequest:(body:(_source:(includes:!(order_date,customer_full_name,taxful_total_price)),docvalue_fields:!((field:order_date,format:date_time)),query:(bool:(filter:!((match_all:()),(range:(order_date:(format:strict_date_optional_time,gte:'2019-06-11T04:49:43.495Z',lte:'2019-07-14T10:25:34.149Z')))),must:!(),must_not:!(),should:!())),script_fields:(),sort:!((order_date:(order:desc,unmapped_type:boolean))),stored_fields:!(order_date,customer_full_name,taxful_total_price),version:!t),index:'ec*'),title:'EC SEARCH')"})
[00:02:43]               │ proc [kibana] [2021-10-18T17:50:34.908+00:00][WARN ][plugins.reporting] No version provided in report job params. Assuming 7.14.0
[00:02:43]               │ proc [kibana] [2021-10-18T17:50:34.912+00:00][WARN ][plugins.reporting.csv] The "/generate/csv" endpoint is deprecated and will be removed in Kibana 8.0. Please recreate the POST URL used to automate this CSV export.
[00:02:43]               │ proc [kibana] [2021-10-18T17:50:35.141+00:00][INFO ][plugins.reporting] Scheduled CSV reporting task. Task ID: task:e5624870-303b-11ec-95cf-e5c3c3a0b0e8. Report ID: kuwye43b5izl3964fackahs7
[00:02:45]               │ debg checking report status at /api/reporting/jobs/download/kuwye43b5izl3964fackahs7...
[00:02:46]               │ proc [kibana] [2021-10-18T17:50:37.805+00:00][WARN ][plugins.reporting.runTask.csv.kuwye43b5izl3964fackahs7] max Size Reached
[00:02:46]               │ proc [kibana] [2021-10-18T17:50:37.845+00:00][INFO ][plugins.reporting.runTask] Saved csv job /.reporting-2021-10-17/_doc/kuwye43b5izl3964fackahs7
[00:02:47]               │ debg checking report status at /api/reporting/jobs/download/kuwye43b5izl3964fackahs7...
[00:02:47]               │ debg report at /api/reporting/jobs/download/kuwye43b5izl3964fackahs7 is done
[00:02:47]               └- ✓ pass  (4.5s)
[00:02:47]             └-> should use formats from non-default spaces
[00:02:47]               └-> "before each" hook: global before each for "should use formats from non-default spaces"
[00:02:48]               │ debg ReportingAPI.postJobJSON((/s/non_default_space/api/reporting/generate/csv): {"jobParams":"(conflictedTypesFields:!(),fields:!(order_date,category,customer_first_name,customer_full_name,total_quantity,total_unique_products,taxless_total_price,taxful_total_price,currency),indexPatternId:'067dec90-e7ee-11ea-a730-d58e9ea7581b',metaFields:!(_source,_id,_type,_index,_score),objectType:search,searchRequest:(body:(_source:(includes:!(order_date,category,customer_first_name,customer_full_name,total_quantity,total_unique_products,taxless_total_price,taxful_total_price,currency)),docvalue_fields:!((field:order_date,format:date_time)),query:(bool:(filter:!((match_all:()),(range:(order_date:(format:strict_date_optional_time,gte:'2019-06-11T08:24:16.425Z',lte:'2019-07-13T09:31:07.520Z')))),must:!(),must_not:!(),should:!())),script_fields:(),sort:!((order_date:(order:desc,unmapped_type:boolean))),stored_fields:!(order_date,category,customer_first_name,customer_full_name,total_quantity,total_unique_products,taxless_total_price,taxful_total_price,currency),version:!t),index:'ecommerce*'),title:'Ecom Search')"})
[00:02:48]               │ proc [kibana] [2021-10-18T17:50:40.226+00:00][WARN ][plugins.reporting] No version provided in report job params. Assuming 7.14.0
[00:02:48]               │ proc [kibana] [2021-10-18T17:50:40.227+00:00][WARN ][plugins.reporting.csv] The "/generate/csv" endpoint is deprecated and will be removed in Kibana 8.0. Please recreate the POST URL used to automate this CSV export.
[00:02:48]               │ proc [kibana] [2021-10-18T17:50:40.239+00:00][ERROR][plugins.reporting] Error: Saved object [index-pattern/067dec90-e7ee-11ea-a730-d58e9ea7581b] not found
[00:02:48]               │ proc [kibana]     at Function.createGenericNotFoundError (/dev/shm/workspace/kibana-build-11/src/core/server/saved_objects/service/lib/errors.js:125:37)
[00:02:48]               │ proc [kibana]     at SavedObjectsRepository.get (/dev/shm/workspace/kibana-build-11/src/core/server/saved_objects/service/lib/repository.js:1108:46)
[00:02:48]               │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:02:48]               │ proc [kibana]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[00:02:48]               │ proc [kibana]     at SavedObjectsClient.get (/dev/shm/workspace/kibana-build-11/src/core/server/saved_objects/service/saved_objects_client.js:116:12)
[00:02:48]               │ proc [kibana]     at EncryptedSavedObjectsClientWrapper.get (/dev/shm/workspace/kibana-build-11/x-pack/plugins/encrypted_saved_objects/server/saved_objects/encrypted_saved_objects_client_wrapper.js:115:59)
[00:02:48]               │ proc [kibana]     at SecureSavedObjectsClientWrapper.get (/dev/shm/workspace/kibana-build-11/x-pack/plugins/security/server/saved_objects/secure_saved_objects_client_wrapper.js:313:25)
[00:02:48]               │ proc [kibana]     at SpacesSavedObjectsClient.get (/dev/shm/workspace/kibana-build-11/x-pack/plugins/spaces/server/saved_objects/spaces_saved_objects_client.js:195:12)
[00:02:48]               │ proc [kibana]     at createJob (/dev/shm/workspace/kibana-build-11/x-pack/plugins/reporting/server/export_types/csv/create_job.js:18:37)
[00:02:48]               │ proc [kibana]     at async Promise.all (index 1)
[00:02:48]               │ proc [kibana]     at RequestHandler.enqueueJob (/dev/shm/workspace/kibana-build-11/x-pack/plugins/reporting/server/routes/lib/request_handler.js:85:28)
[00:02:48]               │ proc [kibana]     at RequestHandler.handleGenerateRequest (/dev/shm/workspace/kibana-build-11/x-pack/plugins/reporting/server/routes/lib/request_handler.js:131:22)
[00:02:48]               │ proc [kibana]     at /dev/shm/workspace/kibana-build-11/x-pack/plugins/reporting/server/routes/generate/generate_from_jobparams.js:111:14
[00:02:48]               │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-11/src/core/server/http/router/router.js:163:30)
[00:02:48]               │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-11/src/core/server/http/router/router.js:124:50)
[00:02:48]               │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-11/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:02:50]               │ debg checking report status at undefined...
[00:02:50]               └- ✖ fail: Reporting APIs Exports and Spaces CSV saved search export should use formats from non-default spaces
[00:02:50]               │      TypeError: The "urlObject" argument must be one of type object or string. Received undefined
[00:02:50]               │       at new NodeError (node:internal/errors:371:5)
[00:02:50]               │       at urlFormat (node:url:554:11)
[00:02:50]               │       at Test.Request (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:136:37)
[00:02:50]               │       at new Test (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/lib/test.js:29:11)
[00:02:50]               │       at Object.get (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/index.js:25:14)
[00:02:50]               │       at SwitchMapSubscriber.project (test/reporting_api_integration/reporting_and_security/spaces.ts:32:33)
[00:02:50]               │       at SwitchMapSubscriber._next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/operators/switchMap.ts:121:21)
[00:02:50]               │       at SwitchMapSubscriber.Subscriber.next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
[00:02:50]               │       at TapSubscriber._next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/operators/tap.ts:125:22)
[00:02:50]               │       at TapSubscriber.Subscriber.next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
[00:02:50]               │       at AsyncAction.dispatch (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/observable/interval.ts:75:14)
[00:02:50]               │       at AsyncAction._execute (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts:122:12)
[00:02:50]               │       at AsyncAction.execute (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts:97:24)
[00:02:50]               │       at AsyncScheduler.flush (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts:58:26)
[00:02:50]               │       at listOnTimeout (node:internal/timers:557:17)
[00:02:50]               │       at processTimers (node:internal/timers:500:7)
[00:02:50]               │ 
[00:02:50]               │ 

Stack Trace

TypeError: The "urlObject" argument must be one of type object or string. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at urlFormat (node:url:554:11)
    at Test.Request (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:136:37)
    at new Test (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/lib/test.js:29:11)
    at Object.get (/dev/shm/workspace/parallel/11/kibana/node_modules/supertest/index.js:25:14)
    at SwitchMapSubscriber.project (test/reporting_api_integration/reporting_and_security/spaces.ts:32:33)
    at SwitchMapSubscriber._next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/operators/switchMap.ts:121:21)
    at SwitchMapSubscriber.Subscriber.next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at TapSubscriber._next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/operators/tap.ts:125:22)
    at TapSubscriber.Subscriber.next (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/Subscriber.ts:99:12)
    at AsyncAction.dispatch (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/observable/interval.ts:75:14)
    at AsyncAction._execute (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts:122:12)
    at AsyncAction.execute (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts:97:24)
    at AsyncScheduler.flush (/dev/shm/workspace/parallel/11/kibana/node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts:58:26)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Metrics [docs]

✅ unchanged

History

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

@jportner
Copy link
Contributor

@elasticmachine merge upstream

@jportner
Copy link
Contributor

jportner commented Oct 21, 2021

💛 Build succeeded, but was flaky

Looking at the build, it was flaky because an OOM due to a chromedriver problem:

│ warn ...retrying...
--
  | │ warn Failure while creating webdriver instance
  | │ warn Error: The specified executable path does not exist: /opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/node_modules/chromedriver/lib/chromedriver/chromedriver
  | │          at new DriverService.Builder (/opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/node_modules/selenium-webdriver/remote/index.js:318:13)
  | │          at new ServiceBuilder (/opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/node_modules/selenium-webdriver/chromium.js:190:5)
  | │          at new ServiceBuilder (/opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/node_modules/selenium-webdriver/chrome.js:168:5)
  | │          at buildDriverInstance (/opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/test/functional/services/remote/webdriver.ts:158:31)
  | │          at attemptToCreateCommand (/opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/test/functional/services/remote/webdriver.ts:288:42)
  | │          at /opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/test/functional/services/remote/webdriver.ts:343:31
  | │          at Observable._subscribe (/opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/node_modules/rxjs/src/internal/observable/defer.ts:59:15)
  | │          at Observable._trySubscribe (/opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/node_modules/rxjs/src/internal/Observable.ts:238:19)
  | │          at Observable.subscribe (/opt/local-ssd/buildkite/builds/kb-cigroup-4d-8460a53dddeabbfd/elastic/kibana-pull-request/kibana/node_modules/rxjs/src/internal/Observable.ts:219:14)
  |  
  | <--- Last few GCs --->
  |  
  | [4317:0x62d6570]   612626 ms: Mark-sweep 3887.2 (4128.8) -> 3870.5 (4127.3) MB, 2410.5 / 0.1 ms  (average mu = 0.124, current mu = 0.089) allocation failure scavenge might not succeed
  | [4317:0x62d6570]   612675 ms: Scavenge 3886.5 (4127.3) -> 3872.4 (4127.3) MB, 8.9 / 0.0 ms  (average mu = 0.124, current mu = 0.089) allocation failure
  | [4317:0x62d6570]   612726 ms: Scavenge 3886.6 (4127.3) -> 3873.8 (4128.5) MB, 15.3 / 0.0 ms  (average mu = 0.124, current mu = 0.089) allocation failure
  |  
  |  
  | <--- JS stacktrace --->
  |  
  | FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
  | 1: 0xb03020 node::Abort() [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 2: 0xa181fb node::FatalError(char const*, char const*) [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 3: 0xced8de v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 4: 0xcedc57 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 5: 0xea5ef5  [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 6: 0xea69d6  [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 7: 0xeb490e  [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 8: 0xeb5350 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 9: 0xeb82ce v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 10: 0xe796fa v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 11: 0x11f2ed6 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | 12: 0x15e78d9  [/var/lib/buildkite-agent/.kibana/node/16.11.1/bin/node]
  | GitHub checks API - 14408 remaining out of 15000/hour
  | Done in 622.51s.

seems like a transient error that is completely unrelated to this change. so I'd say this PR is good to go 👍

@jportner jportner marked this pull request as ready for review October 21, 2021 17:39
@jportner jportner requested review from a team as code owners October 21, 2021 17:39
Copy link
Contributor

@jportner jportner left a comment

Choose a reason for hiding this comment

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

Spaces API test changes LGTM

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

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

code LGTM

@jportner
Copy link
Contributor

@elasticmachine merge upstream

@jportner
Copy link
Contributor

Matt is out atm, so I'll merge this PR for him 👍

@jportner jportner enabled auto-merge (squash) October 25, 2021 13:58
@jportner jportner merged commit 1e718a5 into elastic:master Oct 25, 2021
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:skip Skip the PR/issue when compiling release notes v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make index pattern saved object "share-capable"
4 participants