Use distribution lite instead of production#146809
Conversation
|
According to the logs of the failed tests, it looks like it would be needed the |
|
/test |
|
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
|
Pinging @elastic/fleet (Team:Fleet) |
nchaulet
left a comment
There was a problem hiding this comment.
Looks good to me, we should probably update kibana-buildkite too
…#147040) ## Summary Closes #147028 ## Testing instructions See steps to reproduce in linked issue. Verify AWS credential variables appear on this branch.  I took a pass at adding tests for our `parseAndVeryArchive` method but it's sort of a recursive chain of mocked `Buffer` -> `yaml.safeLoad` operations and got pretty involved to set up from scratch. The other option would be to add an FTR API test that catches this case, but we'd need a package with top-level variables loaded into the test registry, which we may not have readily available if #146809 lands. I would love some alternative ideas on adding test coverage for this fix, but if it's going to involved I don't want to block this fix from landing in 8.6 on tests.
…elastic#147040) ## Summary Closes elastic#147028 ## Testing instructions See steps to reproduce in linked issue. Verify AWS credential variables appear on this branch.  I took a pass at adding tests for our `parseAndVeryArchive` method but it's sort of a recursive chain of mocked `Buffer` -> `yaml.safeLoad` operations and got pretty involved to set up from scratch. The other option would be to add an FTR API test that catches this case, but we'd need a package with top-level variables loaded into the test registry, which we may not have readily available if elastic#146809 lands. I would love some alternative ideas on adding test coverage for this fix, but if it's going to involved I don't want to block this fix from landing in 8.6 on tests. (cherry picked from commit b6696ef)
…rchive (#147040) (#147051) # Backport This will backport the following commits from `main` to `8.6`: - [[Fleet] Ensure top-level package vars are parsed when reading archive (#147040)](#147040) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kyle Pollich","email":"kyle.pollich@elastic.co"},"sourceCommit":{"committedDate":"2022-12-05T20:13:19Z","message":"[Fleet] Ensure top-level package vars are parsed when reading archive (#147040)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/147028\r\n\r\n## Testing instructions\r\n\r\nSee steps to reproduce in linked issue. Verify AWS credential variables\r\nappear on this branch.\r\n\r\n\r\n\r\n\r\nI took a pass at adding tests for our `parseAndVeryArchive` method but\r\nit's sort of a recursive chain of mocked `Buffer` -> `yaml.safeLoad`\r\noperations and got pretty involved to set up from scratch. The other\r\noption would be to add an FTR API test that catches this case, but we'd\r\nneed a package with top-level variables loaded into the test registry,\r\nwhich we may not have readily available if\r\nhttps://github.com//pull/146809 lands.\r\n\r\nI would love some alternative ideas on adding test coverage for this\r\nfix, but if it's going to involved I don't want to block this fix from\r\nlanding in 8.6 on tests.","sha":"b6696ef6c7da83c0ef396d24f471cb6589e5413a","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:prev-minor","v8.7.0"],"number":147040,"url":"https://github.com/elastic/kibana/pull/147040","mergeCommit":{"message":"[Fleet] Ensure top-level package vars are parsed when reading archive (#147040)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/147028\r\n\r\n## Testing instructions\r\n\r\nSee steps to reproduce in linked issue. Verify AWS credential variables\r\nappear on this branch.\r\n\r\n\r\n\r\n\r\nI took a pass at adding tests for our `parseAndVeryArchive` method but\r\nit's sort of a recursive chain of mocked `Buffer` -> `yaml.safeLoad`\r\noperations and got pretty involved to set up from scratch. The other\r\noption would be to add an FTR API test that catches this case, but we'd\r\nneed a package with top-level variables loaded into the test registry,\r\nwhich we may not have readily available if\r\nhttps://github.com//pull/146809 lands.\r\n\r\nI would love some alternative ideas on adding test coverage for this\r\nfix, but if it's going to involved I don't want to block this fix from\r\nlanding in 8.6 on tests.","sha":"b6696ef6c7da83c0ef396d24f471cb6589e5413a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/147040","number":147040,"mergeCommit":{"message":"[Fleet] Ensure top-level package vars are parsed when reading archive (#147040)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/147028\r\n\r\n## Testing instructions\r\n\r\nSee steps to reproduce in linked issue. Verify AWS credential variables\r\nappear on this branch.\r\n\r\n\r\n\r\n\r\nI took a pass at adding tests for our `parseAndVeryArchive` method but\r\nit's sort of a recursive chain of mocked `Buffer` -> `yaml.safeLoad`\r\noperations and got pretty involved to set up from scratch. The other\r\noption would be to add an FTR API test that catches this case, but we'd\r\nneed a package with top-level variables loaded into the test registry,\r\nwhich we may not have readily available if\r\nhttps://github.com//pull/146809 lands.\r\n\r\nI would love some alternative ideas on adding test coverage for this\r\nfix, but if it's going to involved I don't want to block this fix from\r\nlanding in 8.6 on tests.","sha":"b6696ef6c7da83c0ef396d24f471cb6589e5413a"}}]}] BACKPORT--> Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
PR Created for this: https://github.com/elastic/kibana-buildkite/pull/65 Can we merge this change then? |
Yes this should be merged |
Was this failing test not executed on this PR? Or this is a different build? |
|
Trying again in #147139. |
It was tested and passed on this PR 24 hours ago, so most likely image or source changes in between then and now. |
Summary
To avoid download every time the production tag of the distribution docker image, this PR changes to use distribution lite that it contains a small number of packages: