Skip to content

Conversation

@holdenk
Copy link
Contributor

@holdenk holdenk commented Jul 28, 2020

What changes were proposed in this pull request?

Upgrade codehaus maven build helper to allow people to specify a time during the build to avoid snapshot artifacts with different version strings.

Why are the changes needed?

During builds of snapshots the maven may assign different versions to different artifacts based on the time each individual sub-module starts building.

The timestamp is used as part of the version string when run maven deploy on a snapshot build. This results in different sub-modules having different version strings.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manual build while specifying the current time, ensured the time is consistent in the sub components.

Open question: Ideally I'd like to backport this as well since it's sort of a bug fix and while it does change a dependency version it's not one that is propagated. I'd like to hear folks thoughts about this.

… during the build to avoid snapshot artifacts with different version strings.
@SparkQA
Copy link

SparkQA commented Jul 28, 2020

Test build #126732 has finished for PR 29274 at commit aa2957c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

HyukjinKwon commented Jul 29, 2020

I didn't test it by myself but the change sounds fine to me. cc @dongjoon-hyun and @srowen

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK pending tests

@holdenk
Copy link
Contributor Author

holdenk commented Jul 29, 2020

Thanks @HyukjinKwon I've added that it impacts maven deploy to the description.

@dbtsai dbtsai closed this in 50911df Jul 29, 2020
dbtsai pushed a commit that referenced this pull request Jul 29, 2020
…consistent between modules

### What changes were proposed in this pull request?

Upgrade codehaus maven build helper to allow people to specify a time during the build to avoid snapshot artifacts with different version strings.

### Why are the changes needed?

During builds of snapshots the maven may assign different versions to different artifacts based on the time each individual sub-module starts building.

The timestamp is used as part of the version string when run `maven deploy` on a snapshot build. This results in different sub-modules having different version strings.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual build while specifying the current time, ensured the time is consistent in the sub components.

Open question: Ideally I'd like to backport this as well since it's sort of a bug fix and while it does change a dependency version it's not one that is propagated. I'd like to hear folks thoughts about this.

Closes #29274 from holdenk/SPARK-32397-snapshot-artifact-timestamp-differences.

Authored-by: Holden Karau <[email protected]>
Signed-off-by: DB Tsai <[email protected]>
(cherry picked from commit 50911df)
Signed-off-by: DB Tsai <[email protected]>
dbtsai pushed a commit that referenced this pull request Jul 29, 2020
…consistent between modules

### What changes were proposed in this pull request?

Upgrade codehaus maven build helper to allow people to specify a time during the build to avoid snapshot artifacts with different version strings.

### Why are the changes needed?

During builds of snapshots the maven may assign different versions to different artifacts based on the time each individual sub-module starts building.

The timestamp is used as part of the version string when run `maven deploy` on a snapshot build. This results in different sub-modules having different version strings.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual build while specifying the current time, ensured the time is consistent in the sub components.

Open question: Ideally I'd like to backport this as well since it's sort of a bug fix and while it does change a dependency version it's not one that is propagated. I'd like to hear folks thoughts about this.

Closes #29274 from holdenk/SPARK-32397-snapshot-artifact-timestamp-differences.

Authored-by: Holden Karau <[email protected]>
Signed-off-by: DB Tsai <[email protected]>
(cherry picked from commit 50911df)
Signed-off-by: DB Tsai <[email protected]>
@dbtsai
Copy link
Member

dbtsai commented Jul 29, 2020

Thanks all for reviewing. This will be very useful to release snapshot jars for people to depend on and try out the snapshot release. Merged into master, 3.0, and 2.4 branches as this doesn't have any change in release build and jars.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants