Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@FrozenPandaz
Copy link
Collaborator

Current Behavior

Batch mode is binary:

  • --batch flag → batch ALL executors that support it
  • No flag → batch NOTHING

This means users of gradle/maven must always remember to pass --batch to get the performance benefits.

Expected Behavior

Plugin authors can now set preferBatch: true in 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 nothing
  • (not specified) → use each executor's preferBatch preference
--batch flag preferBatch Result
true any Batch
false any No batch
not set true Batch
not set false/undefined No batch

Changes

  • Added preferBatch?: boolean to ExecutorJsonEntryConfig and ExecutorConfig interfaces
  • Updated --batch default from false to undefined to allow preferBatch to decide
  • Modified batch scheduling logic to respect preferBatch
  • Enabled preferBatch: true for gradle and maven executors
  • Added 5 unit tests covering all preferBatch scenarios

Related Issue(s)

@vercel
Copy link

vercel bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nx-dev Ready Ready Preview Feb 3, 2026 9:57pm

Request Review

@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit e67b5f1
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/698e462225996800081f9b63
😎 Deploy Preview https://deploy-preview-34293--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Feb 3, 2026

View your CI Pipeline Execution ↗ for commit e67b5f1

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ❌ Failed 48m 52s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 59s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 7s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-12 22:23:00 UTC

@netlify
Copy link

netlify bot commented Feb 6, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit e67b5f1
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/698e462253e8ca0008fb889a
😎 Deploy Preview https://deploy-preview-34293--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

nx-cloud[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz force-pushed the feat/prefer-batch-executor-option branch 3 times, most recently from 36d8da9 to 6ef956f Compare February 11, 2026 23:05
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.
@FrozenPandaz FrozenPandaz force-pushed the feat/prefer-batch-executor-option branch from 6ef956f to 0b57741 Compare February 12, 2026 20:26
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]
Copy link
Contributor

@nx-cloud nx-cloud bot left a 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.

Nx Cloud View detailed reasoning in Nx Cloud ↗


🎓 Learn more about Self-Healing CI on nx.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant