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] only strip public code, leave other assets #79504

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Oct 5, 2020

Fixes #77705

In #75841 we stripped the public directories from plugins because their code was already bundled and shipped with Kibana. This caused image assets which are served directly from the filesystem and not bundled with webpack to start 404ing in the build, which has been realized now that we're starting to look at snapshots more closely. This changes the copy-code filters for OSS and X-Pack to only skip js, ts, tsx, and JSON files, as those should all be imported by code in order to be included in the build. This leaves behind image and font files which can then be served directly from the file system.

image

@spalger spalger added Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Oct 5, 2020
@spalger spalger requested a review from a team as a code owner October 5, 2020 16:51
@elasticmachine
Copy link
Contributor

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

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

distributable file count

id before after diff
default 47107 48061 +954
oss 28597 28979 +382

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

@spalger spalger merged commit a08fe39 into elastic:master Oct 5, 2020
@spalger spalger deleted the fix/only-strip-public-code branch October 5, 2020 18:47
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Oct 7, 2020
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 79504 or prevent reminders by adding the backport:skip label.

@spalger spalger added the v7.11.0 label Oct 7, 2020
spalger added a commit to spalger/kibana that referenced this pull request Oct 7, 2020
spalger added a commit to spalger/kibana that referenced this pull request Oct 7, 2020
spalger added a commit that referenced this pull request Oct 7, 2020
spalger added a commit that referenced this pull request Oct 7, 2020
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.10.0 v7.11.0 v8.0.0
Projects
None yet
4 participants