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
[7.11.x] added new groovy script #345
[7.11.x] added new groovy script #345
Conversation
(cherry picked from commit 3003755)
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 from a functional point of view.
However, we introduce code duplication. This is hard to maintain in long term. This groovy file is very similar to downstream_pr_jobs.groovy. Wonder if instead of copying code we should refactor it.
Looks ok, but agree with @pszubiak that if there is a similar code, it should be refactored, because duplicate code is a pain to maintain. |
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.
Looks ok, just one question.
"optaplanner-wb" : [], | ||
"jbpm-designer" : [], | ||
"jbpm-wb" : [] | ||
//"kie-wb-distributions" : [] // kie-wb-distributions is the last repo in the chain |
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.
Just out of curiosity, why is kie-wb-distributions
commented out?
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.
@winklerm good question - this was taken 1:1 from Petr - so we did not change it. There should be no other rep dependent of kie-wb-distributions? (like droolsjbpm-tools)
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.
@winklerm To add my understanding: I believe it's ok to have kie-wb-distributions
and droolsjbpm-tools
commented out.
The purpose of this groovy script is to generate "compile downstream" jobs is to make sure that changes in repo X don't break any of the repos that depend on X. In this particualr case there are no repos that depend on kie-wb-distributions and on droolsjbpm-tools, so we don't need jobs for those.
"**/target/kie-wb*eap*.war", | ||
"**/target/kie-drools-wb*wildfly*.war", | ||
"**/target/kie-drools-wb*eap*.war", | ||
"**/target/kie-server-*ee6.war", |
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.
@mbiarnes you told me that kie-server ee6 is no longer being generated, so it should probably be removed from this "what to archive" section.
label : "kie-rhel7 && kie-mem8g", | ||
ghAuthTokenId : Constants.GITHUB_AUTH_TOKEN, | ||
upstreamMvnArgs : "-B -e -T1C -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true -Denforcer.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true -Drevapi.skip=true clean install", | ||
downstreamMvnGoals : "-B -e -nsu -fae clean install -Dfull=true -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true", |
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.
Since we won't be running any tests in these "just compile" jobs, I would suggest adding -T1C into the downstreamMvnGoals - here maven parallelism shouldn't hurt, on the contrary it will make the jobs run faster.
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; adding -T1C seems to be a very good idea.
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.
@mbiarnes @baldimir I'm fine with merging it "as is" and refactor later.
My other concern is that these two PRs will increase usage of GitHub PR builder plug-in by ~50%. My impression is that the more we use ghpr plug-in the more often Jenkins hangs due to bug identified in it (JENKINS-19123).
Wonder if it makes sense to run these jobs on kie-jenkins until ghpr plug-in issue is solved? Doing that we provide even more chaos but we are limiting the negative impact of this new jobs on normal downstream and PRs jobs. What do you think?
label : "kie-rhel7 && kie-mem8g", | ||
ghAuthTokenId : Constants.GITHUB_AUTH_TOKEN, | ||
upstreamMvnArgs : "-B -e -T1C -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true -Denforcer.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true -Drevapi.skip=true clean install", | ||
downstreamMvnGoals : "-B -e -nsu -fae clean install -Dfull=true -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true", |
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; adding -T1C seems to be a very good idea.
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.
Looks ok to me. Mu understanding is that these new jobs will be run on the old jenkins instance untill the issues with jenkinks github plugins is resolved. Do I have it right?
@jhrcek Yes, that's the idea. Once the issue with ghpr plug-in is solved it will land on rhba-jenkins. The new functionality first will be introduced for the master branch and if everything is fine then support for 7.11.x will be added. |
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 for this experiment
(cherry picked from commit 3003755)
for the compilation of all downstream reps skipping tests and skipping gwt compilation