-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[build] Update copyAll implementation #138692
Conversation
@@ -131,13 +131,6 @@ export async function runDockerGenerator( | |||
dockerBuildDir | |||
); | |||
|
|||
if (flags.ironbank) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't used, and cpy throws errors if nothing matches. I think that's a reasonable API change, but can catch it if there's any concerns.
💚 Build Succeeded
Metrics [docs]
To update your PR or re-run it, just comment with: |
Pinging @elastic/kibana-operations (Team:Operations) |
* [build] Update copyAll implementation * remove unused copy
* [build] Update copyAll implementation * remove unused copy (cherry picked from commit 339f906) # Conflicts: # src/dev/build/lib/fs.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `7.17`: - [[build] Update copyAll implementation (#138692)](#138692) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jonathan Budzenski","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-08-12T11:38:22Z","message":"[build] Update copyAll implementation (#138692)\n\n* [build] Update copyAll implementation\r\n\r\n* remove unused copy","sha":"339f9068fc068ee0f7312206ace5acd7426a3478","branchLabelMapping":{"^v8.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:skip","v8.5.0"],"number":138692,"url":"https://github.com/elastic/kibana/pull/138692","mergeCommit":{"message":"[build] Update copyAll implementation (#138692)\n\n* [build] Update copyAll implementation\r\n\r\n* remove unused copy","sha":"339f9068fc068ee0f7312206ace5acd7426a3478"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.5.0","labelRegex":"^v8.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/138692","number":138692,"mergeCommit":{"message":"[build] Update copyAll implementation (#138692)\n\n* [build] Update copyAll implementation\r\n\r\n* remove unused copy","sha":"339f9068fc068ee0f7312206ace5acd7426a3478"}}]}] BACKPORT--> --------- Co-authored-by: Jonathan Budzenski <[email protected]>
vinyl-fs is not updated frequently and there are more performant options now. This implementation reduces the copy source files task from ~50s to <10s.
Before: https://buildkite.com/elastic/kibana-on-merge/builds/19797#01828f2a-a628-425f-949d-b680c1f8bca1/198-224
After: https://buildkite.com/elastic/kibana-pull-request/builds/64706#01828fc1-ecd8-4881-9db9-9ae27fd5fa3d/207-233