Skip to main content
Jump to: navigation, search

Difference between revisions of "EDT:Release Engineering"

(Procedure for Milestone Builds)
Line 83: Line 83:
If the build failed because of a Hudson problem, check Bugzilla.  Hudson bugs have Classification=Eclipse Foundation, Product=Community, and Component=Hudson.  If there's no bug for the problem, open one (you can use this link []).
If the build failed because of a Hudson problem, check Bugzilla.  Hudson bugs have Classification=Eclipse Foundation, Product=Community, and Component=Hudson.  If there's no bug for the problem, open one (you can use this link []).
= Starting a New Release =
Only one change needs to be made: update the value of the '''version''' property in org.eclipse.edt.releng\
= Procedure for Milestone Builds =
= Procedure for Milestone Builds =

Revision as of 14:38, 10 April 2012

Release Engineering for EDT

This page contains hints, tips, links, and instructions for the EDT project's release engineer.

Background Information

General Information

The Eclipse Wiki is sometimes useful, and sometimes outdated or missing info you think it should may drive you insane.

The Eclipse sysadmins can be reached at They're very helpful. Before writing to them, check their FAQ at Webmaster_FAQ and the other resources on this page.

You can learn a lot by reading Development_Resources and IT_Infrastructure_Doc.

Developing EDT

To be the release engineer, you have to know the EDT development process in addition to the build process.

Releng Resources and Information


The Bugzilla component for release engineering is EDTBuilds, though some people might report problems on the Website component. See EDT:How to be notified of EDT bugs.


Our builds run in Eclipse's Hudson system. The build job is at

Once you log in, you can disable/enable nightly builds with the Disable/Enable Project button. Click the Configure link to edit the build schedule and many other parameters. One thing you must do is enter your email address in the Email Notification box at the bottom of the Config page. That way you'll know when builds fail.


Some aspects of our builds are configured in Hudson, and the rest are configured by files in the project named org.eclipse.edt.releng. It's a regular Eclipse project, not a plugin. It contains the map file, and the main and build.xml.

Eclipse provides a machine called where you can do various build tasks. Any committer can log in, but the default shell only lets you run one command and then logs you out (to limit the number of people who can screw up the system). The EDT release engineer needs a real shell. Send a request to .


The last step in our build process makes the new build available for download from You can access and modify the downloadable files when you're logged in to, by going to /home/data/httpd/

People are encouraged to use a mirror when downloading files. So rather than using a direct link like, use The download.php script lets people choose a mirror. (But do NOT use this kind of URL for a P2 update site.)

The Archive

Space on the Eclipse download server is limited. It has the latest release, the latest milestone of the next release, and the latest nightly builds. Older nightly builds are deleted, but older milestone and release builds are moved to the archive instead. Its URL is When you're logged in to, our archive can be found at /home/data/httpd/

The MyFoundation Portal

The MyFoundation portal at lets you view and modify various kinds of meta-data about the EDT project.

In the Eclipse Projects box, choose 'view' next to tools.edt, and click '[maintain]' to edit the project meta-data. Fields that may need to be updated from time to time are Bugzilla, Source Repository, and Release.

If you choose '[tools]' next to tools.edt in the Eclipse Projects box, there are links for 'download stats', or to manage Bugzilla stuff use 'Bugzilla components, targets, versions'. You can add milestones, releases, components, etc. Be very careful when working with Bugzilla because many changes are permanent.


Eclipse's cross-project-issues-dev mailing list is for announcements and problems that affect many projects. You should subscribe to it by going to

Our website

The files of are stored in CVS. To view them, make a repository connection like :extssh:<USER>, and go to the folder www/edt/.

Starting a Build

Log in to Hudson and click Build Now. The single build parameter identifies the kind of build: use N for nightly, M for milestone, and R for release. Nothing special needs to be done for nightly builds, but see below for special instructions for milestone and release builds.

Outputs of a Build

Builds use a workspace directory on one of the Hudson slave machines. The workspace can be viewed through Hudson, but it can't be accessed from

After a successful build, the new update sites are accessible from The zipped update site (and JUnit results when we get those going) is in downloads/edt/downloads/drops/BuildTypeName/Version/BuildType_ThisBuild, where

  • downloads is /home/data/httpd/
  • BuildTypeName is nightly, milestones, or release
  • Version is a three-digit version number
  • BuildType is a letter: N for nightly, M for milestone, R for release


The build process also unzips the update site. The update site for a nightly build is unzipped into downloads/edt/updates/nightly/. A milestone build is unzipped into downloads/edt/milestones/1.0/, and a release build is unzipped into downloads/edt/updates/1.0/. See EDT:Update_Site_Guidelines for more info about these update sites.

We give Hudson permission to write into our downloads area using ACLs. The Hudson user is hudsonBuild. If you change the existing structure or make a new directory, but sure to modify its ACL.

How To Deal With a Failed Build

When a build fails, Hudson will send and email to you and everyone who committed a change in that build. The message lists the changes and shows the tail of the build log.

Errors and warnings from javac are shown as numbered lists in the build log. To find a compiler error, search for ". ERROR". The word "error" will show up in several other places, but putting the period and space in front will take you to the compiler's output.

If the build failed because something didn't compile, you probably don't need to remind the developer to fix the problem or help them, unless the failure was a missing plugin. Missing plugins are discussed at EDT:How_to_add_new_EDT_plugins.

If the build failed because of a Hudson problem, check Bugzilla. Hudson bugs have Classification=Eclipse Foundation, Product=Community, and Component=Hudson. If there's no bug for the problem, open one (you can use this link

Starting a New Release

Only one change needs to be made: update the value of the version property in org.eclipse.edt.releng\

Procedure for Milestone Builds

Prior to running a milestone build, we'll probably disable nightly builds and build on-demand. We'll probably be in some kind of lockdown, so you might need to check that nobody snuck anything into CVS that shouldn't be in the milestone build.

There are two special tasks to perform if this is the first build of this milestone.

  1. Move the previous milestone's zipped update site from downloads/edt/milestones/1.0 to the archive. Be sure to put a link to the newly-archived build in the archive's index.html and describe it in the index.html for the newly-archived build's directory. Delete the other contents of the milestone build directory.
  2. Run the copyright tool. We have our own specialized version of Eclipse's tool. It has some bug fixes, knows how to recognize RBD-style copyright comments, and operates on more kinds of files. It's in the IBM CVS repository, project org.eclipse.wst.common.utils under the CopyrightTools folder, in the EDT branch. Check it out, then export it as a deployable jar, and put it in your dropins folder. Restart EDT. You can delete the project. To use the copyright tool, select a file/folder/project and choose Update EDT/RBD Copyrights. Verify that nothing is screwed up before you commit the changes. If the tool detects problems, it will write into a file called copyrightLog.txt in the root of your workspace.

Start a build with type=M. It will take longer than a nightly build because the plugins will be signed.

Move the milestone zip to downloads/edt/milestones/1.0/. Rename the zip and its md5 file to something like and (replace "080M2" with the proper version and milestone). Edit the md5 file. Put in the new name for the zip.

Now unzip artifacts.jar. It contains only one file: artifacts.xml. Edit artifacts.xml. First, turn on download statistics tracking. At the top of the file is a repository tag, which contains a properties tag, which contains several property tags. Increment the value of the properties tag's size attribute and add another property tag: <property name='p2.statsURI' value=''/> Now find the artifact tag for org.eclipse.edt.feature. Increment its size attribute and add this property tag below it: <property name='download.stats' value='/edt/milestones/1.0'/> (the value should match the directory). More info about download tracking is at Equinox_p2_download_stats and Project Download Stats.

Consider adding another property to artifacts.xml, so people can install from a mirror of their choice. We haven't done this yet. Info is at Equinox/p2/p2.mirrorsURL.

Put the new artifacts.xml into artifacts.jar with zip -f artifacts.jar, then delete artifacts.xml.

Finally, send an email to edt-dev so everyone knows the M build is ready for final testing.

When testing is complete, tag the files in CVS. Use a tag name like "EDT080M2". Tag the plugins and features listed in the map file, plus the following four projects. They're used by customBuildCallbacks.xml in org.eclipse.edt.ide.ui.resources to create our RUI widget proejcts during the build.


Procedure for Release Builds

Building a release is very similar to building a milestone, so I'll only note the differences here. Obviously some of the paths are different, and you use R for the buildtype when starting the build.

Before the first R build, archive the last milestone build according to the instructions in the previous section. Then archive the previous release build. In addition to the release's zipped update site in downloads/edt/updates/1.0/, also archive its (non-zipped) update site and all-in-one zips from downloads/edt/releases/1.0/.

When testing is complete, tag the files in CVS with a name like "EDT080GM". Also, create new all-in-one zips according to the instructions in org.eclipse.epp.package.edt.feature/README.txt

Copyright © Eclipse Foundation, Inc. All Rights Reserved.