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

Failing test: X-Pack EPM API Integration Tests.x-pack/test/fleet_api_integration/apis/epm/install_overrides·ts - EPM Endpoints installs packages that include settings and mappings overrides should install the overrides package correctly #194714

Closed
kibanamachine opened this issue Oct 2, 2024 · 6 comments · Fixed by #194764
Assignees
Labels
failed-es-promotion failed-test A test failure on a tracked branch, potentially flaky-test Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Oct 2, 2024

A test failed on a tracked branch

Error: expected { template: 
   { settings: { index: [Object] },
     mappings: { dynamic: 'false', properties: [Object] },
     aliases: {} },
  overlapping: 
   [ { name: 'logs', index_patterns: [Object] },
     { name: 'logs-otel@template',
       index_patterns: [Object] } ] } to sort of equal { template: 
   { settings: { index: [Object] },
     mappings: { dynamic: 'false', properties: [Object] },
     aliases: {} },
  overlapping: [ { name: 'logs', index_patterns: [Object] } ] }
    at Assertion.assert (expect.js:100:11)
    at Assertion.eql (expect.js:244:8)
    at Context.<anonymous> (install_overrides.ts:122:23)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.apply (wrap_function.js:74:16) {
  actual: '{\n' +
    '  "overlapping": [\n' +
    '    {\n' +
    '      "index_patterns": [\n' +
    '        "logs-*-*"\n' +
    '      ]\n' +
    '      "name": "logs"\n' +
    '    }\n' +
    '    {\n' +
    '      "index_patterns": [\n' +
    '        "logs-*.otel-*"\n' +
    '      ]\n' +
    '      "name": "logs-otel@template"\n' +
    '    }\n' +
    '  ]\n' +
    '  "template": {\n' +
    '    "aliases": {}\n' +
    '    "mappings": {\n' +
    '      "dynamic": "false"\n' +
    '      "properties": {\n' +
    '        "@timestamp": {\n' +
    '          "type": "date"\n' +
    '        }\n' +
    '        "data_stream": {\n' +
    '          "properties": {\n' +
    '            "dataset": {\n' +
    '              "type": "constant_keyword"\n' +
    '            }\n' +
    '            "namespace": {\n' +
    '              "type": "constant_keyword"\n' +
    '            }\n' +
    '            "type": {\n' +
    '              "type": "constant_keyword"\n' +
    '            }\n' +
    '          }\n' +
    '        }\n' +
    '      }\n' +
    '    }\n' +
    '    "settings": {\n' +
    '      "index": {\n' +
    '        "default_pipeline": "logs-overrides.test-0.1.0"\n' +
    '        "lifecycle": {\n' +
    '          "name": "overridden by user"\n' +
    '        }\n' +
    '        "mapping": {\n' +
    '          "total_fields": {\n' +
    '            "limit": "1000"\n' +
    '          }\n' +
    '        }\n' +
    '        "number_of_shards": "3"\n' +
    '      }\n' +
    '    }\n' +
    '  }\n' +
    '}',
  expected: '{\n' +
    '  "overlapping": [\n' +
    '    {\n' +
    '      "index_patterns": [\n' +
    '        "logs-*-*"\n' +
    '      ]\n' +
    '      "name": "logs"\n' +
    '    }\n' +
    '  ]\n' +
    '  "template": {\n' +
    '    "aliases": {}\n' +
    '    "mappings": {\n' +
    '      "dynamic": "false"\n' +
    '      "properties": {\n' +
    '        "@timestamp": {\n' +
    '          "type": "date"\n' +
    '        }\n' +
    '        "data_stream": {\n' +
    '          "properties": {\n' +
    '            "dataset": {\n' +
    '              "type": "constant_keyword"\n' +
    '            }\n' +
    '            "namespace": {\n' +
    '              "type": "constant_keyword"\n' +
    '            }\n' +
    '            "type": {\n' +
    '              "type": "constant_keyword"\n' +
    '            }\n' +
    '          }\n' +
    '        }\n' +
    '      }\n' +
    '    }\n' +
    '    "settings": {\n' +
    '      "index": {\n' +
    '        "default_pipeline": "logs-overrides.test-0.1.0"\n' +
    '        "lifecycle": {\n' +
    '          "name": "overridden by user"\n' +
    '        }\n' +
    '        "mapping": {\n' +
    '          "total_fields": {\n' +
    '            "limit": "1000"\n' +
    '          }\n' +
    '        }\n' +
    '        "number_of_shards": "3"\n' +
    '      }\n' +
    '    }\n' +
    '  }\n' +
    '}',
  showDiff: true
}

First failure: kibana-elasticsearch-snapshot-verify - 8.x

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Oct 2, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 2, 2024
@kibanamachine kibanamachine added failed-es-promotion Team:Fleet Team label for Observability Data Collection Fleet team labels Oct 2, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Oct 2, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-elasticsearch-snapshot-verify - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-elasticsearch-snapshot-verify - 8.x

@kibanamachine
Copy link
Contributor Author

New failure: kibana-elasticsearch-snapshot-verify - main

@jbudz
Copy link
Member

jbudz commented Oct 2, 2024

/skip

We discussed this on Slack, we're good to skip and will follow through with an unskip after the next es build is promoted.

@kibanamachine
Copy link
Contributor Author

Skipped

8.x: 246f25d
main: 91cda05

@jen-huang jen-huang self-assigned this Oct 2, 2024
jen-huang added a commit that referenced this issue Oct 7, 2024
…erlaps (#194764)

## Summary

**Do not merge until ES has been promoted**

Resolves #194714. Test was skipped due to changes from latest ES build.
This PR amends the test and unskips it.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Oct 7, 2024
…erlaps (elastic#194764)

## Summary

**Do not merge until ES has been promoted**

Resolves elastic#194714. Test was skipped due to changes from latest ES build.
This PR amends the test and unskips it.

(cherry picked from commit 95d01cd)
tiansivive pushed a commit to tiansivive/kibana that referenced this issue Oct 7, 2024
kibanamachine added a commit that referenced this issue Oct 7, 2024
…ate overlaps (#194764) (#195220)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[UII] Fix skipped test by add logs otel template to index template
overlaps (#194764)](#194764)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jen
Huang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-07T10:48:48Z","message":"[UII]
Fix skipped test by add logs otel template to index template overlaps
(#194764)\n\n## Summary\r\n\r\n**Do not merge until ES has been
promoted**\r\n\r\nResolves #194714. Test was skipped due to changes from
latest ES build.\r\nThis PR amends the test and unskips
it.","sha":"95d01cdfa002cc8dd01e03f6a5eca1770f81cf08","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor"],"title":"[UII]
Fix skipped test by add logs otel template to index template
overlaps","number":194764,"url":"https://github.com/elastic/kibana/pull/194764","mergeCommit":{"message":"[UII]
Fix skipped test by add logs otel template to index template overlaps
(#194764)\n\n## Summary\r\n\r\n**Do not merge until ES has been
promoted**\r\n\r\nResolves #194714. Test was skipped due to changes from
latest ES build.\r\nThis PR amends the test and unskips
it.","sha":"95d01cdfa002cc8dd01e03f6a5eca1770f81cf08"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194764","number":194764,"mergeCommit":{"message":"[UII]
Fix skipped test by add logs otel template to index template overlaps
(#194764)\n\n## Summary\r\n\r\n**Do not merge until ES has been
promoted**\r\n\r\nResolves #194714. Test was skipped due to changes from
latest ES build.\r\nThis PR amends the test and unskips
it.","sha":"95d01cdfa002cc8dd01e03f6a5eca1770f81cf08"}}]}] BACKPORT-->

Co-authored-by: Jen Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-es-promotion failed-test A test failure on a tracked branch, potentially flaky-test Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants