5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <style type="text/css">
7 /* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
8 /* Author: Nicolas Hery - http://nicolashery.com */
9 /* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
10 /* Source: https://github.com/nicolahery/markdownpad-github */
13 =============================================================================*/
15 html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
22 =============================================================================*/
25 font-family: Helvetica, arial, freesans, clean, sans-serif;
29 background-color: #fff;
36 margin-top: 0 !important;
40 margin-bottom: 0 !important;
44 =============================================================================*/
46 p, blockquote, ul, ol, dl, table, pre {
51 =============================================================================*/
53 h1, h2, h3, h4, h5, h6 {
57 -webkit-font-smoothing: antialiased;
60 h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code {
71 border-bottom: 1px solid #ccc;
92 body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
97 a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
102 h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
107 =============================================================================*/
111 text-decoration: none;
115 text-decoration: underline;
119 =============================================================================*/
125 ul li > :first-child,
126 ol li > :first-child,
127 ul li ul:first-of-type,
128 ol li ol:first-of-type,
129 ul li ol:first-of-type,
130 ol li ul:first-of-type {
134 ul ul, ul ol, ol ol, ol ul {
176 =============================================================================*/
180 font-family: Consolas, "Liberation Mono", Courier, monospace;
187 border: 1px solid #eaeaea;
188 background-color: #f8f8f8;
197 background: transparent;
201 background-color: #f8f8f8;
202 border: 1px solid #ccc;
211 background-color: transparent;
216 -moz-border-bottom-colors: none;
217 -moz-border-left-colors: none;
218 -moz-border-right-colors: none;
219 -moz-border-top-colors: none;
220 background-color: #DDDDDD;
221 background-image: linear-gradient(#F1F1F1, #DDDDDD);
222 background-repeat: repeat-x;
223 border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD;
225 border-radius: 2px 2px 2px 2px;
228 font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
234 =============================================================================*/
237 border-left: 4px solid #DDD;
242 blockquote>:first-child {
246 blockquote>:last-child {
251 =============================================================================*/
259 background: transparent;
260 border-bottom: 4px solid #ddd;
265 =============================================================================*/
272 border: 1px solid #ccc;
277 border-top: 1px solid #ccc;
278 background-color: #fff;
281 table tr:nth-child(2n) {
282 background-color: #f8f8f8;
286 =============================================================================*/
294 <h1>Definition of Done for Simantics Platform Releases</h1>
296 <li>The <code>simantics/platform</code> and <code>simantics/third-party</code> Git repositories have a branch <code>release/x.y.z[.w]</code> and tag <code>x.y.z[.w]</code>.</li>
297 <li><a href="https://www.simantics.org/redmine/projects/simantics-platform/wiki/ChangeLog">A change log entry</a> is compiled from the issues in this release and made available to the general public separately for the platform and for the open products included in the release train.</li>
298 <li><a href="http://dev.simantics.org/index.php/Roadmap">Roadmap</a> is up-to-date.</li>
299 <li><a href="http://dev.simantics.org/index.php/Tutorials">Tutorials</a> are up-to-date and coherent with the platform.</li>
300 <li>For all new major/minor releases, Wiki documentation is backed up (cloned).</li>
303 <h1>Simantics Platform Release Process</h1>
305 <li>Create <code>release/x.y.z[.w]</code> release stabilisation branch</li>
306 <li>Repeat until stable:
308 <li>Develop, test and document components and test products</li>
311 <li>Tag the release in repository</li>
312 <li>Backup documentation wiki databases</li>
313 <li>Build and publish SDK package with and without sources
315 <li>Does not really require any work</li>
318 <li>Build Simantics open source products and plug-in components which are a part of the release train</li>
319 <li>Update websites to reflect the new release</li>
322 <h1>Released Plug-in Components and Products</h1>
323 <p>There are both plug-in components and products that are part of the "Simantics release train" that shall be released simultaneously to a major or minor Simantics release.</p>
324 <p>Plug-in components are installable features that are deployed online as P2 repositories for general availability. Products are deployed as ZIP files and made available online in designated locations on simantics.org.</p>
325 <p>Products that are part of the release train:</p>
327 <li>Simantics Desktop</li>
328 <li>Simantics System Dynamics Tool - <a href="https://www.simantics.org:8088/r/gitweb?p=simantics/sysdyn.git;a=summary">simantics/sysdyn.git</a></li>
330 <p>Plug-in components that are part of the release train:</p>
332 <li>Simantics R - <a href="https://www.simantics.org:8088/r/gitweb?p=simantics/r.git;a=summary">simantics/r.git</a></li>
333 <li>FMIL - <a href="https://www.simantics.org:8088/r/gitweb?p=simantics/fmil.git;a=summary">simantics/fmil.git</a></li>
334 <li>FMI Studio - <a href="https://www.simantics.org:8088/r/gitweb?p=members/fmi.git;a=summary">members/fmi.git</a></li>
335 <li>Simupedia - <a href="https://www.simantics.org/svn/members/simupedia">Members SVN</a></li>
337 <p>For simplicity, each of these components are versioned accoring to platform versioning, i.e. for Platform SDK 1.26.0 there will be Simantics Desktop 1.26.0, Sysdyn 1.26.0, and so on.</p>
339 <h1>Release Schedule</h1>
341 <li>Releases are branched 4 weeks before the set release date.</li>
342 <li>During this time no more new features are allowed in the release branch and the existing work shall be stabilized. Work must be focused on bug fixes and documentation.</li>
343 <li>Source code changes to release branches are forbidden in the last 2 weeks. Documentation-only changes are still allowed. However, if critical show-stopper problems surface during that time, the changes must be done. After that the release engineering team must decide whether to stick to the original release schedule or whether to delay the release.</li>
346 <h1>Simantics Platform Release - Step by Step</h1>
347 <h2>Create release branch from selected commit</h2>
348 <p>When release stabilisation starts, branch <code>simantics/platform</code> and <code>simantics/third-party</code> repositories:</p>
349 <pre><code>git clone ssh://<user>@www.simantics.org:29418/simantics/platform.git
351 git branch release/x.y.z[.w] <commit>
352 git push origin release/x.y.z[.w]
354 git clone ssh://<user>@www.simantics.org:29418/simantics/third-party.git
356 git branch release/x.y.z[.w] <commit>
357 git push origin release/x.y.z[.w]
359 <p>When creating major/minor releases <code><commit></code> is usually a commit in the <code>master</code> branch.
360 With service releases, branch from an existing <code>release/*</code> branch instead.</p>
361 <h2>Prepare release branch for use</h2>
362 <h3>Prepare .target files</h3>
365 <p>Retrieve release branch of the platform repository</p>
366 <pre><code>git clone ssh://<user>@www.simantics.org:29418/simantics/platform.git
368 git branch release/x.y.z[.w] remotes/origin/release/x.y.z[.w]
369 git checkout release/x.y.z[.w]
373 <p>Edit all target platform files in <code>releng/org.simantics.sdk.build.targetdefinition/</code>, i.e.</p>
375 <li><code>simantics.target</code></li>
376 <li><code>org.simantics.sdk.build.targetdefinition.target</code></li>
378 <p>At the beginning of simantics.target file, increment <code>sequenceNumber</code> by 1 and replace
379 the version numbers in target name and <code>org.simantics.sdk.feature.group</code> and
380 <code>org.simantics.sdk.source.feature.group</code> with <code>x.y.z[.w]</code>:</p>
381 <pre><code><?xml version="1.0" encoding="UTF-8" standalone="no"?>
382 <?pde version="3.8"?>
383 <target name="Simantics x.y.z[.w]" sequenceNumber="11">
384 <unit id="org.simantics.sdk.feature.group" version="x.y.z[.w]"/>
385 <unit id="org.simantics.sdk.source.feature.group" version="x.y.z[.w]"/>
387 <p>Next, replace the following rows in both mentioned files:</p>
388 <pre><code><repository location="http://www.simantics.org/download/master/sdk"/>
389 <repository location="http://www.simantics.org/download/master/external-components/maven"/>
390 <repository location="http://www.simantics.org/download/master/external-components/manual"/>
393 <pre><code><repository location="http://www.simantics.org/download/release/x.y.z[.w]/sdk"/>
394 <repository location="http://www.simantics.org/download/release/x.y.z[.w]/external-components/maven"/>
395 <repository location="http://www.simantics.org/download/release/x.y.z[.w]/external-components/manual"/>
399 <p>Edit version number of `org.simantics.sdk` feature in `features/org.simantics.sdk.feature/feature.xml` to `x.y.z[.w]`.</p>
402 id="org.simantics.sdk"
403 label="Simantics SDK"
404 version="x.y.z"
405 provider-name="VTT Technical Research Centre of Finland">
407 <p>Now commit and push the changes to the release branch.</p>
410 <h3>Initialize release branch distribution web site</h3>
412 <li>Run <a href="https://www.simantics.org/jenkins/job/SDK/job/Deploy%20External%20Components%20to%20Web/">SDK/Deploy External Components to Web</a> build with parameters:
414 <li><strong>GERRIT_REFNAME:</strong> <code>release/x.y.z[.w]</code></li>
415 <li><strong>PUBLISH_ARTIFACTS:</strong> <code>true</code></li>
418 <li>Run the <a href="https://www.simantics.org/jenkins/job/SDK/job/Simantics%20SDK/">SDK/Simantics SDK</a> build with parameters:
420 <li><strong>GERRIT_REFNAME:</strong> <code>release/x.y.z[.w]</code></li>
421 <li><strong>PUBLISH_ARTIFACTS:</strong> <code>true</code></li>
425 <p>Running these two builds will ensure that both the external components required to build the SDK and the Simantics SDK for the new release branch are published online at <code>http://www.simantics.org/download/release/x.y.z[.w]/</code>.</p>
426 <p>After this, whenever changes are pushed/merged to <code>release/x.y.z[.w]</code> branch in Gerrit, new <strong>SDK/Simantics SDK</strong> builds are triggered automatically and they will publish the results at the same location online.</p>
427 <p>This means that one does not have to do any tricks after this to build and publish the SDK as a P2 repository online. It is an automated process that is performed by the <a href="https://www.simantics.org/jenkins/job/SDK/job/Simantics%20SDK/">SDK/Simantics SDK</a> Jenkins job.</p>
428 <h2>Review documentation</h2>
429 <p>Documentation to review:</p>
431 <li><a href="http://dev.simantics.org/">Developer wiki</a></li>
432 <li><a href="https://www.simantics.org/end_user_wiki">End-user wiki</a></li>
433 <li><a href="https://www.simantics.org/members">Member wiki</a></li>
435 <p>For each wiki page:</p>
437 <li>Read through and get authors to fix found problems, such as TODOs or invalid information.</li>
439 <h2>Review tutorials</h2>
442 <p>Ensure tutorial wiki documentation at http://dev.simantics.org/index.php/Tutorials is up-to-date with the released platform</p>
445 <p>Ensure tutorial projects and product build properly</p>
448 <p>com.acme.movie</p>
450 <li>Build with Buckminster, com.acme.movie.product.site.feature</li>
454 <h2>Tag release/* branches</h2>
455 <p>When the release branches are ready for the release, tag them with the tag <code>vx.y.z[.w]</code>:</p>
456 <pre><code>git clone ssh://<user>@www.simantics.org:29418/simantics/platform.git
458 git checkout release/x.y.z[.w]
459 git tag vx.y.z[.w] -m "Simantics x.y.z[.w] release"
460 git push origin --tags
462 git clone ssh://<user>@www.simantics.org:29418/simantics/third-party.git
464 git checkout release/x.y.z[.w]
465 git tag vx.y.z[.w] -m "Simantics x.y.z[.w] release"
466 git push origin --tags
469 <p>Note The -m argument must be supplied to create an <a href="https://git-scm.com/book/en/v2/Git-Basics-Tagging">annotated tag</a>.
470 Only annotated or signed tags can be pushed to Gerrit.</p>
472 <h2>Backup documentation wiki databases</h2>
473 <p>This step is only necessary for major/minor releases, not for service releases.</p>
474 <p>The wiki databases to be backed up are:</p>
476 <li><a href="http://dev.simantics.org/">Developer wiki</a></li>
477 <li><a href="https://www.simantics.org/end_user_wiki">End-user wiki</a></li>
479 <p>These are MediaWiki installations. The only sane way to "tag" the documentation
480 is to back up the mysql database backing the wiki. Should the wiki be required
481 at a later time for some reason, we'll put the documentation up then in a
482 separate Mediawiki installation.</p>
484 <li>Dump documentation wiki databases using [dump-wikis.sh](./dump-wikis.sh) script.</li>
485 <li>Put the generated backup x.y.z.tar.gz at /var/backup/simantics-releases/x.y.z/wiki/</li>
487 <h2>Compile change log entry</h2>
489 <li>Edit the <a href="https://www.simantics.org/redmine/projects/simantics-platform/wiki/ChangeLog">main page</a> and add a a link for release x.y.z[.w].</li>
490 <li>Open the change log page of the previous release, e.g. <a href="https://www.simantics.org/redmine/projects/simantics-platform/wiki/Simantics_1250">1.25.0</a></li>
491 <li>Open the new link in another browser/tab to start editing the new wiki page</li>
492 <li>Edit the previous release's page and copy its wiki source contents over to the new release's page.</li>
493 <li>Fix the content to match the new release:
495 <li>Remove the issue content of the previous release</li>
496 <li>Fix release number, release date, release branch link and the link to all issues closed for the release
498 <li>Save new public issue query that lists all issues closed for the release by <a href="https://www.simantics.org/redmine/projects/simantics-platform/issues?query_id=122">starting from the previous release's query</a></li>
501 <li>Add filter to query: <strong>Release Notes: Any</strong> to only show issues that have some content in their Release Notes field</li>
502 <li>Export closed issue list as CSV with selected columns only. Open the resulting CSV file in Excel.</li>
503 <li>Use <strong>Data -> Text to Columns</strong> with tab column separation to columnize the result</li>
504 <li>Format the list as a table so that there is only one issue / row</li>
505 <li>Remove all other columns besides: Issue #, Tracker, Release Notes</li>
506 <li>Format the data into a Textile table:
508 <li>Copy to table contents as text into <a href="http://www.pspad.com/">PSPad</a></li>
509 <li>Replace (CTRL+H) tabs (<code>\t</code>) with <code>|</code> with <code>Regular Expressions</code> selection checked</li>
510 <li>Use <strong>Insert Text Into Lines..</strong> (ALT-I) to fix line beginnings and ends:
514 <li>At Lines Begin: <code>|#</code></li>
515 <li>At Lines End: <code>|</code></li>
522 <li>Copy the resulting textile table over to the change log page</li>
525 <li>Highlight major issues in the list by changing the text background color of the <strong>Type</strong> column:
527 <li><code>%{background: lightsalmon}Major Bug%</code></li>
528 <li><code>%{background: lightgreen}Major Feature%</code></li>
529 <li><code>%{background: lightgreen}Major Enhancement%</code></li>
533 <h2>Disseminate information about the release</h2>
535 <li><a href="http://dev.simantics.org">Developer Wiki</a>: Update roadmap at http://dev.simantics.org/index.php/Roadmap</li>
536 <li><a href="https://www.simantics.org/redmine/">Redmine</a>: Post news on the developer/user-visible changes here.</li>
537 <li><a href="https://www.simantics.org">simantics.org</a>: Post news on the release and a link to the redmine post</li>
538 <li><a href="https://www.simantics.org/members/">Members Wiki</a>: Update frame plan to reflect the realized dates and link to Redmine news</li>
539 <li><a href="mailto:simantics-developers@simantics.org">mailto:simantics-developers@simantics.org</a> Send "newsletter" to `simantics-developers@simantics.org:</li>
541 <p><strong>Newsletter template:</strong></p>
542 <pre><code>Hello everyone,
544 Simantics release x.y.z[.w] has been released. Head over to
545 https://www.simantics.org/redmine/news/<news number>
546 for the release news.
549 Simantics Release Engineering Team
551 <p><strong>Redmine news template:</strong></p>
552 <pre><code>Title: Simantics x.y.z[.w] released
554 Simantics x.y.z[.w] was released on <date>.
555 Please find change log at: [[simantics-platform:Simantics_xyzw|Simantics x.y.z[.w]]]
557 Insert some general thoughts on the release...
562 <li>Create a parametrized release train pipeline build in Jenkins that creates all artifacts of a simantics release
564 <li>Desktop, Sysdyn, R, Simupedia, FMIL, FMI Studio</li>
570 <p>Incorporate tutorial code in the platform repository as a separate folder to allow platform builds to directly ensure that the tutorial code still builds OK</p>
573 <p>Start using https://github.com/mbarbero/fr.obeo.releng.targetplatform to generate <code>.target</code> files. <code>.tpd</code> files allow specifying version ranges instead of specific versions.</p>
579 <!-- This document was created with MarkdownPad, the Markdown editor for Windows (http://markdownpad.com) -->