Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324926 - Multistage publish sometimes increments directory incorrectly
Summary: Multistage publish sometimes increments directory incorrectly
Status: RESOLVED FIXED
Alias: None
Product: WTP Releng
Classification: WebTools
Component: releng (show other bugs)
Version: 3.10   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Williams CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 02:52 EDT by David Williams CLA
Modified: 2018-06-29 15:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2010-09-10 02:52:54 EDT
Since publishing the build multiple times, it seems that sometimes it ends up publishing it to two locations ... one ends up complete, the other is missing tests and reports. Off hand, seems to happen most frequently "across midnight" but it'd be surprising if anything did any "time calculations". 
Probably caching two copies, or something. 

As a recent example, see 
http://build.eclipse.org/webtools/committers/wtp-R3.2.2-M/20100909185724/M-3.2.2-20100909185724/

and 

http://build.eclipse.org/webtools/committers/wtp-R3.2.2-M/20100909163939/M-3.2.2-20100909185724/

Odd thing is, the first one is correct in that directory name matches the timestamp in build id ... that's how it should be. But, it is missing the tests. The tests and reports get copied into the second one, which still has the right time stamp in buildid, but the directory is _lower_ in value! That's what makes me think it was computed earlier, and cached away in the wrong place. Not sure why it would happen sometimes, but not other times.
Comment 1 David Williams CLA 2010-09-10 22:03:21 EDT
I cleaned up the script a little, but wasn't obvious why this "double publish" would happen (to two different time stamp directories). But ... there was some sloppy stuff in there (variables being set twice, cctimestamp being used, instead of timestamp, even though they should be exactly equal) .. so, maybe the cleanup will help. 

For reference, in full log file, search for 
label file:
which might be echo'd more than once, but should always be same value. 
And, 
cctimestamp
timestamp

These should be echo'd just once, per build, when the label.properties file is created. 

Also, I changed so label.properties file is "saved", copied to "site" directory. Besides sanity checking, that might be useful in making some of the php pages less variable or complex, and just read data from label.properties file? 

I've "released" the fix to the builder used for I builds ... should be safe to do so for maintenance at anytime, if no immediate problems.