Hudson using stale code

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Hudson using stale code

Jeff Mutonho
Hi

I've got a few java classes  that seem not to being checked out and build.I've confirmed this by looking at the classes in my built ear file and what's in the cvs repository, and they are different , with the ear file having the older file from the last build.Seems like the updated files were not checked out to be built.

--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042
Reply | Threaded
Open this post in threaded view
|

Re: Hudson using stale code

Jeff Mutonho


On 7/18/07, Jeff Mutonho <[hidden email]> wrote:
Hi

I've got a few java classes  that seem not to being checked out and build.I've confirmed this by looking at the classes in my built ear file and what's in the cvs repository, and they are different , with the ear file having the older file from the last build.Seems like the updated files were not checked out to be built.


I want to add that I'm not using the update option
--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042
Reply | Threaded
Open this post in threaded view
|

Re: Hudson using stale code

Jeff Mutonho


On 7/18/07, Jeff Mutonho <[hidden email]> wrote:


On 7/18/07, Jeff Mutonho <[hidden email]> wrote:
Hi

I've got a few java classes  that seem not to being checked out and build.I've confirmed this by looking at the classes in my built ear file and what's in the cvs repository, and they are different , with the ear file having the older file from the last build.Seems like the updated files were not checked out to be built.


I want to add that I'm not using the update option

I'm desperate for help.I've just checked some of the java files under the "workspace" directory and  they were last modified 5 days ago and the checkout is not replacing with the new  ones in CVS

--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042
Reply | Threaded
Open this post in threaded view
|

Re: Hudson using stale code

Wolfram Kroll-2
Hi Jeff,

Am 18.07.2007 um 17:20 schrieb Jeff Mutonho:

> On 7/18/07, Jeff Mutonho <[hidden email]> wrote:
>>
>>
>>
>> On 7/18/07, Jeff Mutonho <[hidden email]> wrote:
>> >
>> > Hi
>> >
>> > I've got a few java classes  that seem not to being checked out and
>> > build.I've confirmed this by looking at the classes in my built  
>> ear file
>> > and what's in the cvs repository, and they are different , with  
>> the ear file
>> > having the older file from the last build.Seems like the updated  
>> files
>> > were not checked out to be built.
>>
>>
>>
>> I want to add that I'm not using the update option
>
>
> I'm desperate for help.I've just checked some of the java files  
> under the
> "workspace" directory and  they were last modified 5 days ago and the
> checkout is not replacing with the new  ones in CVS

I've had a similar problem with stale files downloaded via the web  
interface of Hudson. Firefox did not reload pages and presented  me  
files adn pages from its cache. Only cleaning Firefox' cache helped.  
Did you check this? Did you load your built file via the web  
interface or get it directly from the file system?

Wolfram

>
> --
>
> "Don't take the name of root in vain."
>
> Jeff  Mutonho
> Cape Town
> South Africa
>
> GoogleTalk : ejbengine
> Skype        : ejbengine
> Registered Linux user number 366042

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Hudson using stale code

Kohsuke Kawaguchi
Administrator

Perhaps this is related to
https://hudson.dev.java.net/issues/show_bug.cgi?id=272 ?

Wolfram Kroll wrote:

> Hi Jeff,
>
> Am 18.07.2007 um 17:20 schrieb Jeff Mutonho:
>
>> On 7/18/07, Jeff Mutonho <[hidden email]> wrote:
>>>
>>>
>>>
>>> On 7/18/07, Jeff Mutonho <[hidden email]> wrote:
>>> >
>>> > Hi
>>> >
>>> > I've got a few java classes  that seem not to being checked out and
>>> > build.I've confirmed this by looking at the classes in my built  
>>> ear file
>>> > and what's in the cvs repository, and they are different , with  
>>> the ear file
>>> > having the older file from the last build.Seems like the updated  
>>> files
>>> > were not checked out to be built.
>>>
>>>
>>>
>>> I want to add that I'm not using the update option
>>
>>
>> I'm desperate for help.I've just checked some of the java files  
>> under the
>> "workspace" directory and  they were last modified 5 days ago and the
>> checkout is not replacing with the new  ones in CVS
>
> I've had a similar problem with stale files downloaded via the web  
> interface of Hudson. Firefox did not reload pages and presented  me  
> files adn pages from its cache. Only cleaning Firefox' cache helped.  
> Did you check this? Did you load your built file via the web  
> interface or get it directly from the file system?

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Hudson using stale code

Jeff Mutonho
In reply to this post by Wolfram Kroll-2


On 7/18/07, Wolfram Kroll <[hidden email]> wrote:
Hi Jeff,


I've had a similar problem with stale files downloaded via the web
interface of Hudson. Firefox did not reload pages and presented  me
files adn pages from its cache. Only cleaning Firefox' cache helped.
Did you check this? Did you load your built file via the web
interface or get it directly from the file system?

Wolfram

Nope . I'm not using Firefox to load the build file.I only use it to view progress of builds.



--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042
Reply | Threaded
Open this post in threaded view
|

Re: Hudson using stale code

Jeff Mutonho
In reply to this post by Kohsuke Kawaguchi


On 7/18/07, Kohsuke Kawaguchi <[hidden email]> wrote:

Perhaps this is related to
https://hudson.dev.java.net/issues/show_bug.cgi?id=272 ?


I don't think this is browser related.My build machine is a Solaris box hosting tomcat 6 and maven.
What I build is an ear file that later gets deployed to our QA environment.Since we're fixing defects in our code base, I got to know about this by other team members complaining that  their changes to the code(defect fixes) are not appearing when the ear file is deployed to the QA environment.I then checked the classes in the ear using a decompiler and indeed what was there was the old "un-updated" code.This prompted me to check the java source files in my HUDSON_HOME project workspace directory and indeed the java source files are also old and have not been replaced with the new code in CVS. So it looks like the new code is NOT being checkout of CVS when a build runs and stale code sitting the workspace directory is being used in the builds.
My builds are running hourly.
--



"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042
Reply | Threaded
Open this post in threaded view
|

Re: Hudson using stale code

Jeff Mutonho


On 7/18/07, Jeff Mutonho <[hidden email]> wrote:


On 7/18/07, Kohsuke Kawaguchi <[hidden email]> wrote:

Perhaps this is related to
<a href="https://hudson.dev.java.net/issues/show_bug.cgi?id=272" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://hudson.dev.java.net/issues/show_bug.cgi?id=272 ?


I don't think this is browser related.My build machine is a Solaris box hosting tomcat 6 and maven.
What I build is an ear file that later gets deployed to our QA environment.Since we're fixing defects in our code base, I got to know about this by other team members complaining that  their changes to the code(defect fixes) are not appearing when the ear file is deployed to the QA environment.I then checked the classes in the ear using a decompiler and indeed what was there was the old "un-updated" code.This prompted me to check the java source files in my HUDSON_HOME project workspace directory and indeed the java source files are also old and have not been replaced with the new code in CVS. So it looks like the new code is NOT being checkout of CVS when a build runs and stale code sitting the workspace directory is being used in the builds.
My builds are running hourly.

--

Just to clear things as well , I'm not browsing the workspace directory using Firefox.I literally login to the Solaris build machine and user the file system tools to check the java source files

--

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042
Reply | Threaded
Open this post in threaded view
|

Re: Hudson using stale code

Kohsuke Kawaguchi
Administrator
In reply to this post by Jeff Mutonho
Jeff Mutonho wrote:
> I'm desperate for help.I've just checked some of the java files under the
> "workspace" directory and  they were last modified 5 days ago and the
> checkout is not replacing with the new  ones in CVS

Maybe CVS is just setting the timestamp of the file it checked out to
represent the last commit tiemstamp of that file?

You can run "cvs info <file>" to get the revision of the file in the
workspace. You should check to see if it is indeed not the latest.

If you look at the console output, you'll see the exact CVS command line
that Hudson is using to check out / update. In particular, it uses the
-D option to set a timestamp for checking out. So if the clock of your
build machine and CVS server are out of sync, you can get into a
situation where Hudson doesn't seem to be checking out the latest.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment