cli: add --enable-all-experimentals build flag#62755
cli: add --enable-all-experimentals build flag#62755ShogunPanda wants to merge 3 commits intonodejs:mainfrom
Conversation
|
Review requested:
|
|
That seems like a bad idea; if you want to avoid long commands, use a config file, no? |
|
why would you want to enable ALL experimental flags? It might have side effects the user is not aware of |
|
I can document this to be very bad or dangerous. |
Just to enable a bunch of experimental flags you have to create a JSON file with schema and so forth. Seems to be a little overkill. |
There was a problem hiding this comment.
Making my objection explicit. The node.config.json exists for this specific reason: improve the dx of having a lot of cli flags. I cannot think a use case where you want to enable all experimental flags. This might cause unexpected effects because the interaction between multiple experimental flag is untested. I'd rather have user write a json file than a dangerous "free for all flag"
|
@marco-ippolito I understand your concerns. I disagree, which is totally fine. |
|
An alternative would be a build/configure flag, would that work for you? |
I'm fine with a build flag |
Do you mean a configure flag that enables the CLI flag on C++ side so that only people with custom build will see it? If that's the idea, I'm up for it. Good idea. @marco-ippolito Would it solve your objection? |
|
Amazing. Updating this soon. |
yes, I'm fine with it, would be nice to actually have them enabled without a runtime flag (just the build flag) so you can run the test suite and test the interaction among all the experimental features. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #62755 +/- ##
==========================================
- Coverage 89.68% 89.68% -0.01%
==========================================
Files 706 706
Lines 218143 218143
Branches 41732 41741 +9
==========================================
- Hits 195650 195635 -15
- Misses 14402 14440 +38
+ Partials 8091 8068 -23
🚀 New features to boost your workflow:
|
b7fc072 to
31ba820
Compare
|
@marco-ippolito @aduh95 Updated now. WDYT? |
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
3bbd3e5 to
954d4b4
Compare
| 'python%': 'python', | ||
|
|
||
| 'node_shared%': 'false', | ||
| 'node_enable_experimentals%': 0, |
There was a problem hiding this comment.
| 'node_enable_experimentals%': 0, | |
| 'node_enable_experimentals%': 'false', |
| ['node_enable_experimentals==1', { | ||
| 'defines': ['NODE_ENABLE_EXPERIMENTALS'], | ||
| }], |
There was a problem hiding this comment.
Shouldn't we simply pass the value rather than using a single use precompile variable?
| ['node_enable_experimentals==1', { | |
| 'defines': ['NODE_ENABLE_EXPERIMENTALS'], | |
| }], | |
| ['true', { | |
| 'defines': ['EXPERIMENTALS_DEFAULT_VALUE=<(node_enable_experimentals)'], | |
| }], |
|
@aduh95 How about now? |
This PR adds a new
--enable-all-experimentalsBUILD flag which can be used to turn ALL experimental features on by default.