-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZOOKEEPER-3797 Conflict between fatjar and full-build Maven profiles #1323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good. The question from my side it about version number. Why this branch has a version number 3.6.2-SNAPSHOT and targets for 3.6.1 release? Could you point it out to me the release progress?
@@ -258,6 +258,7 @@ | |||
<profile> | |||
<id>full-build</id> | |||
<modules> | |||
<module>zookeeper-it</module> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the reason of this change? It seems a change we should cheery pick for master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because fatjar needs it.
master branch is differentf from branch-3.6
we have now branch release-3.6.1 for 3.6.1 release. |
thank you @tisonkun |
retest this please |
it looks like maven build does not start on CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to the changes so far, but you'll need to also include -Pfull-build
in the <preparationGoals>
and <completionGoals>
for the maven-release-plugin
configuration if you want to activate all modules for pom version updates during release:prepare
. (See my similar changes on #1314 )
Note: if this PR gets applied before #1314, I'll update #1314 to align with whatever was decided in this PR.
We are using preparationGoals only in order to fix c client files. |
I'm not sure I understand this comment. |
AFAIK preparationGoals and completion goals are additional goals to execute in different steps of the procedure. The current procedure works well and modifies the files on the c client that are not handled by Maven. I think there is no need to change. |
Okay, the part where I was confused is how to activate all the modules during version-bumping when I've never run a Maven project where all modules weren't activated by default, so I was a little confused on how to deal with that for releases. You will still need to fix the project parent version in zookeeper-contrib/zookeeper-contrib-fatjar/pom.xml and zookeeper-it/pom.xml so it matches the rest of the project. |
@ctubbsii I have another problem. |
zookeeper-it/pom.xml
Outdated
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<skipTests>true</skipTests> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be shorter.
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<skipTests>true</skipTests> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<properties> | |
<skipTests>true</skipTests> | |
</properties> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thank you @ctubbsii
Spotbugs failed |
<skipTests>true</skipTests> | ||
<spotbugs.skip>true</spotbugs.skip> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lesson learned from #1314 : you might need to skip checkstyle, too.
<skipTests>true</skipTests> | |
<spotbugs.skip>true</spotbugs.skip> | |
<checkstyle.skip>true</checkstyle.skip> | |
<skipTests>true</skipTests> | |
<spotbugs.skip>true</spotbugs.skip> |
the precommit job will run someday :-) |
Build completed with success. |
+1 nice work everyone! |
per the bylaws, http://zookeeper.apache.org/bylaws.html, it looks like we can't get this in until Monday evening since we have to allow 1 business day for voting :'( this is a pretty simple patch, do we have precedent for pushing release changes faster? @fpj @phunt |
I believe the intent is to ensure there is sufficient time for more than just committer/reviewer to take a look before something is committed. This is a bug fix that a number of folks have already commented on, that I don't think would be controversial? I think there has been precedent in the past for such things. |
Enable fatjar module in full-build profile. This is a fix only for branch-3.6, on master branch maven structure is changing, there is no need for this fix Author: Enrico Olivelli <eolivelli@apache.org> Reviewers: phunt@apache.org, breed@apache.org Closes #1323 from eolivelli/fix/ZOOKEEPER-3797 and squashes the following commits: 6dc3270 [Enrico Olivelli] skip checkstyle 1cff2ff [Enrico Olivelli] skip spotbugs 19a8699 [Enrico Olivelli] simplify skipTests e488119 [Enrico Olivelli] skip tests in zookeeper-it 3d6dc50 [Enrico Olivelli] enable zookeeper-it 940aec8 [Enrico Olivelli] ZOOKEEPER-3797 Conflict between fatjar and full-build Maven profiles in branch-3.6 Change-Id: Ifbfc6d1ac63a9eeab399a1fcd575b81185b36fc3
Enable fatjar module in full-build profile. This is a fix only for branch-3.6, on master branch maven structure is changing, there is no need for this fix Author: Enrico Olivelli <eolivelli@apache.org> Reviewers: phunt@apache.org, breed@apache.org Closes #1323 from eolivelli/fix/ZOOKEEPER-3797 and squashes the following commits: 6dc3270 [Enrico Olivelli] skip checkstyle 1cff2ff [Enrico Olivelli] skip spotbugs 19a8699 [Enrico Olivelli] simplify skipTests e488119 [Enrico Olivelli] skip tests in zookeeper-it 3d6dc50 [Enrico Olivelli] enable zookeeper-it 940aec8 [Enrico Olivelli] ZOOKEEPER-3797 Conflict between fatjar and full-build Maven profiles in branch-3.6 Change-Id: Ifbfc6d1ac63a9eeab399a1fcd575b81185b36fc3 (cherry picked from commit c5b4c23) Signed-off-by: Patrick Hunt <phunt@apache.org>
+1, basic testing worked for me (reg/full builds), merged onto branch-3.6 and release-3.6.1 branches. Thanks all! |
thank you @phunt ! |
and thank you @eolivelli, @tisonkun, and @ctubbsii for resolving this so quickly! |
Enable fatjar module in full-build profile. This is a fix only for branch-3.6, on master branch maven structure is changing, there is no need for this fix Author: Enrico Olivelli <eolivelli@apache.org> Reviewers: phunt@apache.org, breed@apache.org Closes apache#1323 from eolivelli/fix/ZOOKEEPER-3797 and squashes the following commits: 6dc3270 [Enrico Olivelli] skip checkstyle 1cff2ff [Enrico Olivelli] skip spotbugs 19a8699 [Enrico Olivelli] simplify skipTests e488119 [Enrico Olivelli] skip tests in zookeeper-it 3d6dc50 [Enrico Olivelli] enable zookeeper-it 940aec8 [Enrico Olivelli] ZOOKEEPER-3797 Conflict between fatjar and full-build Maven profiles in branch-3.6 Change-Id: Ifbfc6d1ac63a9eeab399a1fcd575b81185b36fc3
Enable fatjar module in full-build profile.
This is a fix only for branch-3.6, on master branch maven structure is changing, there is no need for this fix