Bug 1557785 - Add Windows generate profile task; r=tomprince
authorMike Shal <mshal@mozilla.com>
Wed, 19 Jun 2019 22:05:43 +0000
changeset 480092 516aa5eb97328ea43f3a2c2a7de17c947d023f79
parent 480091 2989571031f9691269ef4441129432d31c5b66dc
child 480093 0b6522f13bcfe979c1cd25e58447eecac2df9b34
push id36201
push usercsabou@mozilla.com
push dateWed, 26 Jun 2019 03:57:29 +0000
treeherdermozilla-central@a3cad1d7836c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstomprince
bugs1557785
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1557785 - Add Windows generate profile task; r=tomprince Differential Revision: https://phabricator.services.mozilla.com/D34797
taskcluster/ci/generate-profile/kind.yml
taskcluster/taskgraph/transforms/run_pgo_profile.py
--- a/taskcluster/ci/generate-profile/kind.yml
+++ b/taskcluster/ci/generate-profile/kind.yml
@@ -86,8 +86,36 @@ jobs:
             job-script: taskcluster/scripts/tester/test-linux.sh
             script: android_emulator_pgo.py
             tooltool-downloads: internal
             options: [installer-path=/builds/worker/fetches/target.apk]
             config:
                 - android/android_common.py
                 - android/androidarm_4_3.py
                 - android/android_pgo.py
+
+    win64-shippable/opt:
+        description: "Win64 Profile Generation"
+        shipping-phase: build
+        shipping-product: firefox
+        index:
+            product: firefox
+            job-name: win64-profile
+        treeherder:
+            platform: windows2012-64-shippable/opt
+        worker-type: b-win2012
+        worker:
+            max-run-time: 1200
+            env:
+                UPLOAD_PATH: "artifacts"
+            artifacts:
+                - type: file
+                  name: public/build/profdata.tar.xz
+                  path: build/src/artifacts/profdata.tar.xz
+                - type: file
+                  name: public/build/profile-run-1.log
+                  path: build/src/artifacts/profile-run-1.log
+                - type: file
+                  name: public/build/profile-run-2.log
+                  path: build/src/artifacts/profile-run-2.log
+        run:
+            using: run-task
+            command: mv fetches build/src && cd build/src && ./taskcluster/scripts/misc/run-profileserver.sh
--- a/taskcluster/taskgraph/transforms/run_pgo_profile.py
+++ b/taskcluster/taskgraph/transforms/run_pgo_profile.py
@@ -19,12 +19,14 @@ transforms = TransformSequence()
 def run_profile_data(config, jobs):
     for job in jobs:
         build_platform = job['attributes'].get('build_platform')
         instr = 'instrumented-build-{}'.format(job['name'])
         if 'android' in build_platform:
             artifact = 'target.apk'
         elif 'macosx64' in build_platform:
             artifact = 'target.dmg'
+        elif 'win' in build_platform:
+            artifact = 'target.zip'
         else:
             artifact = 'target.tar.bz2'
         job.setdefault('fetches', {})[instr] = [artifact]
         yield job