liuneng1994 opened a new pull request, #11645:
URL: https://github.com/apache/incubator-gluten/pull/11645

   ## Summary
   
   This PR adds Bloop build server integration to accelerate Scala development 
workflows. Bloop maintains a persistent JVM with warm Zinc compiler state, 
dramatically reducing incremental compilation times.
   
   ### Key Changes
   
   - **pom.xml**: Add bloop-maven-plugin (v2.0.3) with version property, 
pluginManagement entry, and `-Pbloop` profile to skip style checks during 
config generation
   - **dev/bloop-setup.sh**: Script to generate Bloop configuration with JVM 
test options injection (required for Java 17+) and `-release` option removal 
for compatibility
   - **dev/bloop-test.sh**: Convenience wrapper with 
`SPARK_ANSI_SQL_MODE=false` default for Spark 4.x test compatibility
   - **docs/developers/bloop-integration.md**: Comprehensive usage guide with 
setup instructions and troubleshooting
   
   ### Benchmark Results
   
   | Scenario | Maven | Bloop | Speedup |
   |----------|-------|-------|---------|
   | gluten-core incremental | 8.26s | 0.23s | **35.9x** |
   | gluten-core clean+compile | 29.62s | 14.90s | **2.0x** |
   | Full project incremental | ~2 min | 2.82s | **40.1x** |
   
   ### Usage
   
   ```bash
   # Generate bloop config (first time / when changing profiles)
   ./dev/bloop-setup.sh -Pspark-3.5,scala-2.12,backends-velox
   
   # Compile with watch mode (auto-recompile on save)
   bloop compile gluten-core -w
   
   # Run tests
   bloop test backends-velox -o '*VeloxHashJoinSuite*'
   
   # Or use the convenience wrapper
   ./dev/bloop-test.sh -pl backends-velox -s VeloxHashJoinSuite
   ```
   
   ## Test plan
   
   - [x] Verified bloop config generation with `./dev/bloop-setup.sh 
-Pjava-17,spark-4.1,scala-2.13,backends-velox`
   - [x] Verified compilation: `bloop compile gluten-core` - passes
   - [x] Verified tests: `bloop test gluten-core` - 6 suites, 24 tests pass
   - [x] Verified Spark 4.1 tests with ANSI mode disabled: 
`SPARK_ANSI_SQL_MODE=false bloop test backends-velox -o '*VeloxHashJoinSuite*'` 
- 7 tests pass
   - [x] Verified benchmark results show significant speedup
   - [x] Default Maven builds remain unaffected (bloop profile is opt-in)
   
   🤖 Generated with [Claude Code](https://claude.ai/code)


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to