ReleaseEngineering/How To/Generate partial updates: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 13: Line 13:
</p>
</p>


= Create config files =
<h1> Create config files </h1>
== Patcher config ==
<h2> Patcher config </h2>
To get setup
<p>To get setup
* grab a copy of the release config, mozRelease-branch-patcher2.cfg, from your own CVS checkout or from [http://mxr.mozilla.org/mozilla/source/tools/patcher-configs/mozRelease-branch-patcher2.cfg?raw=1 mxr]
</p>
* verify that the file is up to date by checking the values of <tt>from</tt> and <tt>to</tt> in <tt><current-update></tt>, and the right buildN in the <tt>completemarurl</tt> of the <tt><releases></tt> block for the release being created
<ul><li> grab a copy of the release config, mozRelease-branch-patcher2.cfg, from your own CVS checkout or from &lt;a href="http://mxr.mozilla.org/mozilla/source/tools/patcher-configs/mozRelease-branch-patcher2.cfg?raw=1"&gt;mxr&lt;/a&gt;
* rename it to mozRelease-branch-patcher2-$XXXXXX.cfg
</li><li> verify that the file is up to date by checking the values of <tt>from</tt> and <tt>to</tt> in <tt>&lt;current-update&gt;</tt>, and the right buildN in the <tt>completemarurl</tt> of the <tt>&lt;releases&gt;</tt> block for the release being created
 
</li><li> rename it to mozRelease-branch-patcher2-$XXXXXX.cfg
To modify the config
</li></ul>
* in the <tt><current-update></tt> block
<p>To modify the config
** change the <tt>from</tt> version to $OLDV
</p>
** in the <tt><partial></tt> block change the from version in the paths to $OLDV
<ul><li> in the <tt>&lt;current-update&gt;</tt> block
* remove all the past-update lines just below <tt><current-update></tt> block
<ul><li> change the <tt>from</tt> version to $OLDV
* remove the unneeded blocks from <tt><release></tt> (keep only $OLDV and $NEWV, for brevity)
</li><li> in the <tt>&lt;partial&gt;</tt> block change the from version in the paths to $OLDV
* if only some platforms are needed (eg windows), remove the other platforms from the <tt><platforms></tt> and <tt><exceptions</tt> blocks
</li></ul>
 
</li><li> remove all the past-update lines just below <tt>&lt;current-update&gt;</tt> block
Attach the file to the bug, request review. You'll download it again later using $YYYYYY for the attachment id. [https://bug768576.bugzilla.mozilla.org/attachment.cgi?id=637051 Example config].
</li><li> remove the unneeded blocks from <tt>&lt;release&gt;</tt> (keep only $OLDV and $NEWV, for brevity)
 
</li><li> if only some platforms are needed (eg windows), remove the other platforms from the <tt>&lt;platforms&gt;</tt> and <tt>&lt;exceptions</tt> blocks
== Update verify configs ==
</li></ul>
To get setup
<p>Attach the file to the bug, request review. You'll download it again later using $YYYYYY for the attachment id. &lt;a href="https://bug768576.bugzilla.mozilla.org/attachment.cgi?id=637051"&gt;Example config&lt;/a&gt;.
* grab a copy of the configs, either from your tools checkout or directly from hg.m.o ([http://hg.mozilla.org/build/tools/raw-file/default/release/updates/mozRelease-firefox-win32.cfg windows], [http://hg.mozilla.org/build/tools/raw-file/default/release/updates/mozRelease-firefox-mac64.cfg mac])
</p>
* verify the configs are up to date by checking the current release is referenced in the 2nd line, and that the to definition there refers to the right buildN path
<h2> Update verify configs </h2>
* rename to mozRelease-firefox-win32-$XXXXXX.cfg
<p>To get setup
 
</p>
To modify the configs:
<ul><li> grab a copy of the configs, either from your tools checkout or directly from hg.m.o (&lt;a href="http://hg.mozilla.org/build/tools/raw-file/default/release/updates/mozRelease-firefox-win32.cfg"&gt;windows&lt;/a&gt;, &lt;a href="http://hg.mozilla.org/build/tools/raw-file/default/release/updates/mozRelease-firefox-mac64.cfg"&gt;mac&lt;/a&gt;)
* remove all the lines that aren't for $OLDV and the current shipped release
</li><li> verify the configs are up to date by checking the current release is referenced in the 2nd line, and that the to definition there refers to the right buildN path
* in $OLDV's full check line
</li><li> rename to mozRelease-firefox-win32-$XXXXXX.cfg
** add the locales from $OLDV's quick check line
</li></ul>
** add the patch_types, aus_server, ftp_server, and to definitions from the current release
<p>To modify the configs:
* remove the $OLDV quick check comment and config line
</p>
* remove current release lines
<ul><li> remove all the lines that aren't for $OLDV and the current shipped release
* repeat for each platform
</li><li> in $OLDV's full check line
 
<ul><li> add the locales from $OLDV's quick check line
Attach the files to the bug as a patch (eg via mq), request review. You'll download it again later using $ZZZZZZ as the attachment id. [https://bug768576.bugzilla.mozilla.org/attachment.cgi?id=637065 Example config].
</li><li> add the patch_types, aus_server, ftp_server, and to definitions from the current release
</li></ul>
</li><li> remove the $OLDV quick check comment and config line
</li><li> remove current release lines
</li><li> repeat for each platform
</li></ul>
<p>Attach the files to the bug as a patch (eg via mq), request review. You'll download it again later using $ZZZZZZ as the attachment id. &lt;a href="https://bug768576.bugzilla.mozilla.org/attachment.cgi?id=637065"&gt;Example config&lt;/a&gt;.
</p>


= Generate the partials =  
= Generate the partials =  
2

edits

Navigation menu