wForget opened a new issue, #2769:
URL: https://github.com/apache/uniffle/issues/2769

   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [x] I have searched in the 
[issues](https://github.com/apache/incubator-uniffle/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What would you like to be improved?
   
   ### What is the problem?
   
   `.github/workflows/sequential.yml` executes multiple Maven profiles in the 
same
   workspace without cleaning their build outputs between invocations, 
including:
   
   - `spark4`
   - `spark4.1`
   - `spark3`
   - `spark2`
   - Hadoop MR profiles
   - Tez
   - Dashboard
   
   Some profiles share modules and `target` directories while using different
   dependency versions, Scala versions, or profile-specific source directories.
   
   Maven and `scala-maven-plugin` incremental compilation do not reliably detect
   all profile or classpath changes. They may report `Nothing to compile` and
   package classes produced by the previous profile. This can make the workflow
   order-dependent, produce incorrect jars, or allow CI checks to pass without
   actually compiling the selected profile.
   
   This pre-existing isolation problem became visible while validating PR #2768;
   the PR exposed the problem but did not introduce its underlying cause.
   
   ### Example
   
   When two consecutive Spark profiles select different source directories that
   define the same class:
   
   ```bash
   ./mvnw -B -DskipTests package -Pspark4.1
   ./mvnw -B -DskipTests package -Pspark4.2
   ```
   
   The second invocation may report `Nothing to compile` and package the
   `ServletCompat` class generated by the first profile.
   
   A clean build of the second profile produces different, correct bytecode.
   
   ### Expected behavior
   
   Every profile invocation in the sequential workflow should compile and 
package
   only the sources and dependencies selected by that profile, independently of
   previous steps.
   
   ### Proposed solution
   
   Run `clean` before every profile-specific invocation in `sequential.yml`, for
   example:
   
   ```bash
   ./mvnw -B -fae clean ${{ inputs.maven-args }} -P<profile>
   ```
   
   Alternatively, run each profile in an isolated workspace or job.
   
   ### Impact
   
   This affects the reliability of sequential CI validation and may produce
   incorrect profile-specific artifacts while still reporting a successful 
build.
   
   ### How should we improve?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!


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