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

[Maps] Replace mapbox-gl import with maplibre-gl #104505

Merged
merged 19 commits into from
Aug 30, 2021

Conversation

thomasneirynck
Copy link
Contributor

@thomasneirynck thomasneirynck commented Jul 6, 2021

Closes #108742.

Replaces mapbox-gl v1.13.1 with maplibre-gl v1.15.2.

@thomasneirynck
Copy link
Contributor Author

Revealed #104518

@thomasneirynck
Copy link
Contributor Author

drop in replacement seems to fail. compilation tripping over the addProtocol/removeProtocol exports from maplibre.

https://github.com/elastic/kibana/pull/104505/checks?check_run_id=3001756317

ERROR x-pack/test failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR packages/kbn-mapbox-gl failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR src/plugins/vis_type_vega failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/apm failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/canvas failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/data_visualizer failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/fleet failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/infra failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/maps failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/ml failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/security_solution failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/transform failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);
                             ~~~~~~~~~~~~~~


      Found 2 errors.


ERROR x-pack/plugins/uptime failed
      node_modules/maplibre-gl/src/index.d.ts:76:21 - error TS7010: 'addProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      76     export function addProtocol(customProtocol: string, loadFn: (requestParameters: RequestParameters, callback: ResponseCallback<any>) => Cancelable);
                             ~~~~~~~~~~~

      node_modules/maplibre-gl/src/index.d.ts:83:21 - error TS7010: 'removeProtocol', which lacks return-type annotation, implicitly has an 'any' return type.

      83     export function removeProtocol(customProtocol: string);

@thomasneirynck
Copy link
Contributor Author

thomasneirynck commented Jul 7, 2021

TS-compilation failures seems to have been introduced by maplibre/maplibre-gl-js#30 , which seems to be a 1.15.0 feature. The new addProtocol/removeProtocol functions are missing return types, which is tripping up Kibana's type-checker.

@thomasneirynck thomasneirynck changed the title [Maps] Replace mapbox-gl import [Maps] Replace mapbox-gl import with maplibre Jul 7, 2021
@thomasneirynck
Copy link
Contributor Author

Upgrading to 1.15.2, which includes the TS-type fix 367a863

@thomasneirynck
Copy link
Contributor Author

@elasticmachine merge upstream

@thomasneirynck
Copy link
Contributor Author

@elasticmachine merge upstream

@thomasneirynck
Copy link
Contributor Author

@elasticmachine merge upstream

@thomasneirynck
Copy link
Contributor Author

@elasticmachine merge upstream

@thomasneirynck
Copy link
Contributor Author

@elasticmachine merge upstream

@thomasneirynck thomasneirynck added [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.16.0 chore release_note:skip Skip the PR/issue when compiling release notes v8.0.0 labels Aug 17, 2021
@thomasneirynck thomasneirynck changed the title [Maps] Replace mapbox-gl import with maplibre [Maps] Replace mapbox-gl import with MapLibre Aug 17, 2021
@thomasneirynck
Copy link
Contributor Author

with #109082, need to resolve merge conflicts

@thomasneirynck thomasneirynck marked this pull request as ready for review August 24, 2021 21:32
@thomasneirynck thomasneirynck requested a review from a team as a code owner August 24, 2021 21:32
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@thomasneirynck thomasneirynck requested a review from mistic August 24, 2021 21:32
@thomasneirynck
Copy link
Contributor Author

hi @mistic , it seems after merging in #109082, this PR is breaking with

17:34:44 info [bazel] packages/kbn-mapbox-gl/src/index.ts:27:8 - error TS2307: Cannot find module 'maplibre-gl' or its corresponding type declarations.

any thoughts? thx!

@mistic
Copy link
Member

mistic commented Aug 24, 2021

@elasticmachine merge upstream

package.json Outdated Show resolved Hide resolved
Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

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

@thomasneirynck can you try the suggestions I left above?

@thomasneirynck
Copy link
Contributor Author

thomasneirynck commented Aug 25, 2021

hi @mistic

@nreese and I are wondering why we are replacing the type-import in bazel.

  - "@npm//@types/mapbox-gl",
  + "@npm//maplibre-gl",

and have removed the type-import from package.json.

Why are types no longer loaded from the @types-package? thx!

@mistic
Copy link
Member

mistic commented Aug 25, 2021

@thomasneirynck for the version of types we were declaring those were deprecated (https://www.npmjs.com/package/@types/maplibre-gl) and also made available on the package itself, so I think we were having a conflict there, thats why I've suggested to stop use the types package and only define a dependency on the npm package which already bundles the types

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

LGTM

@thomasneirynck
Copy link
Contributor Author

@elasticmachine merge upstream

@nyurik nyurik merged commit ffc45c3 into elastic:master Aug 30, 2021
thomasneirynck added a commit to thomasneirynck/kibana that referenced this pull request Aug 30, 2021
* replace import

* fix import

* upgrade

* Update packages/kbn-mapbox-gl/BUILD.bazel

Co-authored-by: Tiago Costa <[email protected]>

* Update package.json

Co-authored-by: Tiago Costa <[email protected]>

* commit yarn lock

* yarn lock

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Tiago Costa <[email protected]>
thomasneirynck added a commit that referenced this pull request Aug 30, 2021
* replace import

* fix import

* upgrade

* Update packages/kbn-mapbox-gl/BUILD.bazel

Co-authored-by: Tiago Costa <[email protected]>

* Update package.json

Co-authored-by: Tiago Costa <[email protected]>

* commit yarn lock

* yarn lock

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Tiago Costa <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Tiago Costa <[email protected]>
@thomasneirynck thomasneirynck changed the title [Maps] Replace mapbox-gl import with MapLibre [Maps] Replace mapbox-gl import with maplibre-gl Sep 9, 2021
@kibanamachine
Copy link
Contributor

kibanamachine commented Sep 9, 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/ilm_migration_apis·ts.Reporting APIs ILM policy migration APIs detects when no migration is needed

Link to Jenkins

Standard Out

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

[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:04:24]           └-: ILM policy migration APIs
[00:04:24]             └-> "before all" hook for "detects when no migration is needed"
[00:04:24]             └-> "before all" hook for "detects when no migration is needed"
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Loading "mappings.json"
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Loading "data.json.gz"
[00:04:24]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/JHFbWt67QlWYbYRrT7QtUQ] deleting index
[00:04:24]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/aj--CwUWSGigLOn0vNXN6w] deleting index
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Deleted existing index ".kibana_8.0.0_001"
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:04:24]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Created index ".kibana_1"
[00:04:24]               │ debg [x-pack/test/functional/es_archives/reporting/logs] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_1/jxbCVzXAT821gqIU-NYx5w] update_mapping [_doc]
[00:04:25]               │ info [x-pack/test/functional/es_archives/reporting/logs] Indexed 2 docs into ".kibana"
[00:04:25]               │ debg Migrating saved objects
[00:04:25]               │ proc [kibana]   log   [17:13:20.172] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 3ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.174] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 6ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.176] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 2ms.
[00:04:25]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:04:25]               │ 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:04:25]               │ proc [kibana]   log   [17:13:20.180] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 4ms.
[00:04:25]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/jxbCVzXAT821gqIU-NYx5w]]
[00:04:25]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:04:25]               │ proc [kibana]   log   [17:13:20.225] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 53ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.236] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 56ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.239] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 3ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.249] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 24ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.250] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 81ms
[00:04:25]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:25]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:04:25]               │ proc [kibana]   log   [17:13:20.287] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 48ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.291] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.296] [info][savedobjects-service] [.kibana] Starting to process 2 documents.
[00:04:25]               │ proc [kibana]   log   [17:13:20.296] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 5ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.299] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 3ms.
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/MAsKsCXuRfy3ZJo4Dmy25A] update_mapping [_doc]
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/MAsKsCXuRfy3ZJo4Dmy25A] update_mapping [_doc]
[00:04:25]               │ proc [kibana]   log   [17:13:20.338] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 39ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.342] [info][savedobjects-service] [.kibana] Processed 2 documents out of 2.
[00:04:25]               │ proc [kibana]   log   [17:13:20.342] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 4ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.344] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 2ms.
[00:04:25]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/MAsKsCXuRfy3ZJo4Dmy25A]]
[00:04:25]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:04:25]               │ proc [kibana]   log   [17:13:20.370] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 26ms.
[00:04:25]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:04:25]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:25]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/X6r0w6RFT9qqIDjqhSM0Uw] create_mapping
[00:04:25]               │ proc [kibana]   log   [17:13:20.445] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 75ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.447] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 2ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.449] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 2ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.453] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 4ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.454] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 1ms.
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/X6r0w6RFT9qqIDjqhSM0Uw] update_mapping [_doc]
[00:04:25]               │ proc [kibana]   log   [17:13:20.500] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 46ms.
[00:04:25]               │ info [o.e.t.LoggingTaskListener] [node-01] 23755 finished with response BulkByScrollResponse[took=14.5ms,timed_out=false,sliceId=null,updated=2,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:25]               │ proc [kibana]   log   [17:13:20.604] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 104ms.
[00:04:25]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/MAsKsCXuRfy3ZJo4Dmy25A] deleting index
[00:04:25]               │ proc [kibana]   log   [17:13:20.635] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 31ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.635] [info][savedobjects-service] [.kibana] Migration completed after 467ms
[00:04:25]               │ debg [x-pack/test/functional/es_archives/reporting/logs] Migrated Kibana index after loading Kibana data
[00:04:26]               │ debg [x-pack/test/functional/es_archives/reporting/logs] Ensured that default space exists in .kibana
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "mappings.json"
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "data.json.gz"
[00:04:26]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.22"
[00:04:26]               │ debg [x-pack/test/functional/es_archives/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:04:26]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.20"
[00:04:26]               │ debg [x-pack/test/functional/es_archives/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:04:26]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.21"
[00:04:26]               │ debg [x-pack/test/functional/es_archives/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:04:26]               │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.21/hQJcVkNeR4y_r3LcW-Ls9Q] update_mapping [_doc]
[00:04:28]               │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.20/QOMa7AYxRa-TGOdg3A8O8g] update_mapping [_doc]
[00:04:34]               │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:04:34]               │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:04:34]               │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:04:34]             └-> detects when no migration is needed
[00:04:34]               └-> "before each" hook: global before each for "detects when no migration is needed"
[00:04:34]               │ debg ReportingAPI.checkIlmMigrationStatus
[00:04:34]               └- ✖ fail: Reporting APIs ILM policy migration APIs detects when no migration is needed
[00:04:34]               │      Error: expected 200 "OK", got 404 "Not Found"
[00:04:34]               │       at Test._assertStatus (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:268:12)
[00:04:34]               │       at Test._assertFunction (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:283:11)
[00:04:34]               │       at Test.assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:173:18)
[00:04:34]               │       at assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:131:12)
[00:04:34]               │       at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:128:5
[00:04:34]               │       at Test.Request.callback (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:04:34]               │       at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:04:34]               │       at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:04:34]               │       at endReadableNT (internal/streams/readable.js:1317:12)
[00:04:34]               │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:04:34]               │ 
[00:04:34]               │ 

Stack Trace

Error: expected 200 "OK", got 404 "Not Found"
    at Test._assertStatus (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

Kibana Pipeline / general / X-Pack Reporting API Integration Tests.x-pack/test/reporting_api_integration/reporting_and_security/ilm_migration_apis·ts.Reporting APIs ILM policy migration APIs "after each" hook for "detects when no migration is needed"

Link to Jenkins

Standard Out

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

[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:04:24]           └-: ILM policy migration APIs
[00:04:24]             └-> "before all" hook for "detects when no migration is needed"
[00:04:24]             └-> "before all" hook for "detects when no migration is needed"
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Loading "mappings.json"
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Loading "data.json.gz"
[00:04:24]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/JHFbWt67QlWYbYRrT7QtUQ] deleting index
[00:04:24]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/aj--CwUWSGigLOn0vNXN6w] deleting index
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Deleted existing index ".kibana_8.0.0_001"
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:04:24]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:04:24]               │ info [x-pack/test/functional/es_archives/reporting/logs] Created index ".kibana_1"
[00:04:24]               │ debg [x-pack/test/functional/es_archives/reporting/logs] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_1/jxbCVzXAT821gqIU-NYx5w] update_mapping [_doc]
[00:04:25]               │ info [x-pack/test/functional/es_archives/reporting/logs] Indexed 2 docs into ".kibana"
[00:04:25]               │ debg Migrating saved objects
[00:04:25]               │ proc [kibana]   log   [17:13:20.172] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 3ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.174] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 6ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.176] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 2ms.
[00:04:25]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:04:25]               │ 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:04:25]               │ proc [kibana]   log   [17:13:20.180] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 4ms.
[00:04:25]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/jxbCVzXAT821gqIU-NYx5w]]
[00:04:25]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:04:25]               │ proc [kibana]   log   [17:13:20.225] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 53ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.236] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 56ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.239] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 3ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.249] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 24ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.250] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 81ms
[00:04:25]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:25]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:04:25]               │ proc [kibana]   log   [17:13:20.287] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 48ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.291] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.296] [info][savedobjects-service] [.kibana] Starting to process 2 documents.
[00:04:25]               │ proc [kibana]   log   [17:13:20.296] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 5ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.299] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 3ms.
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/MAsKsCXuRfy3ZJo4Dmy25A] update_mapping [_doc]
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/MAsKsCXuRfy3ZJo4Dmy25A] update_mapping [_doc]
[00:04:25]               │ proc [kibana]   log   [17:13:20.338] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 39ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.342] [info][savedobjects-service] [.kibana] Processed 2 documents out of 2.
[00:04:25]               │ proc [kibana]   log   [17:13:20.342] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 4ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.344] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 2ms.
[00:04:25]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/MAsKsCXuRfy3ZJo4Dmy25A]]
[00:04:25]               │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:04:25]               │ proc [kibana]   log   [17:13:20.370] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 26ms.
[00:04:25]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:04:25]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:25]               │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/X6r0w6RFT9qqIDjqhSM0Uw] create_mapping
[00:04:25]               │ proc [kibana]   log   [17:13:20.445] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 75ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.447] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 2ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.449] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 2ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.453] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 4ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.454] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 1ms.
[00:04:25]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/X6r0w6RFT9qqIDjqhSM0Uw] update_mapping [_doc]
[00:04:25]               │ proc [kibana]   log   [17:13:20.500] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 46ms.
[00:04:25]               │ info [o.e.t.LoggingTaskListener] [node-01] 23755 finished with response BulkByScrollResponse[took=14.5ms,timed_out=false,sliceId=null,updated=2,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:25]               │ proc [kibana]   log   [17:13:20.604] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 104ms.
[00:04:25]               │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/MAsKsCXuRfy3ZJo4Dmy25A] deleting index
[00:04:25]               │ proc [kibana]   log   [17:13:20.635] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 31ms.
[00:04:25]               │ proc [kibana]   log   [17:13:20.635] [info][savedobjects-service] [.kibana] Migration completed after 467ms
[00:04:25]               │ debg [x-pack/test/functional/es_archives/reporting/logs] Migrated Kibana index after loading Kibana data
[00:04:26]               │ debg [x-pack/test/functional/es_archives/reporting/logs] Ensured that default space exists in .kibana
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "mappings.json"
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "data.json.gz"
[00:04:26]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.22"
[00:04:26]               │ debg [x-pack/test/functional/es_archives/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:04:26]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.20"
[00:04:26]               │ debg [x-pack/test/functional/es_archives/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:04:26]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:04:26]               │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.21"
[00:04:26]               │ debg [x-pack/test/functional/es_archives/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:04:26]               │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.21/hQJcVkNeR4y_r3LcW-Ls9Q] update_mapping [_doc]
[00:04:28]               │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.20/QOMa7AYxRa-TGOdg3A8O8g] update_mapping [_doc]
[00:04:34]               │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:04:34]               │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:04:34]               │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:04:34]             └-> detects when no migration is needed
[00:04:34]               └-> "before each" hook: global before each for "detects when no migration is needed"
[00:04:34]               │ debg ReportingAPI.checkIlmMigrationStatus
[00:04:34]               └- ✖ fail: Reporting APIs ILM policy migration APIs detects when no migration is needed
[00:04:34]               │      Error: expected 200 "OK", got 404 "Not Found"
[00:04:34]               │       at Test._assertStatus (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:268:12)
[00:04:34]               │       at Test._assertFunction (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:283:11)
[00:04:34]               │       at Test.assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:173:18)
[00:04:34]               │       at assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:131:12)
[00:04:34]               │       at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:128:5
[00:04:34]               │       at Test.Request.callback (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:04:34]               │       at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:04:34]               │       at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:04:34]               │       at endReadableNT (internal/streams/readable.js:1317:12)
[00:04:34]               │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:04:34]               │ 
[00:04:34]               │ 
[00:04:34]             └-> "after each" hook for "detects when no migration is needed"
[00:04:34]               │ debg ReportingAPI.deleteAllReports
[00:04:34]               │ debg ReportingAPI.migrateReportingIndices
[00:04:34]               └- ✖ fail: Reporting APIs ILM policy migration APIs "after each" hook for "detects when no migration is needed"
[00:04:34]               │      Error: expected 200 "OK", got 404 "Not Found"
[00:04:34]               │       at Test._assertStatus (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:268:12)
[00:04:34]               │       at Test._assertFunction (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:283:11)
[00:04:34]               │       at Test.assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:173:18)
[00:04:34]               │       at assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:131:12)
[00:04:34]               │       at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:128:5
[00:04:34]               │       at Test.Request.callback (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:04:34]               │       at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:04:34]               │       at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:04:34]               │       at endReadableNT (internal/streams/readable.js:1317:12)
[00:04:34]               │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:04:34]               │ 
[00:04:34]               │ 

Stack Trace

Error: expected 200 "OK", got 404 "Not Found"
    at Test._assertStatus (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/10/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/uptime/rest/telemetry_collectors_fleet·ts.apis uptime uptime REST endpoints with generated data telemetry collectors fleet should receive expected results for fleet managed monitors after calling monitor logging

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:05:52]           └-: uptime
[00:05:52]             └-> "before all" hook in "uptime"
[00:05:52]             └-> "before all" hook in "uptime"
[00:05:52]               │ debg No indices to delete [pattern=heartbeat*]
[00:05:56]             └-: uptime REST endpoints
[00:05:56]               └-> "before all" hook in "uptime REST endpoints"
[00:05:56]               └-: with generated data
[00:05:56]                 └-> "before all" hook in "with generated data"
[00:06:15]                 └-: telemetry collectors fleet
[00:06:15]                   │ info [x-pack/test/functional/es_archives/uptime/blank] Unloading indices from "mappings.json"
[00:06:15]                   └-> "before all" hook for "should receive expected results for fleet managed monitors after calling monitor logging"
[00:06:15]                   └-> "before all" hook: generating data for "should receive expected results for fleet managed monitors after calling monitor logging"
[00:06:15]                     │ info [x-pack/test/functional/es_archives/uptime/blank_data_stream] Loading "mappings.json"
[00:06:15]                     │ info [x-pack/test/functional/es_archives/uptime/blank_data_stream] Loading "data.json"
[00:06:15]                     │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [heartbeat-8-generated-test/ETAWAtNySIClVJAIAHT-zw] deleting index
[00:06:15]                     │ info [x-pack/test/functional/es_archives/uptime/blank] Deleted existing index "heartbeat-8-generated-test"
[00:06:15]                     │ info [x-pack/test/functional/es_archives/uptime/blank] Unloading indices from "data.json"
[00:06:15]                     │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.ds-synthetics-http-default-2021.04.20-000001/QDin8jfPT9mcwosfhtRwag] deleting index
[00:06:16]                     │ info [x-pack/test/functional/es_archives/uptime/blank_data_stream] Deleted existing index ".ds-synthetics-http-default-2021.04.20-000001"
[00:06:16]                     │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ds-synthetics-http-default-2021.04.20-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:06:16]                     │ info [x-pack/test/functional/es_archives/uptime/blank_data_stream] Created index ".ds-synthetics-http-default-2021.04.20-000001"
[00:06:16]                     │ debg [x-pack/test/functional/es_archives/uptime/blank_data_stream] ".ds-synthetics-http-default-2021.04.20-000001" settings {"index":{"codec":"best_compression","hidden":"true","lifecycle":{"name":"synthetics"},"mapping":{"total_fields":{"limit":"10000"}},"number_of_replicas":"1","number_of_shards":"1","refresh_interval":"5s"}}
[00:06:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ds-synthetics-http-default-2021.04.20-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [synthetics]
[00:06:16]                     │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ds-synthetics-http-default-2021.09.09-000001] creating index, cause [initialize_data_stream], templates [synthetics], shards [1]/[1]
[00:06:16]                     │ info [o.e.c.m.MetadataCreateDataStreamService] [node-01] adding data stream [synthetics-http-default] with write index [.ds-synthetics-http-default-2021.09.09-000001], backing indices [], and aliases []
[00:06:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ds-synthetics-http-default-2021.09.09-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [synthetics]
[00:06:16]                     │ info [o.e.c.m.MetadataMappingService] [node-01] [.ds-synthetics-http-default-2021.09.09-000001/p0WqAKtZQKiyWpS0nb8Szw] update_mapping [_doc]
[00:06:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ds-synthetics-http-default-2021.04.20-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [synthetics]
[00:06:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ds-synthetics-http-default-2021.09.09-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [synthetics]
[00:06:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ds-synthetics-http-default-2021.04.20-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [synthetics]
[00:06:16]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ds-synthetics-http-default-2021.09.09-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [synthetics]
[00:06:16]                   └-> should receive expected results for fleet managed monitors after calling monitor logging
[00:06:16]                     └-> "before each" hook: global before each for "should receive expected results for fleet managed monitors after calling monitor logging"
[00:06:16]                     └-> "before each" hook: clear settings for "should receive expected results for fleet managed monitors after calling monitor logging"
[00:06:16]                       │ debg Deleting saved object {
[00:06:16]                       │        type: 'uptime-dynamic-settings',
[00:06:16]                       │        id: 'uptime-dynamic-settings-singleton'
[00:06:16]                       │      }/%s
[00:06:16]                     └-> "before each" hook: load heartbeat data for "should receive expected results for fleet managed monitors after calling monitor logging"
[00:06:16]                       │ info [x-pack/test/functional/es_archives/uptime/blank] Loading "mappings.json"
[00:06:16]                       │ info [x-pack/test/functional/es_archives/uptime/blank] Loading "data.json"
[00:06:16]                       │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [heartbeat-8-generated-test] creating index, cause [api], templates [], shards [1]/[1]
[00:06:16]                       │ info [x-pack/test/functional/es_archives/uptime/blank] Created index "heartbeat-8-generated-test"
[00:06:16]                       │ debg [x-pack/test/functional/es_archives/uptime/blank] "heartbeat-8-generated-test" settings undefined
[00:06:16]                       │ info [x-pack/test/functional/es_archives/uptime/blank_data_stream] Loading "mappings.json"
[00:06:16]                       │ info [x-pack/test/functional/es_archives/uptime/blank_data_stream] Loading "data.json"
[00:06:16]                       │ info [x-pack/test/functional/es_archives/uptime/blank_data_stream] Skipped restore for existing index ".ds-synthetics-http-default-2021.04.20-000001"
[00:06:16]                     └-> "before each" hook for "should receive expected results for fleet managed monitors after calling monitor logging"
[00:06:17]                     └- ✖ fail: apis uptime uptime REST endpoints with generated data telemetry collectors fleet should receive expected results for fleet managed monitors after calling monitor logging
[00:06:17]                     │       Error: expected { overview_page: 0,
[00:06:17]                     │   monitor_page: 1,
[00:06:17]                     │   no_of_unique_monitors: 4,
[00:06:17]                     │   settings_page: 0,
[00:06:17]                     │   monitor_frequency: [ 0.001, 0.001, 60, 60 ],
[00:06:17]                     │   monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 },
[00:06:17]                     │   no_of_unique_observer_locations: 3,
[00:06:17]                     │   observer_location_name_stats: { min_length: 2, max_length: 7, avg_length: 4.8 },
[00:06:17]                     │   dateRangeStart: [ 'now/d' ],
[00:06:17]                     │   dateRangeEnd: [ 'now/d' ],
[00:06:17]                     │   autoRefreshEnabled: true,
[00:06:17]                     │   autorefreshInterval: [ 100 ],
[00:06:17]                     │   fleet_no_of_unique_monitors: 4,
[00:06:17]                     │   fleet_monitor_frequency: [ 0.001, 0.001, 60, 60 ],
[00:06:17]                     │   fleet_monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 } } to sort of equal { overview_page: 0,
[00:06:17]                     │   monitor_page: 1,
[00:06:17]                     │   no_of_unique_monitors: 4,
[00:06:17]                     │   settings_page: 0,
[00:06:17]                     │   monitor_frequency: [ 120, 0.001, 60, 60 ],
[00:06:17]                     │   monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 },
[00:06:17]                     │   no_of_unique_observer_locations: 3,
[00:06:17]                     │   observer_location_name_stats: { min_length: 2, max_length: 7, avg_length: 4.8 },
[00:06:17]                     │   dateRangeStart: [ 'now/d' ],
[00:06:17]                     │   dateRangeEnd: [ 'now/d' ],
[00:06:17]                     │   autoRefreshEnabled: true,
[00:06:17]                     │   autorefreshInterval: [ 100 ],
[00:06:17]                     │   fleet_monitor_frequency: [ 120, 0.001, 60, 60 ],
[00:06:17]                     │   fleet_monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 },
[00:06:17]                     │   fleet_no_of_unique_monitors: 4 }
[00:06:17]                     │       + expected - actual
[00:06:17]                     │ 
[00:06:17]                     │          "dateRangeStart": [
[00:06:17]                     │            "now/d"
[00:06:17]                     │          ]
[00:06:17]                     │          "fleet_monitor_frequency": [
[00:06:17]                     │       +    120
[00:06:17]                     │            0.001
[00:06:17]                     │       -    0.001
[00:06:17]                     │            60
[00:06:17]                     │            60
[00:06:17]                     │          ]
[00:06:17]                     │          "fleet_monitor_name_stats": {
[00:06:17]                     │ --
[00:06:17]                     │            "min_length": 7
[00:06:17]                     │          }
[00:06:17]                     │          "fleet_no_of_unique_monitors": 4
[00:06:17]                     │          "monitor_frequency": [
[00:06:17]                     │       +    120
[00:06:17]                     │            0.001
[00:06:17]                     │       -    0.001
[00:06:17]                     │            60
[00:06:17]                     │            60
[00:06:17]                     │          ]
[00:06:17]                     │          "monitor_name_stats": {
[00:06:17]                     │       
[00:06:17]                     │       at Assertion.assert (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:06:17]                     │       at Assertion.eql (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:06:17]                     │       at Context.<anonymous> (test/api_integration/apis/uptime/rest/telemetry_collectors_fleet.ts:160:25)
[00:06:17]                     │       at runMicrotasks (<anonymous>)
[00:06:17]                     │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:06:17]                     │       at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:06:17]                     │ 
[00:06:17]                     │ 

Stack Trace

Error: expected { overview_page: 0,
  monitor_page: 1,
  no_of_unique_monitors: 4,
  settings_page: 0,
  monitor_frequency: [ 0.001, 0.001, 60, 60 ],
  monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 },
  no_of_unique_observer_locations: 3,
  observer_location_name_stats: { min_length: 2, max_length: 7, avg_length: 4.8 },
  dateRangeStart: [ 'now/d' ],
  dateRangeEnd: [ 'now/d' ],
  autoRefreshEnabled: true,
  autorefreshInterval: [ 100 ],
  fleet_no_of_unique_monitors: 4,
  fleet_monitor_frequency: [ 0.001, 0.001, 60, 60 ],
  fleet_monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 } } to sort of equal { overview_page: 0,
  monitor_page: 1,
  no_of_unique_monitors: 4,
  settings_page: 0,
  monitor_frequency: [ 120, 0.001, 60, 60 ],
  monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 },
  no_of_unique_observer_locations: 3,
  observer_location_name_stats: { min_length: 2, max_length: 7, avg_length: 4.8 },
  dateRangeStart: [ 'now/d' ],
  dateRangeEnd: [ 'now/d' ],
  autoRefreshEnabled: true,
  autorefreshInterval: [ 100 ],
  fleet_monitor_frequency: [ 120, 0.001, 60, 60 ],
  fleet_monitor_name_stats: { min_length: 7, max_length: 22, avg_length: 12 },
  fleet_no_of_unique_monitors: 4 }
    at Assertion.assert (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Context.<anonymous> (test/api_integration/apis/uptime/rest/telemetry_collectors_fleet.ts:160:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16) {
  actual: '{\n' +
    '  "autoRefreshEnabled": true\n' +
    '  "autorefreshInterval": [\n' +
    '    100\n' +
    '  ]\n' +
    '  "dateRangeEnd": [\n' +
    '    "now/d"\n' +
    '  ]\n' +
    '  "dateRangeStart": [\n' +
    '    "now/d"\n' +
    '  ]\n' +
    '  "fleet_monitor_frequency": [\n' +
    '    0.001\n' +
    '    0.001\n' +
    '    60\n' +
    '    60\n' +
    '  ]\n' +
    '  "fleet_monitor_name_stats": {\n' +
    '    "avg_length": 12\n' +
    '    "max_length": 22\n' +
    '    "min_length": 7\n' +
    '  }\n' +
    '  "fleet_no_of_unique_monitors": 4\n' +
    '  "monitor_frequency": [\n' +
    '    0.001\n' +
    '    0.001\n' +
    '    60\n' +
    '    60\n' +
    '  ]\n' +
    '  "monitor_name_stats": {\n' +
    '    "avg_length": 12\n' +
    '    "max_length": 22\n' +
    '    "min_length": 7\n' +
    '  }\n' +
    '  "monitor_page": 1\n' +
    '  "no_of_unique_monitors": 4\n' +
    '  "no_of_unique_observer_locations": 3\n' +
    '  "observer_location_name_stats": {\n' +
    '    "avg_length": 4.8\n' +
    '    "max_length": 7\n' +
    '    "min_length": 2\n' +
    '  }\n' +
    '  "overview_page": 0\n' +
    '  "settings_page": 0\n' +
    '}',
  expected: '{\n' +
    '  "autoRefreshEnabled": true\n' +
    '  "autorefreshInterval": [\n' +
    '    100\n' +
    '  ]\n' +
    '  "dateRangeEnd": [\n' +
    '    "now/d"\n' +
    '  ]\n' +
    '  "dateRangeStart": [\n' +
    '    "now/d"\n' +
    '  ]\n' +
    '  "fleet_monitor_frequency": [\n' +
    '    120\n' +
    '    0.001\n' +
    '    60\n' +
    '    60\n' +
    '  ]\n' +
    '  "fleet_monitor_name_stats": {\n' +
    '    "avg_length": 12\n' +
    '    "max_length": 22\n' +
    '    "min_length": 7\n' +
    '  }\n' +
    '  "fleet_no_of_unique_monitors": 4\n' +
    '  "monitor_frequency": [\n' +
    '    120\n' +
    '    0.001\n' +
    '    60\n' +
    '    60\n' +
    '  ]\n' +
    '  "monitor_name_stats": {\n' +
    '    "avg_length": 12\n' +
    '    "max_length": 22\n' +
    '    "min_length": 7\n' +
    '  }\n' +
    '  "monitor_page": 1\n' +
    '  "no_of_unique_monitors": 4\n' +
    '  "no_of_unique_observer_locations": 3\n' +
    '  "observer_location_name_stats": {\n' +
    '    "avg_length": 4.8\n' +
    '    "max_length": 7\n' +
    '    "min_length": 2\n' +
    '  }\n' +
    '  "overview_page": 0\n' +
    '  "settings_page": 0\n' +
    '}',
  showDiff: true
}

and 1 more failures, only showing the first 3.

Metrics [docs]

Async chunks

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

id before after diff
maps 3.1MB 3.2MB +36.9KB
visTypeVega 2.5MB 2.5MB +36.9KB
total +73.7KB
Unknown metric groups

miscellaneous assets size

id before after diff
maps 979.2KB 979.5KB +327.0B
visTypeVega 550.3KB 550.7KB +327.0B
total +654.0B

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
blocked chore [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:skip Skip the PR/issue when compiling release notes v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maps] Migrate to MapLibre
6 participants