Packaging Android host utilities: Difference between revisions

expanded on explanation of steps as I have been assigned task https://bugzilla.mozilla.org/show_bug.cgi?id=1433279.
(expanded on explanation of steps as I have been assigned task https://bugzilla.mozilla.org/show_bug.cgi?id=1433279.)
Line 4: Line 4:


First, identify the target build.  Generally, prefer Beta channel builds to Nightly channel builds.
First, identify the target build.  Generally, prefer Beta channel builds to Nightly channel builds.
For the version 60 update, host-utils was based on builds from https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=bb369804a51e7665c0b44d3778681ca132cb1c2c. See bug 1433279.


=== Linux ===
=== Linux ===


For the version 60 update, host-utils was based on builds from https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=bb369804a51e7665c0b44d3778681ca132cb1c2c. See bug 1433279. For each of "Linux opt" and "Linux x64 opt", the build's target.tar.bz2 and target.common.tests.zip were downloaded.
Follow these steps to locate and download the necessary files.
 
1. From the selected treeherder build, identify "Linux opt" and "Linux x64 opt".
2. Click on the B icon, which will bring up a pane below.
3. Identify and click on the hash on the left hand pane called "Task".
4. In the newly opened TaskCluster tab, click on tab named "Run Artifacts".
5. Download target.common.tests.tar.gz & target.tar.bz2.
6. Follow the contents of the script below:
 
<pre>
<pre>
tar xvf target.tar.bz2
tar xvf target.tar.bz2
Line 17: Line 27:
mv firefox host-utils-60.0a1.en-US.linux-x86_64
mv firefox host-utils-60.0a1.en-US.linux-x86_64
</pre>
</pre>
If preparing a new archive for upload to tooltool:
 
==== Uploading to ToolTool ====
 
Prepare new archive for upload:
 
<pre>
<pre>
tar cvf host-utils-60.0a1.en-US.linux-x86_64.tar host-utils-60.0a1.en-US.linux-x86_64
tar cvf host-utils-60.0a1.en-US.linux-x86_64.tar host-utils-60.0a1.en-US.linux-x86_64
gzip host-utils-60.0a1.en-US.linux-x86_64.tar
gzip host-utils-60.0a1.en-US.linux-x86_64.tar
</pre>
</pre>
Then upload host-utils-60.0a1.en-US.linux-x86_64.tar.gz to tooltool and update the manifest in testing/config/tooltool-manifests/linux64/hostutils.manifest.  
 
''replace the version numbers as appropriate.''
 
Ensure uploading user has a valid token at [https://mozilla-releng.net/tokens/ Mozilla Releng].
 
Upload the archive:
 
<pre>
python tooltool.py upload [name_of_archive] --authentication-file=[token_location] --message [commit_message]
</pre>
 
Update the manifest in testing/config/tooltool-manifests/linux64/hostutils.manifest.


Repeat, using "Linux opt" archives, for 32 bit.
Repeat, using "Linux opt" archives, for 32 bit.
75

edits