Hi everyone,

I'd like to propose including PR #9993 in the SeaTunnel 3.0 roadmap, here are 
the details with additional packaging time analysis:

### PR link
https://github.com/apache/seatunnel/pull/9993

### Short description
This PR extracts the shade modules into an independent seatunnel-shade project, 
enables uploading shade-jars to the central repository, and optimizes the 
overall packaging efficiency of SeaTunnel.

### Packaging time analysis (current state before PR optimization)
The current build time breakdown of individual shade modules is as follows, 
highlighting the inefficiency of the integrated build approach:
```
[INFO] SeaTunnel : Shade : 3.0.0 .......................... SUCCESS [ 12.661 s]
[INFO] SeaTunnel : Shade : Hazelcast 5.1-3.0.0 ............ SUCCESS [  8.192 s]
[INFO] SeaTunnel : Shade : Hadoop3 Uber 3.1.4-3.0.0 ....... SUCCESS [02:29 min]
[INFO] SeaTunnel : Shade : Jackson 2.13.3-3.0.0 ........... SUCCESS [  3.289 s]
[INFO] SeaTunnel : Shade : Guava 27.0-jre-3.0.0 ........... SUCCESS [  2.960 s]
[INFO] SeaTunnel : Shade : Hadoop : AWS 3.1.4-3.0.0 ....... SUCCESS [05:05 min]
[INFO] SeaTunnel : Shade : Arrow 15.0.1-3.0.0 ............. SUCCESS [  5.880 s]
[INFO] SeaTunnel : Shade : Hikari 4.0.3-3.0.0 ............. SUCCESS [  1.085 s]
[INFO] SeaTunnel : Shade : Thrift-Service 1.0.0-3.0.0 ..... SUCCESS [  1.572 s]
[INFO] SeaTunnel : Shade : Janino 3.0.11-3.0.0 ............ SUCCESS [  1.235 s]
[INFO] SeaTunnel : Shade : Scala 2.13.11-3.0.0 ............ SUCCESS [  6.586 s]
[INFO] SeaTunnel : Shade : Jetty 9.4.56.v20240826-3.0.0 ... SUCCESS [  2.421 s]
[INFO] SeaTunnel : Shade : Commons Lang3 3.18.0-3.0.0 ..... SUCCESS [  2.044 s]
```
Key observations from the time breakdown:
1. **Long-tail modules dominate build time**: Two modules account for the vast 
majority of shade build time — `Hadoop3 Uber` (2 minutes 29 seconds) and 
`Hadoop : AWS` (5 minutes 5 seconds), totaling ~7.5 minutes, while other 
modules take only a few seconds each.
2. **Integrated build waste**: In the current structure, these time-consuming 
shade modules are built alongside core modules every time SeaTunnel is 
packaged, even when there are no changes to shade dependencies. This results in 
repeated long build cycles for developers and release workflows.
3. **Total shade build time**: The cumulative build time of all shade modules 
is approximately 8 minutes (excluding overlapping/parallel build 
optimizations), which is a significant portion of the overall SeaTunnel 
packaging process.

### Reason for including in 3.0
1. **Build efficiency optimization (quantifiable gains)**:
   - By isolating shade modules into an independent project and uploading 
shade-jars to the central repository, we eliminate the need to rebuild these 
modules in every SeaTunnel packaging cycle. For daily development, this reduces 
the total build time by ~8 minutes per build (for developers not modifying 
shade code).
   - For the 3.0 release process, we can pre-build and publish shade-jars to 
the central repository once, then reference them as dependencies — cutting the 
release packaging time by a substantial margin and reducing the risk of build 
failures caused by long-running shade module builds.
2. **Dependency management enhancement**: Uploading shade-jars to the central 
repository standardizes dependency distribution, avoiding conflicts caused by 
internal shade module duplication across subprojects, and improving the 
stability of the 3.0 version's dependency system.
3. **Project structure rationalization**: Isolating shade modules aligns with 
the modular design concept of 3.0, making the project structure clearer, easier 
to maintain, and facilitating future expansion of shade-related capabilities 
(e.g., adding new shade modules for additional dependencies).

This optimization directly addresses the identified packaging bottlenecks 
(long-tail shade modules) and delivers measurable time savings for both 
development and release workflows — a critical improvement for the smooth 
delivery and maintainability of SeaTunnel 3.0.

Best regards,
zhangdonghao

Reply via email to