Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354255 - [releng] git archive is returning old version of builder
Summary: [releng] git archive is returning old version of builder
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Releng (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.3 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 10:18 EDT by Andrew Niefer CLA
Modified: 2011-08-10 12:01 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2011-08-09 10:18:47 EDT
The releng scripts use the following command to get the most recent builder from git:

git archive 
   --format=tar --verbose 
   --remote=/gitroot/orion/org.eclipse.orion.server.git
   --output orion-releng.tar  
   master 
   releng/org.eclipse.orion.releng

For some reason, when run via cronjob for an automated build, this command ends up returning an old builder, it looks like the builder tagged v20110705-0200 in git.

This builder is out of date due to bug 351192 and the build fails.
Comment 1 John Arthorne CLA 2011-08-09 13:38:37 EDT
I was getting this frequently when you were away. It seemed intermittent when running from a crontab. When manually invoking git archive I wasn't able to reproduce the problem.
Comment 2 Andrew Niefer CLA 2011-08-09 17:32:07 EDT
The shell script is already cloning the git repo locally so that it can do the tag.  I didn't have time today, but I think I will change the script to copy the builder from that local cloned repo instead of doing the git archive.

(We didn't used to be cloning the repo locally, which is why we were using git archive).
Comment 3 Andrew Niefer CLA 2011-08-10 11:56:47 EDT
bug 351740 and bug 353340 introduce support for per repo/project settings for fetch tag overrides.

We should update the basebuilder with this so that we can let platform ui use R3_development for nightly builds instead of having to keep master in sync with the dev branch.

This would mean a fetchTag property like
fetchTag=CVS=HEAD,GIT=master;git://git.eclipse.org/gitroot/platform/eclipse.platform.ui.git=R3_development



This would deserve a test build.
Comment 4 Andrew Niefer CLA 2011-08-10 11:57:24 EDT
Please ignore comment #3, it was intended to be a new bug and is unrelated to orion.
Comment 5 Andrew Niefer CLA 2011-08-10 12:01:05 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=3616def24a82ce41c39c87f2ee6f67bb439d2236

I have changed the builder to stop using git archive here.