You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Rushabh Shah <ru...@oath.com.INVALID> on 2017/12/01 20:18:44 UTC
Same jenkins build running on 2 patches.
Hi All,
Recently I uploaded trunk, branch-2 and branch-2.8 patch
(HDFS-12396.006.patch, HDFS-12396-branch-2.patch, HDFS-12396-branch-2.8.patch
respectively) for HDFS-12396
<https://issues.apache.org/jira/browse/HDFS-12396>.
Jenkins triggered 2 builds, one for trunk patch and another for branch-2.8.
Jenkins build for trunk:
https://builds.apache.org/job/PreCommit-HDFS-Build/22240
Jenkins build for branch-2.8:
https://builds.apache.org/job/PreCommit-HDFS-Build/22241
Something weird happened in trunk build (build:22240)
Initially it downloaded trunk version of patch.
Below are some relevant lines from console output.
> Processing: HDFS-12396
> HDFS-12396 patch is being downloaded at Thu Nov 30 22:21:19 UTC 2017 from
>
> https://issues.apache.org/jira/secure/attachment/12900094/HDFS-12396.006.patch
> -> Downloaded
But 11 minutes later, the same build downloaded branch-2.8 version of the
patch.
> Processing: HDFS-12396
> HDFS-12396 patch is being downloaded at Thu Nov 30 22:32:38 UTC 2017 from
>
> https://issues.apache.org/jira/secure/attachment/12900099/HDFS-12396-branch-2.8.patch
> -> Downloaded
Genericqa attached 2 reports on the jira both for branch-2.8 patch.
Can someone explain me what happened ?
Adding Allen as cc.
Thanks,
Rushabh Shah
Re: Same jenkins build running on 2 patches.
Posted by Allen Wittenauer <aw...@effectivemachines.com>.
> On Dec 1, 2017, at 1:36 PM, Jason Lowe <jl...@oath.com> wrote:
> I thought the admin precommit build was kicking off the project-specific precommit build with an attachment ID argument so the project precommit can be consistent with the admin precommit build on what triggered the precommit process.
precommit-admin generates a list of JIRA issue ids and passes those to the build jobs. The JIRA issue ids are generated from a simple JQL statement. precommit build is the first time the attachment id’s are determined.
> If the patch is tracked by attachment ID then I think the build would remain consistent even when users attach new patches in the middle of the precommit process.
Implementation of YETUS-504 will almost certainly eliminate the double download in Dockerized situations since the credentials will only be available outside of it. In the process, certain testing scenarios also get dropped, but security is more important.
That said, fixing users attempting to prematurely optimize test runs is pretty low on the priority list. For my own project list, some way to inform a user that only 20-30% of the HDFS unit tests in branch-2 are getting executed is way higher. [trunk comes in at around 80% post-surefire 2.20.1.] precommit’s output doesn’t reflect tests that don’t run because surefire doesn’t report them either. See also SUREFIRE-1447.
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org
Re: Same jenkins build running on 2 patches.
Posted by Jason Lowe <jl...@oath.com.INVALID>.
Is it possible to track the patch by JIRA attachment ID rather than assume
the most recent attachment is the right one? I thought the admin precommit
build was kicking off the project-specific precommit build with an
attachment ID argument so the project precommit can be consistent with the
admin precommit build on what triggered the precommit process. If the
patch is tracked by attachment ID then I think the build would remain
consistent even when users attach new patches in the middle of the
precommit process.
Jason
On Fri, Dec 1, 2017 at 2:43 PM, Allen Wittenauer <aw...@effectivemachines.com>
wrote:
>
> > On Dec 1, 2017, at 12:18 PM, Rushabh Shah <ru...@oath.com> wrote:
> > Can someone explain me what happened ?
>
> Yetus downloaded the patch to make sure it applied before
> bothering to do anything else to make sure it wasn’t going to burn cycles
> on the build boxes for no reason. Docker mode was active so it then went
> to re-exec itself under Docker. But it had to build the Docker image
> first. This can take anywhere from 9 minutes to 20 minutes, depending
> primarily on which branch’s Dockerfile was in use. While this was going
> on, another two patches were uploaded. Docker build finishes. When Yetus
> re-exec’ed itself under Docker, it re-grabs the patch (since the
> world—including Yetus itself!--may be different now that it is Docker). In
> this case, it grabbed the last of the newly uploaded patches and attempted
> to churn it’s way through it.
>
> a) Uploading two patches at once has never ever worked and will
> likely never be made to work. (There are lots of reasons for this.)
>
> b) Before uploading a new patch, wait for the feedback or at least
> make sure the Jenkins job is actually past “Determining needed tests”
> before uploading a new one. Just be aware that test output is going to get
> very hard to follow with all of the cross posting.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
> For additional commands, e-mail: common-dev-help@hadoop.apache.org
>
>
Re: Same jenkins build running on 2 patches.
Posted by Rushabh Shah <ru...@oath.com.INVALID>.
Thanks Allen for your response.
On Fri, Dec 1, 2017 at 2:43 PM, Allen Wittenauer <aw...@effectivemachines.com>
wrote:
>
> > On Dec 1, 2017, at 12:18 PM, Rushabh Shah <ru...@oath.com> wrote:
> > Can someone explain me what happened ?
>
> Yetus downloaded the patch to make sure it applied before
> bothering to do anything else to make sure it wasn’t going to burn cycles
> on the build boxes for no reason. Docker mode was active so it then went
> to re-exec itself under Docker. But it had to build the Docker image
> first. This can take anywhere from 9 minutes to 20 minutes, depending
> primarily on which branch’s Dockerfile was in use. While this was going
> on, another two patches were uploaded. Docker build finishes. When Yetus
> re-exec’ed itself under Docker, it re-grabs the patch (since the
> world—including Yetus itself!--may be different now that it is Docker). In
> this case, it grabbed the last of the newly uploaded patches and attempted
> to churn it’s way through it.
>
> a) Uploading two patches at once has never ever worked and will
> likely never be made to work. (There are lots of reasons for this.)
>
> b) Before uploading a new patch, wait for the feedback or at least
> make sure the Jenkins job is actually past “Determining needed tests”
> before uploading a new one. Just be aware that test output is going to get
> very hard to follow with all of the cross posting.
Re: Same jenkins build running on 2 patches.
Posted by Allen Wittenauer <aw...@effectivemachines.com>.
> On Dec 1, 2017, at 12:18 PM, Rushabh Shah <ru...@oath.com> wrote:
> Can someone explain me what happened ?
Yetus downloaded the patch to make sure it applied before bothering to do anything else to make sure it wasn’t going to burn cycles on the build boxes for no reason. Docker mode was active so it then went to re-exec itself under Docker. But it had to build the Docker image first. This can take anywhere from 9 minutes to 20 minutes, depending primarily on which branch’s Dockerfile was in use. While this was going on, another two patches were uploaded. Docker build finishes. When Yetus re-exec’ed itself under Docker, it re-grabs the patch (since the world—including Yetus itself!--may be different now that it is Docker). In this case, it grabbed the last of the newly uploaded patches and attempted to churn it’s way through it.
a) Uploading two patches at once has never ever worked and will likely never be made to work. (There are lots of reasons for this.)
b) Before uploading a new patch, wait for the feedback or at least make sure the Jenkins job is actually past “Determining needed tests” before uploading a new one. Just be aware that test output is going to get very hard to follow with all of the cross posting.
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org