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

[build] Update copyAll implementation #138692

Merged
merged 2 commits into from
Aug 12, 2022
Merged

[build] Update copyAll implementation #138692

merged 2 commits into from
Aug 12, 2022

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented Aug 12, 2022

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

@jbudz jbudz added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes labels Aug 12, 2022
@@ -131,13 +131,6 @@ export async function runDockerGenerator(
dockerBuildDir
);

if (flags.ironbank) {
Copy link
Member Author

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.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@jbudz jbudz marked this pull request as ready for review August 12, 2022 02:56
@jbudz jbudz requested a review from a team as a code owner August 12, 2022 02:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@jbudz jbudz merged commit 339f906 into elastic:main Aug 12, 2022
@kibanamachine kibanamachine added v8.5.0 backport:skip This commit does not require backporting labels Aug 12, 2022
Mpdreamz pushed a commit to Mpdreamz/kibana that referenced this pull request Sep 6, 2022
* [build] Update copyAll implementation

* remove unused copy
mistic pushed a commit to mistic/kibana that referenced this pull request Jun 27, 2023
* [build] Update copyAll implementation

* remove unused copy

(cherry picked from commit 339f906)

# Conflicts:
#	src/dev/build/lib/fs.ts
@mistic
Copy link
Member

mistic commented Jun 27, 2023

💚 All backports created successfully

Status Branch Result
7.17

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

mistic added a commit that referenced this pull request Jun 28, 2023
# 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.17.11 v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants