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

chore(NA): add resolution for chokidar to prevent fsevents@1.x #85171

Merged
merged 12 commits into from
Dec 9, 2020

Conversation

mistic
Copy link
Member

@mistic mistic commented Dec 7, 2020

The fsevents 1.x requires a native module to be built every time yarn install runs which invalidates bazel remote cache as discovered as part of #74105.

In order to avoid that in our effort for the future new build tools #69706 we want to prevent this happening with that PR which adds resolutions for chokidar who was the package being responsible to install multiple versions of fsevents.

Currently we cannot add a resolution for fsevents due to yarnpkg/yarn#6834 and as yarn is currently not handling it right, due to a bug, setting the resolution will make yarn try to install the optional dependency anyway under linux and windows which are not os system not supported for fsevents.

@mistic mistic added chore Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.11.0 labels Dec 7, 2020
@mistic mistic requested a review from tylersmalley December 7, 2020 18:03
@mistic mistic self-assigned this Dec 7, 2020
@elasticmachine
Copy link
Contributor

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

@mistic mistic changed the title chore(NA): add resolution for fsevents to avoid 1.x chore(NA): add resolution for chokidar to prevent fsevents@1.x Dec 7, 2020
@mistic mistic changed the title chore(NA): add resolution for chokidar to prevent fsevents@1.x chore(NA): add resolution for chokidar to prevent fsevents@1.x Dec 7, 2020
@mistic mistic requested a review from a team as a code owner December 7, 2020 20:01
Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the release notes for chokidar 3 it seems we shouldn't have any problems relying on it instead of 2, LGTM

@mistic
Copy link
Member Author

mistic commented Dec 9, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 1.7MB 1.7MB +23.0B

Distributable file count

id before after diff
default 46979 47739 +760

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
upgradeAssistant 60.5KB 60.6KB +23.0B

History

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

@mistic mistic mentioned this pull request Dec 9, 2020
23 tasks
@mistic mistic merged commit 90893f9 into elastic:master Dec 9, 2020
@mistic
Copy link
Member Author

mistic commented Dec 10, 2020

7.x: c3a0e29

mistic added a commit to mistic/kibana that referenced this pull request Dec 10, 2020
…ic#85171)

* chore(NA): add fsevents resolution to 2.x

* chore(NA): add fsevents as an optionalDepedency to allow resolutions to be set for it

* chore(NA): remove fsevents resolution from package.json

* chore(NA): remove optionalDependencies from being declared

* chore(NA): update kbn pm dist

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
mistic added a commit that referenced this pull request Dec 10, 2020
… (#85501)

* chore(NA): add fsevents resolution to 2.x

* chore(NA): add fsevents as an optionalDepedency to allow resolutions to be set for it

* chore(NA): remove fsevents resolution from package.json

* chore(NA): remove optionalDependencies from being declared

* chore(NA): update kbn pm dist

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@jbudz jbudz mentioned this pull request Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants