-
Notifications
You must be signed in to change notification settings - Fork 5.2k
feat: Add --features
option to legacy build system CLI
#33485
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
Open
rekmarks
wants to merge
4
commits into
main
Choose a base branch
from
rekm/build-features-option
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+92
−29
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Builds ready [25539ed]
UI Startup Metrics (1232 ± 62 ms)
Benchmark value 24 exceeds gate value 18 for chrome browserify home p95 backgroundConnect Benchmark value 2556 exceeds gate value 2454 for chrome webpack home p95 uiStartup Benchmark value 1647 exceeds gate value 1615 for firefox webpack home mean uiStartup Benchmark value 1428 exceeds gate value 1380 for firefox webpack home mean load Benchmark value 1428 exceeds gate value 1380 for firefox webpack home mean domContentLoaded Benchmark value 44 exceeds gate value 38 for firefox webpack home mean firstReactRender Benchmark value 1407 exceeds gate value 1360 for firefox webpack home mean loadScripts Benchmark value 2031 exceeds gate value 1935 for firefox webpack home p95 uiStartup Benchmark value 1829 exceeds gate value 1660 for firefox webpack home p95 load Benchmark value 1828 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded Benchmark value 1805 exceeds gate value 1630 for firefox webpack home p95 loadScripts Sum of mean exceeds: 183ms | Sum of p95 exceeds: 716ms Sum of all benchmark exceeds: 899ms Bundle size diffs
|
Builds ready [fc59f41]
UI Startup Metrics (1206 ± 62 ms)
Benchmark value 2541 exceeds gate value 2454 for chrome webpack home p95 uiStartup Benchmark value 264 exceeds gate value 65 for chrome webpack home p95 setupStore Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender Benchmark value 1970 exceeds gate value 1935 for firefox webpack home p95 uiStartup Benchmark value 1727 exceeds gate value 1660 for firefox webpack home p95 load Benchmark value 1727 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded Benchmark value 1706 exceeds gate value 1630 for firefox webpack home p95 loadScripts Sum of mean exceeds: 4ms | Sum of p95 exceeds: 539ms Sum of all benchmark exceeds: 543ms Bundle size diffs
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-buildSystem
related to our build system
INVALID-PR-TEMPLATE
PR's body doesn't match template
team-ocap-kernel
The Ocap Kernel team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Teams have been testing features in different build types by modifying
builds.yml
without committing the changes. To improve upon this sorry situation, this PR adds a--features
option to the legacy build system CLI. You can specify any feature defined under the top-levelfeatures
property ofbuilds.yml
. Redundantly specified features are permitted.The "active features" are implemented as a frozen array private to
development/build/config.js
. This array is set once, bysetActiveFeatures()
duringparseArgv()
indevelopment/build/index.js
. The array can only be set once. Rather than threading the active features through the various build system functions, we always retrieve mutable copies of the cached active features viagetActiveFeatures()
.Manual testing steps
Additional features
Any feature not in the active build type will do, but for example:
yarn start --features bitcoin
Redundant features
yarn start --features build-main
yarn start
Non-existent features
yarn start --features foo
Pre-merge author checklist
Pre-merge reviewer checklist