Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
EMF Facet/Releng/How to Use
The EMF Facet project is built using Buckminster, with this releng project.
EMF Facet uses the same build system as MoDisco. So, for more explanation about how the build process works, see also MoDisco Releng : How it Works.
Contents
What is built?
Two features are built:
- org.eclipse.emf.facet.all.feature
- org.eclipse.emf.facet.tests.site.feature
They are referenced as root dependencies in buckminster.cspec
.
These features must include all other features that must be built, either directly or indirectly.
The releng project contains a Buckminster rmap, which specifies how to get the plug-ins and features that are to be built. For each plug-in or feature, the map defines its location on a version control system (CVS, SVN).
The rmap also specifies the update sites from which to retrieve the binary dependencies from the dependent projects.
How to start a build?
Automatically
45 2-23/3 * * *
- Nightly builds are run every 3 hours everyday, if the EMF Facet SVN changed since the last build.
- Integration builds are started manually, usually to prepare a milestone or release
Manually
- Only committers in the EMF Facet project, and members of the Callisto-dev group can launch EMF Facet build jobs from Hudson.
- Nightly build : go to https://hudson.eclipse.org/hudson/job/emffacet-nightly/
- Integration build : go to https://hudson.eclipse.org/hudson/job/emffacet-integration/
Then:
- In Hudson, click on Build Now, change the build parameters as needed (see #Build parameters), and click on Build.
- You can then click on the job name in the Build History section in the left column, and then on Console Output, to follow build progress in real time.
How to publish a build?
Automatically
Successful Nightly and Integration builds are automatically published to download.eclipse.org. For example, a nightly build for version 0.1.0, created on April 21 2011 at 04:13 would be published to:
- the download drops: http://download.eclipse.org/facet/downloads/drops/0.1.0/N201104210413
- the nightly update site: http://download.eclipse.org/facet/updates/nightly
These builds can then be seen and downloaded from http://www.eclipse.org/modeling/emft/facet/downloads/, where additional information is available (test results, build log), or installed from the update site: http://download.eclipse.org/facet/updates/nightly/
Manually
Stable, Maintenance and Release builds are not automatically published. They should be first tested internally before publishing. For example, to publish the 0.1.0M6 milestone build:
- First, fetch the build archive to test (from Hudson, or using
wget
orscp
for example):
wget https://hudson.eclipse.org/hudson/job/emffacet-integration/lastSuccessfulBuild/artifact/S201103151256.zip
or, if https access doesn't work, a NFS access can be used (from build.eclipse.org). For example:
cp /shared/jobs/emffacet-nightly/lastSuccessful/archive/S201103151256.zip .
- Then, test the build locally
- Then, publish it:
ssh <commiterid>@build.eclipse.org wget https://hudson.eclipse.org/hudson/job/emffacet-integration/lastSuccessfulBuild/artifact/S201103151256.zip unzip S201103151256.zip -d /home/data/httpd/download.eclipse.org/facet/downloads/drops/0.1.0/
Add a new update site with the new build to the composite:
- unzip the content (the update site zip that was in the first zip) in a new folder with the release number:
unzip EMFFacet-Update-0.1.1RC3.zip -d /home/data/httpd/download.eclipse.org/facet/updates/milestones/0.1/SR1_RC3
- update both the
compositeContent.xml
andcompositeArtifacts.xml
files of the update site (that are located in the parent of the folder to which you extracted the update site) to add a reference to your newly added update site- set the value of p2.timestamp to the result of "
date +%s000
" - increase the "size" attribute of the children element
- add a "child" element inside the "children" element with a "location" set to the name of the folder (e.g "SR1_RC3")
- set the value of p2.timestamp to the result of "
- You can enable download stats on the repository by running /opt/public/modeling/emft/facet/addDownloadStats.sh on the update site
- Check that the new build appears on http://www.eclipse.org/modeling/emft/facet/downloads/.
- Builds can be hidden from this page before a release by modifying
downloads-scripts.php
inwww/modeling/emft/facet/downloads/
on:pserver:anonymous@dev.eclipse.org:/cvsroot/org.eclipse
- Update the archive site with the new build:
-
unzip S201109070430.zip -d /home/data/httpd/archive.eclipse.org/facet/downloads/drops/0.1.1/
- update
/home/data/httpd/archive.eclipse.org/facet/downloads/index.html
with a link to the newly added update zip
-
- Tag the build
Simultaneous Release
If the build must be part of the simultaneous release, you must also:
- Use the B3 Aggregator (or a text editor if the modification is trivial) to update the build model for the aggregator (after checking it out from CVS).
Build parameters
Hudson builds expect these parameters:
- BUILDTYPE : the kind of build, represented by a code letter (see this page):
- N: Nightly
- I: Integration
- M: Maintenance (NOT milestone)
- S: Stable (for Milestones and Release Candidate builds)
- R: Release
- BUILD_ALIAS : the name of the release (0.8.0, 0.9.0M1, etc.); leave it blank for nightly and integration builds
- SIGN_UPDATE_SITE : whether to sign the update site (can take up to an hour on the Eclipse build server); mandatory for all builds except nightlies
- VERSION : the version being built. Dictates in which folder the build will be placed under the download "drops" folder.
Tagging
Releases should have a tag like R0_1_0, and milestones should have a tag like S0_1_0M7.
Checking
Check bundles
Check that each bundle contains an about.html file:
for f in $( ls *.jar ); do unzip -t $f | grep -q about.html || echo $f; done
or for plug-ins in your workspace:
find $workspaceRoot -name 'build.properties' | while read i; do grep -q about.html "$i" || echo "$i"; done
Check licenses
find $workspaceRoot -type f -name 'license.html' | while read i; do md5 $i; done
Check Manifest.MF
find $workspaceRoot -name 'MANIFEST.MF' | while read i; do grep -q Bundle-Vendor "$i" || echo "$i"; done find $workspaceRoot -name 'feature.xml' | while read i; do grep -q provider-name "$i" || echo "$i"; done
Check simrel reports
for url in \ "http://build.eclipse.org/juno/simrel/reports/layoutCheck.txt" \ "http://build.eclipse.org/juno/simrel/reports/verifydiroutput/unsigned.txt" \ "http://build.eclipse.org/juno/simrel/reports/versionPatternCheck.txt" \ "http://build.eclipse.org/juno/simrel/reports/breedata.txt" \ "http://build.eclipse.org/juno/simrel/reports/pack200data.txt" \ "http://build.eclipse.org/juno/simrel/reports/nonUniqueVersions.txt" do echo "checking $url" curl -s -S "$url" | egrep 'modisco|facet' done
url="http://build.eclipse.org/juno/simrel/reports/licenseConsistency.html" echo "checking $url" curl -s -S $url > licenseConsistency n=$(cat licenseConsistency | grep -n "Features with matching" | sed 's/:.*//') cat licenseConsistency | head -n $n | egrep 'modisco|facet'
url="http://build.eclipse.org/juno/simrel/reports/featureNames.html" echo "checking $url" curl -s -S $url > featureNames n=$(cat featureNames | grep -n "Probably correct names" | sed 's/:.*//') cat featureNames | head -n $n | egrep 'modisco|facet'
url="http://build.eclipse.org/juno/simrel/reports/bundleNames.html" echo "checking $url" curl -s -S $url > bundleNames n=$(cat bundleNames | grep -n "Probably correct bundle name" | sed 's/:.*//') cat bundleNames | head -n $n | egrep 'modisco|facet'
url="http://build.eclipse.org/juno/simrel/reports/providerNames.html" echo "checking $url" curl -s -S $url > providerNames n=$(cat providerNames | grep -n "Probably using correct provider name" | sed 's/:.*//') cat providerNames | head -n $n | egrep 'modisco|facet'
url="http://build.eclipse.org/juno/simrel/reports/copyrights.html" echo "checking $url" curl -s -S $url > copyrights n=$(cat copyrights | grep -n "Features with copyrights that are probably ok" | sed 's/:.*//') cat copyrights | head -n $n | egrep 'modisco|facet'
url="http://build.eclipse.org/juno/simrel/reports/esdata.txt" echo "checking $url" curl -s -S $url > esdata n=$(cat esdata | grep -n "Bundles without an Eclipse-SourceReference" | sed 's/:.*//') cat esdata | tail -n +$n | egrep 'modisco|facet'