Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Papyrus/Papyrus Developer Guide/Release Process: How To"

(D-day of the GA release)
 
(154 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The Papyrus project is built using [https://eclipse.org/tycho/ Tycho] with this releng project:
+
The Papyrus project is built using [https://eclipse.org/tycho/ Tycho] and orchestrated by this [https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/tree/releng releng project].
[https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/tree/releng Releng]  
+
 
 +
The release engineer must have:
 +
* Unrestricted shell access to build.eclipse.org (log a bug to Community/Server to obtain SSH access: see [http://bugs.eclipse.org/bugs/show_bug.cgi?id=366699 bug 366699]). To know if your shell is restricted, try to execute linux commands and see if you get disconnected.
 +
* The rights to launch jobs on the integration platform : https://hudson.eclipse.org/hudson/ (should come with the Papyrus committer rights, but can be granted by the platform admin)
 +
* Write access to /home/data/httpd/download.eclipse.org/modeling/mdt/papyrus (should come with the Papyrus committer rights)
 +
* Subscribed to the [https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev cross-project-issues-dev] mailing list, on which discussions relevant to the releng activities take place
 +
* Be aware of the release plan and the step he needs to contribute to, +3 for papyrus, which can be found [https://wiki.eclipse.org/SimRel/Simultaneous_Release_Cycle_FAQ#What_is_the_schedule_of_the_next_releases_.3F here]
  
  
  
 
== Hudson Jobs ==
 
== Hudson Jobs ==
The Papyrus builds are started from Hudson. The following jobs on the [https://hudson.eclipse.org/papyrus/view/Mars/ Mars branch] exist currently.
+
 
 +
The Papyrus builds are started from Jenkins. The following jobs on the [[https://ci.eclipse.org/papyrus/view/Master/ | Master branch]] exist currently.
 
There should always be the following jobs on each release branch:
 
There should always be the following jobs on each release branch:
 
* papyrus-Master : builds the main plug-ins of Papyrus
 
* papyrus-Master : builds the main plug-ins of Papyrus
Line 11: Line 18:
 
* papyrus-Master-Tests : builds the tests for the main plugins of Papyrus
 
* papyrus-Master-Tests : builds the tests for the main plugins of Papyrus
 
* papyrus-Master-Tests-Failures : tests identified as failed, not regressions, kept to keep the main tests clean and without spams
 
* papyrus-Master-Tests-Failures : tests identified as failed, not regressions, kept to keep the main tests clean and without spams
* papyrus-Master-Developer : developer tools, such as debug views in eclipse, papyrus diagram code generator and building tools
+
* papyrus-Master-Toolsmiths : developer tools, such as debug views in eclipse, papyrus diagram code generator, building and customization tools
* papyrus-Master-Extra : builds the "extra" plug-ins of Papyrus
+
* papyrus-Master-Extra-Tests : builds the tests for the "extra" plug-ins
+
  
 
See all the currently defined Papyrus jobs on the page :  
 
See all the currently defined Papyrus jobs on the page :  
<nowiki>https://hudson.eclipse.org/papyrus/view/<Eclipse version></nowiki>
+
<nowiki>https://hudson.eclipse.org/papyrus/view/<release_name></nowiki>
 
You can add the name of the eclipse release to find the associated jobs, i.e. Mars, Luna...
 
You can add the name of the eclipse release to find the associated jobs, i.e. Mars, Luna...
 +
  
 
== Before starting a build ==
 
== Before starting a build ==
  
Unlike Nightlies, Milestone builds are publicly available to anyone downloading the latest Developer Build of Eclipse. This implies a few differences in terms of quality of the release:
+
=== General Information ===
 +
 
 +
Unlike Nightlies, Milestone builds, contributed to the release train, are publicly available to anyone downloading the latest Developer Build of Eclipse. This implies a few differences in terms of quality of the release:
  
 
* All artifacts must be signed, using the Eclipse Certificate
 
* All artifacts must be signed, using the Eclipse Certificate
Line 29: Line 37:
 
* The Papyrus update site must contain everything that is not already contained in the Eclipse Simrel repository (i.e. any plug-in from an Eclipse Project that is not in the release train)
 
* The Papyrus update site must contain everything that is not already contained in the Eclipse Simrel repository (i.e. any plug-in from an Eclipse Project that is not in the release train)
  
== What is built? ==
 
  
Taking the example of "papyrus-Master", we use the releng's pom.xml files.
+
=== Must Have ===
  
A good/nice practice is to also update Oomph's papyrus.setup (just select it as well) while we are at it. 
+
As a rule of thumbs, before starting your build journey it is preferable to have a clean install of the Eclipse package you want to test your build against and install the necessary tools and dependencies.
 +
You will need to install the following (some may require you to fetch previously build components from other projects that contributes earlier in the train):
  
These files must include all features, plugins and update sites that must be built, either directly or indirectly.
+
Use an Eclipse with Papyrus developer tools installed from the following update site, eg for the XYZ version:
 +
<nowiki>https://hudson.eclipse.org/papyrus/job/Papyrus-XYZ-Toolsmiths/lastSuccessfulBuild/artifact/repository</nowiki>
  
The releng's pom.xml files also specifies how to get the plug-ins and features that are to be built and specifies the update sites from which to retrieve the binary dependencies from the dependent projects.
+
This install might need you to posses the following papyrus nightly build address in your available update sites as the developper tools depends on some plugins contained in it:
 +
<nowiki>https://hudson.eclipse.org/papyrus/job/Papyrus-XYZ/lastSuccessfulBuild/artifact/repository/</nowiki> 
 +
Install the tpd updater tool from this [https://github.com/mbarbero/fr.obeo.releng.targetplatform Github project] from this update site:
 +
<nowiki>https://dl.bintray.com/mbarbero/fr.obeo.releng.targetplatform/latest</nowiki> (4.1.0 and before)
 +
<nowiki>http://download.eclipse.org/cbi/tpd/**</nowiki> (4.2.0 and after)
  
 +
Papyrus (a clean clone is also useful to have for the builds as it will be much less susceptible to be corrupted by your daily work) up to date:
 +
<nowiki>git://git.eclipse.org/gitroot/papyrus/org.eclipse.papyrus.git</nowiki>
 +
Simrel on which you will later post your updated aggregator file:
 +
<nowiki>git://git.eclipse.org/gitroot/simrel/org.eclipse.simrel.build.git</nowiki>
  
=== Updating the releng's pom.xml ===
+
Another should have, not mandatory but useful, is the b3 aggregator editor to get a clearer view of the aggregator files in the simrel repository:
The file reflects the dependencies on the other projects. So, it must be updated at least before each milestone, to make sure that the code that is built works with the latest versions of all the dependencies.
+
https://wiki.eclipse.org/Eclipse_b3/aggregator/manual#Installation
  
The easiest way to update the dependencies is to copy them from the aggregation build model, which all projects must fill in with the correct reference to their update site(s) and feature(s).
 
  
This model is in a project with the release name on the Eclipse Git:
+
== Update Papyrus Dependencies and References ==
* git://git.eclipse.org/gitroot/simrel/org.eclipse.simrel.build.git
+
  
[[File:cloneSimrelRepo.png|center|800px|thumb|'''Clone the simrel repository''']]
+
You need to [[Papyrus Developer Guide/Release Process: How To/Update Papyrus Dependencies | prepare the content]] for the next release by checking that everything depends on the latest releases of the train and that the versions are all up to date.
  
  
[[File:importBuildToolsAfterClone.png|center|600px|thumb|'''Import the simrel project''']]
+
== Publish The artifacts ==
  
 +
When the produced artifacts are successfully produced by the Jenkins job and that you tested their installation and functionalities you will be able to [[Papyrus Developer Guide/Release Process: How To/Publish Papyrus Artifacts | publish them]].
  
  
'''First''': Verify that the branch is up to date (fetch and rebase or a pull).
+
=== Checking the reports ===
  
 +
At the end of each milestone you will need to check the installation from the staging update site and check the reports generated by the simrel aggregation job.
  
[[File:updateRepository.png|center|800px|thumb|'''update the local repository''']]
+
The simrel reports are available at :
 +
* <nowiki>https://ci.eclipse.org/simrel/job/simrel.runaggregator.pipeline/**BuildNumber**/artifact/target/repository/final/buildInfo/reporeports/index.html</nowiki>
  
 +
And the simrel/staging update site at :
 +
* http://download.eclipse.org/releases/staging (Master)
 +
* http://download.eclipse.org/releases/maintenance (Maintenance)
  
[[File:update_pom_dependencies.png|center|600px|thumb|'''Update the dependencies of the selected poms''']]
+
== Preparing the GA release ==
  
 +
When the final artifacts have been contributed and each milestones have been tagged in the repository, it is time to [[Papyrus Developer Guide/Release Process: How To/Prepare the GA Release | prepare the for the GA release]].
  
'''Second''': Be on the correct branch of the simrel repository before selecting the aggregation model in order to have the correct addresses of the papyrus' version dependencies (master or <Eclipse version>_maintenance, e.g. Luna_maintenance) as the models will differ from one another and result in erroneous updates.
 
  
 +
== D-day of the GA release ==
  
[[File:simrelBuildModelBranch.png|center|600px|thumb|'''The branches corresponding to the different <Eclipse version>''']]
+
Keep in mind that depending on the date of your release review, you might have an official release day after the GA of the built Eclipse Package.
  
 +
When the day comes however (meaning that the release is reviewed and the Eclipse has officialy declared the GA on the cross-project mailing list), you will have to:
 +
# Run the [https://ci.eclipse.org/papyrus/view/MasterRelease/ GA publishing script],
 +
# Amend the composites in the release folder to point to the new release and remove the dummy index.html file,
 +
# Merge the prepared patches for the Website and your new development branch,
 +
# Update the simrel file.
  
[[File:choose_build_model.png|center|600px|thumb|'''Choose the build model from the simrel project''']]
+
Finally, do not forget to remind the Papyrus Lead, again annoy as needed, to communicate about the release:
 +
# mail in the mailing list dev,
 +
# post on the forum.
  
  
[[File:simrelBuildModel.png|center|600px|thumb|'''The simrel model used to update the dependencies''']]
+
This will end the release process. Good job! :)
  
 +
== Maintenance ==
  
A few dependencies are not in the aggregation build model though, so they must be updated manually:
+
After a while you will need to move some milestones and releases to the archives, meaning moving them from downloads.eclipse.org to archive.eclipse.org that is not mirrored. It is a good practice as it will save time, space and resources server-wise.
* '''Orbit''' : you can find the latest version listed on : http://download.eclipse.org/tools/orbit/downloads/
+
The corresponding paths on the server are:
 +
/home/data/httpd/download.eclipse.org/modeling/mdt/papyrus/downloads/drops/
 +
/home/data/httpd/archive.eclipse.org/modeling/mdt/papyrus/downloads/drops/
  
[[File:grep_manual_updates.png|center|1000px|thumb|'''Get all the occurrences of this case and their context''']]
+
This can be done manually, until a better solution has been implemented, but be aware of the following guidelines:
 
+
* d.e.o - downloads/drops: keep the last 2 or 3 releases depending on the span you want to cover and that the removed content has been copied in archive of course
 
+
* d.e.o - updates/releases: everything here should be kept. Very old releases could be moved to the archive server depending on usage.
[[File:grepManualUpdates2.png|center|800px|thumb|'''Inside the releng's pom.xml''']]
+
* d.e.o - updates/milestones: this can be handled more loosely, but a good rule of thumb is to keep the last 2 or 3 milestones of what you want to keep in order to  
 
+
allow eclipse to 'revert to previous installation' if needed.
As a reminder:
+
* a.e.o - downloads/drops: this '''needs''' to contain '''every''' releases published. There are no constraint on how recent or old they need to be so if you are not sure you will remember you can copy the release as soon as its out ;). You can also put milestones in here but that is not required.
* <code>find . -name "pom.xml"</code> searches from the current (.) folder all the pom.xml files
+
* <code>|</code> passes the output of one command to another for further processing
+
* <code>xargs</code> constructs a command from a standard input and prints it in the command window
+
* <code>grep</code> searches for the occurrence of the name in the found file
+
* <code>-n -ai</code> shows the line number (-n) of the occurrence and the i next lines (the i lines after the occurrence)
+
* <code>{}</code> placeholder for the found file
+
 
+
 
+
==== Finding dependencies ====
+
If you don't know where a particular plug-in or feature is located, the easiest way to find it is to search the Eclipse download area using "find" on the ssh of build.eclipse.org.
+
For example, using the ssh connection to the eclipse repository, to look for "org.eclipse.emf.compare" :
+
find /home/data/httpd/download.eclipse.org/modeling/emf/ -name 'org.eclipse.emf.compare_*'
+
 
+
 
+
==== Updating the versions (optional) ====
+
During a release you can have to update the plugin versions and their linked features and categories as the API and other contents of the plug-in change, in accordance with the [[Version Numbering|Eclipse Versioning Guidelines]].
+
The '''PDE API Tooling''' builders help to identify version number changes that are required by flagging problems on the bundle manifests.  Also, if enabled, the '''Oomph Version Management''' builders perform additional checks, including;
+
 
+
* consistency of POM version number with plug-in/feature manifest
+
* ripple effect of bundle version number changes up to features that include tham
+
 
+
Also, be aware that some version number changes also require updates to other metadata, such as the '''category.xml''' and the '''*.product''' definition files for any RCP packages (especially for feature version changes).
+
 
+
As of the Neon release, Papyrus plug-in and feature versions '''are not''' bulk updated to the "next" version number as they were in previous releases. Accordingly, '''BundleTestUtils.java''' (tests>junit>plugins>developer>org.eclipse.papyrus.bundle.tests) no longer tracks the expected current version number of bundles. Correct versions are enforced by PDE and Oomph tooling.
+
 
+
==== Push ====
+
When pushing to the papyrus' gerrit you should use the standardized message :
+
* [Releng] Update dependencies for <Eclipse Version> <Milestone> (e.g.: [Releng] Update dependencies for Mars M7)
+
 
+
Then wait for a committer to merge the changes brought by this commit.
+
 
+
== How to start a build? ==
+
 
+
Builds, master and maintenance, are run automatically every night, every day and each hour if there has been a commit.
+
When a build following specific changes is required, wait for the gerrit contribution to be merged and launch the main build and the the extras (both will launch their associated tests upon completion). Then once both are successful launch a signed build for each of them.
+
 
+
'''Note''' that the tests depend on the '''xxx-Developer''' build. Therefore don't forget to launch this one before or you will have an error (in case of a version update for example as the tests will only find the old version).
+
 
+
 
+
=== Manually ===
+
 
+
Only committers or release engineers in the Papyrus project can launch Papyrus build jobs from Hudson.
+
 
+
Go to the wanted page if you want to launch a selected build (e.g.: [https://hudson.eclipse.org/papyrus/view/Mars/ Mars page])
+
 
+
 
+
[[File:buildParameters.png|center|1000px|thumb|'''Enter the build parameters''']]
+
 
+
 
+
Then:
+
* In Hudson, click on '''Build Now''', change the [[#Build parameters]] as needed, 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.
+
 
+
== Build parameters ==
+
 
+
Hudson builds expect these parameters:
+
* BUILD_ALIAS : the name of the release (0.9.0, 1.1.0M6, etc.); leave it blank for nightly and integration builds
+
* SIGN : whether to sign the update site (can take up to an hour on the Eclipse build server); '''mandatory''' for all builds except nightlies
+
 
+
 
+
'''Warning''': Don't forget to do the same manipulation for the Master-Extra.
+
 
+
'''Tip''': As the signing of the build can take quite a long time, it is recommended to launch a non-signed build first as the tests are automatically launched at the end of a master branch build. As the tests roughly take the same amount of time you can see if the current build passes the tests without having to wait the extra time needed by the signing step.
+
 
+
== How to publish a build? ==
+
 
+
Successful Nightly builds are automatically published to :
+
* http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/mars/
+
 
+
 
+
=== With the script ===
+
 
+
To publish a milestone or release from a build, you can use the manualPromote.sh for Luna, and manualPromote-mars.sh for Mars, script on: '''/opt/public/modeling/mdt/papyrus/manualPromote.sh'''
+
Start this script, and fill in the parameters in the interactive script:
+
* the signed builds numbers
+
* the corresponding version
+
* the update site in which to publish it
+
 
+
'''Be careful''' however as Hudson does not make, as of yet, a zip for the tests and the current script will crash if a build number is provided and it does not find any corresponding zip. This may lead to some, fixable but annoying, access permissions problems.
+
 
+
 
+
For example:
+
 
+
[[File:manualPromote-mars.png|center|800px|thumb|'''example''']]
+
 
+
 
+
In the previous example, the script will:
+
* publish the main Papyrus plug-ins from Papyrus-Master build #1600 to the Papyrus download in "drops/1.1.0" and the update site in "milestones/1.1/RC3/main"
+
* publish the extra plug-ins from Papyrus-Master-Extra build #1237 to the Papyrus download in "drops/1.1.0" in the same build folder as the main build, and the update site in "milestones/1.1/RC3/extra"
+
* do not publish the test results from Papyrus-Master-Tests build
+
* make "milestones/1.1/RC3" a composite update site, which contains "milestones/1.1/RC3/main" and "milestones/1.1/RC3/extra"
+
* enable p2 download statistics both on "milestones/1.1/RC3/main" and "milestones/1.1/RC3/extra"
+
* set the correct linux access rights on the new folders
+
 
+
 
+
Once the script is done, all you have left to do is to:
+
* '''Tag the build''': Releases should have a tag like 1.1.0, and milestones like 1.1.0_M6
+
* [[#Simultaneous_Release|update the aggregation model]] if this build must be part of the simultaneous release
+
 
+
=== Milestones / Release Candidate ===
+
 
+
Stable builds are not automatically published. They should be first tested internally before publishing. For example, to publish the 1.1.0M6 milestone build:
+
* '''First''', the build is on the update site nightly http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/mars/
+
* '''Then''', install the build and test it manually
+
* '''Then''', publish it using the script manualPromote.sh
+
 
+
 
+
Add a new update site with the new build to the parent composite (~/downloads/modeling/mdt/papyrus/updates/milestones/1.1/):
+
* '''update''' both the <code>compositeContent.xml</code> and <code>compositeArtifacts.xml</code> 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 "<code>date +%s000</code>"
+
** 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 "M6")
+
 
+
 
+
[[File:compositeArtifacts.png|center|1000px|thumb|'''The values to edit''']]
+
 
+
 
+
* '''Check''' that the new build appears on http://www.eclipse.org/papyrus/downloads/.
+
* '''Check''' the edited composites on http://download.eclipse.org/modeling/mdt/papyrus/updates/milestones/?d.
+
** and add browse through the directory content to check your version, e.g.: /1.1 will give you the edited root composites, and 1.1/M6 will give you the main and extra composites
+
 
+
Builds can be hidden from this page before a release by modifying <code>downloads-scripts.php</code> in <code>/downloads/</code> on [git://git.eclipse.org/gitroot/www.eclipse.org/papyrus.git git://git.eclipse.org/gitroot/www.eclipse.org/papyrus.git]
+
 
+
=== Simultaneous Release ===
+
 
+
Install the [http://download.eclipse.org/modeling/emft/b3/?d b3Aggregator plugin] by selecting the wanted version from the directory.
+
 
+
[[File:CheckingOutTheAggregatorTools2.png|center|1000px|thumb|'''Aggregator tools''']]
+
 
+
 
+
If the build must be part of the simultaneous release, you must also:
+
* Use the [http://wiki.eclipse.org/Eclipse_b3/aggregator/manual B3 Aggregator] (or a text editor if the modification is trivial) and push to the simrel's gerrit which path is : ssh://username@git.eclipse.org:29418/simrel/org.eclipse.simrel.build.git)
+
Usually, the only thing to change is the location (for example "milestones/1.1/M6/main"):
+
<repositories location="http://download.eclipse.org/modeling/mdt/papyrus/updates/milestones/1.1/M6/main" description="Papyrus">
+
 
+
[[File:UpdatePapyrusContributionToMarsM7.png|center|1300px|thumb|'''Previous composite address''']]
+
 
+
 
+
[[File:UpdatePapyrusContributionToMarsRC1.png|center|1300px|thumb|'''Updated composite address''']]
+
 
+
 
+
'''Tip''': You can check the status of the contribution at [https://git.eclipse.org/r/#/q/status:open+project:simrel/org.eclipse.simrel.build+branch:master simrel's gerrit page]
+
 
+
== Tagging ==
+
Releases should have a tag like '''1.1.0''', and milestones should have a tag like '''1.1.0_M6'''.
+
 
+
== Finalizing the Release ==
+
 
+
When the release is complete and has been tagged in the repository, it is time to prepare the next release's development branch for continued version management.  One aspect of this is ensuring that the Oomph Version Management tool's reference baseline for the next release completely and correctly describes the release just completed.
+
 
+
Oomph maintains a description of the release in the <tt>release.*</tt> files in the Papyrus release bundles in the <tt>plugins/developer</tt> tree.  So far, these are:
+
 
+
* <tt>oep.releng.main.release</tt> for the Papyrus Main product bundles and features
+
* <tt>oep.releng.dev.release</tt> for the Papyrus Developer Tools bundles and features
+
 
+
The <tt>release.xml</tt> file is a manifest of all of the features and bundles, with their versions and the relationships between them, that comprise the Papyrus Release and the <tt>release.digest</tt> is a more efficient binary representation of the same that is loaded by Oomph tooling when needed.  The Oomph Version Management builder creates these automatically from the current workspace and PDE target configuration, so long as all of the Papyrus feature projects are in the workspace.  To rebuild the release description, simply '''delete''' the <tt>release.xml</tt> and <tt>release.digest</tt> files and they will be rebuilt with all of the requisite metadata to describe what is now the "previous release" reference baseline for the next release.
+
 
+
== Checking ==
+
 
+
 
+
=== Check simrel reports ===
+
 
+
After the simrel build, you can check the reports at :
+
* https://hudson.eclipse.org/simrel/job/simrel.build.repoReportsAndTests/lastSuccessfulBuild/artifact/test-report/reports-staging/reporeports/index.html
+
 
+
 
+
=== Check installations ===
+
 
+
Check installation from the simrel/staging update site at :
+
* http://download.eclipse.org/releases/staging (Master)
+
* http://download.eclipse.org/releases/maintenance (Maintenance)
+

Latest revision as of 10:38, 10 July 2020

The Papyrus project is built using Tycho and orchestrated by this releng project.

The release engineer must have:

  • Unrestricted shell access to build.eclipse.org (log a bug to Community/Server to obtain SSH access: see bug 366699). To know if your shell is restricted, try to execute linux commands and see if you get disconnected.
  • The rights to launch jobs on the integration platform : https://hudson.eclipse.org/hudson/ (should come with the Papyrus committer rights, but can be granted by the platform admin)
  • Write access to /home/data/httpd/download.eclipse.org/modeling/mdt/papyrus (should come with the Papyrus committer rights)
  • Subscribed to the cross-project-issues-dev mailing list, on which discussions relevant to the releng activities take place
  • Be aware of the release plan and the step he needs to contribute to, +3 for papyrus, which can be found here


Hudson Jobs

The Papyrus builds are started from Jenkins. The following jobs on the [| Master branch] exist currently. There should always be the following jobs on each release branch:

  • papyrus-Master : builds the main plug-ins of Papyrus
  • papyrus-Master-Analysis : static analysis of the code, i.e. findBugs, sonar...
  • papyrus-Master-Tests : builds the tests for the main plugins of Papyrus
  • papyrus-Master-Tests-Failures : tests identified as failed, not regressions, kept to keep the main tests clean and without spams
  • papyrus-Master-Toolsmiths : developer tools, such as debug views in eclipse, papyrus diagram code generator, building and customization tools

See all the currently defined Papyrus jobs on the page : https://hudson.eclipse.org/papyrus/view/<release_name> You can add the name of the eclipse release to find the associated jobs, i.e. Mars, Luna...


Before starting a build

General Information

Unlike Nightlies, Milestone builds, contributed to the release train, are publicly available to anyone downloading the latest Developer Build of Eclipse. This implies a few differences in terms of quality of the release:

  • All artifacts must be signed, using the Eclipse Certificate
  • The build must be as stable as possible. Especially, any Blocker or Critical bug must be fixed before the release
  • All License files must be available and up-to-date
  • All plug-in metadata must be defined (Especially, bundle name, bundle vendor and feature description)
  • The Papyrus update site must contain everything that is not already contained in the Eclipse Simrel repository (i.e. any plug-in from an Eclipse Project that is not in the release train)


Must Have

As a rule of thumbs, before starting your build journey it is preferable to have a clean install of the Eclipse package you want to test your build against and install the necessary tools and dependencies. You will need to install the following (some may require you to fetch previously build components from other projects that contributes earlier in the train):

Use an Eclipse with Papyrus developer tools installed from the following update site, eg for the XYZ version:

https://hudson.eclipse.org/papyrus/job/Papyrus-XYZ-Toolsmiths/lastSuccessfulBuild/artifact/repository 

This install might need you to posses the following papyrus nightly build address in your available update sites as the developper tools depends on some plugins contained in it:

https://hudson.eclipse.org/papyrus/job/Papyrus-XYZ/lastSuccessfulBuild/artifact/repository/  

Install the tpd updater tool from this Github project from this update site:

https://dl.bintray.com/mbarbero/fr.obeo.releng.targetplatform/latest (4.1.0 and before)
http://download.eclipse.org/cbi/tpd/** (4.2.0 and after)

Papyrus (a clean clone is also useful to have for the builds as it will be much less susceptible to be corrupted by your daily work) up to date:

git://git.eclipse.org/gitroot/papyrus/org.eclipse.papyrus.git 

Simrel on which you will later post your updated aggregator file:

git://git.eclipse.org/gitroot/simrel/org.eclipse.simrel.build.git 

Another should have, not mandatory but useful, is the b3 aggregator editor to get a clearer view of the aggregator files in the simrel repository:

https://wiki.eclipse.org/Eclipse_b3/aggregator/manual#Installation


Update Papyrus Dependencies and References

You need to prepare the content for the next release by checking that everything depends on the latest releases of the train and that the versions are all up to date.


Publish The artifacts

When the produced artifacts are successfully produced by the Jenkins job and that you tested their installation and functionalities you will be able to publish them.


Checking the reports

At the end of each milestone you will need to check the installation from the staging update site and check the reports generated by the simrel aggregation job.

The simrel reports are available at :

  • https://ci.eclipse.org/simrel/job/simrel.runaggregator.pipeline/**BuildNumber**/artifact/target/repository/final/buildInfo/reporeports/index.html

And the simrel/staging update site at :

Preparing the GA release

When the final artifacts have been contributed and each milestones have been tagged in the repository, it is time to prepare the for the GA release.


D-day of the GA release

Keep in mind that depending on the date of your release review, you might have an official release day after the GA of the built Eclipse Package.

When the day comes however (meaning that the release is reviewed and the Eclipse has officialy declared the GA on the cross-project mailing list), you will have to:

  1. Run the GA publishing script,
  2. Amend the composites in the release folder to point to the new release and remove the dummy index.html file,
  3. Merge the prepared patches for the Website and your new development branch,
  4. Update the simrel file.

Finally, do not forget to remind the Papyrus Lead, again annoy as needed, to communicate about the release:

  1. mail in the mailing list dev,
  2. post on the forum.


This will end the release process. Good job! :)

Maintenance

After a while you will need to move some milestones and releases to the archives, meaning moving them from downloads.eclipse.org to archive.eclipse.org that is not mirrored. It is a good practice as it will save time, space and resources server-wise. The corresponding paths on the server are:

/home/data/httpd/download.eclipse.org/modeling/mdt/papyrus/downloads/drops/
/home/data/httpd/archive.eclipse.org/modeling/mdt/papyrus/downloads/drops/

This can be done manually, until a better solution has been implemented, but be aware of the following guidelines:

  • d.e.o - downloads/drops: keep the last 2 or 3 releases depending on the span you want to cover and that the removed content has been copied in archive of course
  • d.e.o - updates/releases: everything here should be kept. Very old releases could be moved to the archive server depending on usage.
  • d.e.o - updates/milestones: this can be handled more loosely, but a good rule of thumb is to keep the last 2 or 3 milestones of what you want to keep in order to

allow eclipse to 'revert to previous installation' if needed.

  • a.e.o - downloads/drops: this needs to contain every releases published. There are no constraint on how recent or old they need to be so if you are not sure you will remember you can copy the release as soon as its out ;). You can also put milestones in here but that is not required.

Back to the top