slfan1989 opened a new pull request, #2021:
URL: https://github.com/apache/auron/pull/2021
### Which issue does this PR close?
Closes #2020
### Rationale for this change
Currently, local builds are always single-threaded, which can be slow on
multi-core machines. Docker builds hardcode `-T8`, which cannot be overridden
by users. This change adds a `--threads` option to `auron-build.sh` to give
users control over Maven build parallelism.
### What changes are included in this PR?
1. **auron-build.sh**
- Added `--threads` parameter parsing and validation
- Unified thread configuration logic: user-specified value takes
precedence, Docker defaults to 8 threads, local defaults to single-threaded
- Removed hardcoded `-T8` from Docker build section
- Updated help text to document the new option
2. **CONTRIBUTING.md**
- Documented `--threads` option under Build Options section
- Described default behavior for local vs Docker builds
### Are there any user-facing changes?
Yes. Users can now specify `--threads` to control Maven build parallelism
Default behavior remains unchanged (backward compatible):
- Local builds: single-threaded
- Docker builds: 8 threads
### How was this patch tested?
- Verified `./auron-build.sh --help` displays correct usage information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]