-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(core): add preferBatch executor option #34293
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
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
View your CI Pipeline Execution ↗ for commit e67b5f1
☁️ Nx Cloud last updated this comment at |
97d26d5 to
c5dca78
Compare
45c979f to
aff4f00
Compare
aff4f00 to
b01cc68
Compare
b01cc68 to
f1ff4ed
Compare
f1ff4ed to
f7ad4f3
Compare
✅ Deploy Preview for nx-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
36d8da9 to
6ef956f
Compare
Add a `preferBatch` property to executor configuration that allows plugin authors to indicate their executor should use batch mode by default, while still allowing users to opt-out with --no-batch. Behavior: - --batch flag: batch everything - --no-batch flag: batch nothing - not specified: use each executor's preferBatch preference Enable preferBatch for gradle and maven executors since they benefit most from batch execution.
6ef956f to
0b57741
Compare
Add a `preferBatch` property to executor configuration that allows plugin authors to indicate their executor should use batch mode by default, while still allowing users to opt-out with --no-batch. Behavior: - --batch flag: batch everything - --no-batch flag: batch nothing - not specified: use each executor's preferBatch preference Enable preferBatch for gradle and maven executors since they benefit most from batch execution. [Self-Healing CI Rerun]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nx Cloud has identified a flaky task in your failed CI:
🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.
🎓 Learn more about Self-Healing CI on nx.dev
Current Behavior
Batch mode is binary:
--batchflag → batch ALL executors that support itThis means users of gradle/maven must always remember to pass
--batchto get the performance benefits.Expected Behavior
Plugin authors can now set
preferBatch: truein their executor config to indicate batch mode should be used by default. Users can still opt-out with--no-batch.Three states:
--batch→ batch everything--no-batch→ batch nothingpreferBatchpreference--batchflagpreferBatchtruefalsetruefalse/undefinedChanges
preferBatch?: booleantoExecutorJsonEntryConfigandExecutorConfiginterfaces--batchdefault fromfalsetoundefinedto allowpreferBatchto decidepreferBatchpreferBatch: truefor gradle and maven executorspreferBatchscenariosRelated Issue(s)