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): enable yarn prefer offline and local mirror for development #84124

Merged
merged 10 commits into from
Nov 25, 2020

Conversation

mistic
Copy link
Member

@mistic mistic commented Nov 23, 2020

Last week when playing with some yarn configs I realised by enabling the prefer-offline + local mirror on my dev environment I could save up ~20 seconds when doing a cold bootstrap. I'm putting up that PR to ask for your help validating this so we can make everyone else also benefiting from it. Note that I've enabled that option through the .yarnrc flag instead of enabling the kbn bootstap flag in order to already prepare it for the upcoming bazel work over the next months.

@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 Nov 23, 2020
@mistic mistic requested review from a team as code owners November 23, 2020 17:12
@mistic mistic self-assigned this Nov 23, 2020
@elasticmachine
Copy link
Contributor

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

@wayneseymour
Copy link
Member

Even though we build the coverage system, I wasn't personally responsible for creating the coverage summaries themselves.
So, I'm running the coverage job against this branch to see what happens.

https://kibana-ci.elastic.co/job/elastic+kibana+code-coverage/1342/

Note, this is my first time trying to run against a forked branch, hope it works lol

@mistic
Copy link
Member Author

mistic commented Nov 24, 2020

@wayneseymour it looks like it passed 😃

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.

LGTM

@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 752.7KB 752.7KB -44.0B

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.5KB -44.0B

History

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

@mistic mistic merged commit aa8ec78 into elastic:master Nov 25, 2020
@mistic
Copy link
Member Author

mistic commented Nov 25, 2020

7.x: f93ffd2

mistic added a commit to mistic/kibana that referenced this pull request Nov 25, 2020
elastic#84124)

* chore(NA): enable --prefer-offline by default

* chore(NA): use prefer offline in the yarnrc

* chore(NA): update kbn pm

* chore(NA): add yarn offline mirror integration

* chore(NA): remove non wanted prune feature due to switching between branches

* chore(NA): re-introduce babel require hook
# Conflicts:
#	.ci/packer_cache_for_branch.sh
#	.gitignore
#	vars/kibanaCoverage.groovy
#	vars/kibanaTeamAssign.groovy
mistic added a commit that referenced this pull request Nov 25, 2020
#84124) (#84297)

* chore(NA): enable --prefer-offline by default

* chore(NA): use prefer offline in the yarnrc

* chore(NA): update kbn pm

* chore(NA): add yarn offline mirror integration

* chore(NA): remove non wanted prune feature due to switching between branches

* chore(NA): re-introduce babel require hook
# Conflicts:
#	.ci/packer_cache_for_branch.sh
#	.gitignore
#	vars/kibanaCoverage.groovy
#	vars/kibanaTeamAssign.groovy
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