Skip to content

[7.x] [FTR] Use importExport for saved_object/basic archive (#100244)#101082

Closed
tylersmalley wants to merge 1 commit intoelastic:7.xfrom
tylersmalley:backport/7.x/pr-100244
Closed

[7.x] [FTR] Use importExport for saved_object/basic archive (#100244)#101082
tylersmalley wants to merge 1 commit intoelastic:7.xfrom
tylersmalley:backport/7.x/pr-100244

Conversation

@tylersmalley
Copy link
Member

Backports the following commits to 7.x:

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	test/api_integration/fixtures/es_archiver/saved_objects/basic/data.json.gz
#	test/api_integration/fixtures/es_archiver/saved_objects/basic/mappings.json
@tylersmalley tylersmalley added the backport This PR is a backport of another PR label Jun 1, 2021
@tylersmalley tylersmalley enabled auto-merge (squash) June 1, 2021 18:55
@kibanamachine
Copy link
Contributor

kibanamachine commented Jun 1, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / API Integration Tests.test/api_integration/apis/saved_objects_management/get·ts.apis saved objects management apis get "before all" hook for "should return 200 for object that exists and inject metadata"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:01:48]           └-: saved objects management apis
[00:01:48]             └-> "before all" hook in "saved objects management apis"
[00:01:54]             └-: get
[00:01:54]               └-> "before all" hook for "should return 200 for object that exists and inject metadata"
[00:01:54]               └-> "before all" hook for "should return 200 for object that exists and inject metadata"
[00:01:54]                 │ debg resolved import for saved_objects/basic to /dev/shm/workspace/parallel/5/kibana/test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json
[00:01:54]                 │ info importing 4 saved objects { space: undefined }
[00:01:54]                 └- ✖ fail: apis saved objects management apis get "before all" hook for "should return 200 for object that exists and inject metadata"
[00:01:54]                 │      Error: failed to import all saved objects: {
[00:01:54]                 │   errors: [
[00:01:54]                 │     {
[00:01:54]                 │       error: {
[00:01:54]                 │         error: 'Internal Server Error',
[00:01:54]                 │         message: 'An internal server error occurred',
[00:01:54]                 │         statusCode: 500,
[00:01:54]                 │         type: 'unknown'
[00:01:54]                 │       },
[00:01:54]                 │       id: '7.0.0-alpha1',
[00:01:54]                 │       meta: {},
[00:01:54]                 │       type: 'config'
[00:01:54]                 │     },
[00:01:54]                 │     {
[00:01:54]                 │       error: {
[00:01:54]                 │         error: 'Internal Server Error',
[00:01:54]                 │         message: 'An internal server error occurred',
[00:01:54]                 │         statusCode: 500,
[00:01:54]                 │         type: 'unknown'
[00:01:54]                 │       },
[00:01:54]                 │       id: '91200a00-9efd-11e7-acb3-3dab96693fab',
[00:01:54]                 │       meta: {
[00:01:54]                 │         icon: 'indexPatternApp',
[00:01:54]                 │         title: 'logstash-*'
[00:01:54]                 │       },
[00:01:54]                 │       title: 'logstash-*',
[00:01:54]                 │       type: 'index-pattern'
[00:01:54]                 │     },
[00:01:54]                 │     {
[00:01:54]                 │       error: {
[00:01:54]                 │         error: 'Internal Server Error',
[00:01:54]                 │         message: 'An internal server error occurred',
[00:01:54]                 │         statusCode: 500,
[00:01:54]                 │         type: 'unknown'
[00:01:54]                 │       },
[00:01:54]                 │       id: 'dd7caf20-9efd-11e7-acb3-3dab96693fab',
[00:01:54]                 │       meta: {
[00:01:54]                 │         icon: 'visualizeApp',
[00:01:54]                 │         title: 'Count of requests'
[00:01:54]                 │       },
[00:01:54]                 │       title: 'Count of requests',
[00:01:54]                 │       type: 'visualization'
[00:01:54]                 │     },
[00:01:54]                 │     {
[00:01:54]                 │       error: {
[00:01:54]                 │         error: 'Internal Server Error',
[00:01:54]                 │         message: 'An internal server error occurred',
[00:01:54]                 │         statusCode: 500,
[00:01:54]                 │         type: 'unknown'
[00:01:54]                 │       },
[00:01:54]                 │       id: 'be3733a0-9efe-11e7-acb3-3dab96693fab',
[00:01:54]                 │       meta: {
[00:01:54]                 │         icon: 'dashboardApp',
[00:01:54]                 │         title: 'Requests'
[00:01:54]                 │       },
[00:01:54]                 │       title: 'Requests',
[00:01:54]                 │       type: 'dashboard'
[00:01:54]                 │     }
[00:01:54]                 │   ],
[00:01:54]                 │   success: false,
[00:01:54]                 │   successCount: 0,
[00:01:54]                 │   warnings: []
[00:01:54]                 │ }
[00:01:54]                 │       at createFailError (node_modules/packages/kbn-dev-utils/src/run/fail.ts:27:24)
[00:01:54]                 │       at KbnClientImportExport.load (node_modules/@kbn/test/src/kbn_client/kbn_client_import_export.ts:83:13)
[00:01:54]                 │       at runMicrotasks (<anonymous>)
[00:01:54]                 │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:01:54]                 │       at Object.apply (node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:01:54]                 │ 
[00:01:54]                 │ 

Stack Trace

Error: failed to import all saved objects: {
  errors: [
    {
      error: {
        error: 'Internal Server Error',
        message: 'An internal server error occurred',
        statusCode: 500,
        type: 'unknown'
      },
      id: '7.0.0-alpha1',
      meta: {},
      type: 'config'
    },
    {
      error: {
        error: 'Internal Server Error',
        message: 'An internal server error occurred',
        statusCode: 500,
        type: 'unknown'
      },
      id: '91200a00-9efd-11e7-acb3-3dab96693fab',
      meta: {
        icon: 'indexPatternApp',
        title: 'logstash-*'
      },
      title: 'logstash-*',
      type: 'index-pattern'
    },
    {
      error: {
        error: 'Internal Server Error',
        message: 'An internal server error occurred',
        statusCode: 500,
        type: 'unknown'
      },
      id: 'dd7caf20-9efd-11e7-acb3-3dab96693fab',
      meta: {
        icon: 'visualizeApp',
        title: 'Count of requests'
      },
      title: 'Count of requests',
      type: 'visualization'
    },
    {
      error: {
        error: 'Internal Server Error',
        message: 'An internal server error occurred',
        statusCode: 500,
        type: 'unknown'
      },
      id: 'be3733a0-9efe-11e7-acb3-3dab96693fab',
      meta: {
        icon: 'dashboardApp',
        title: 'Requests'
      },
      title: 'Requests',
      type: 'dashboard'
    }
  ],
  success: false,
  successCount: 0,
  warnings: []
}
    at createFailError (node_modules/packages/kbn-dev-utils/src/run/fail.ts:27:24)
    at KbnClientImportExport.load (node_modules/@kbn/test/src/kbn_client/kbn_client_import_export.ts:83:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.apply (node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  exitCode: 1,
  showHelp: false,
  [Symbol(fail error)]: true
}

Metrics [docs]

Unknown metric groups

References to deprecated APIs

id before after diff
canvas 29 25 -4
crossClusterReplication 8 6 -2
fleet 22 20 -2
globalSearch 4 2 -2
indexManagement 12 7 -5
infra 256 146 -110
lens 67 45 -22
licensing 18 15 -3
lists 239 236 -3
maps 286 208 -78
ml 121 115 -6
monitoring 109 56 -53
securitySolution 390 346 -44
stackAlerts 101 95 -6
total -340

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

@tylersmalley
Copy link
Member Author

Being backported as part of #101118

auto-merge was automatically disabled June 1, 2021 21:34

Pull request was closed

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

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants