Bug 1580622: Disable python bytecode generation in the decision task; r=nalexander on a CLOSED TREE
authorTom Prince <mozilla@hocat.ca>
Mon, 07 Oct 2019 22:48:48 +0000
changeset 496700 035f52aed4427b22facfa883067e298f10ef9e97
parent 496699 7a8b337580fb7c519eef65149fbfc94903e8f854
child 496701 3c06dabe2b51e047def184b55e5088f71020f07b
push id36665
push userapavel@mozilla.com
push dateTue, 08 Oct 2019 09:34:20 +0000
treeherdermozilla-central@035f52aed442 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1580622
milestone71.0a1
first release with
nightly linux32
035f52aed442 / 71.0a1 / 20191008093420 / files
nightly linux64
035f52aed442 / 71.0a1 / 20191008093420 / files
nightly mac
035f52aed442 / 71.0a1 / 20191008093420 / files
nightly win32
035f52aed442 / 71.0a1 / 20191008093420 / files
nightly win64
035f52aed442 / 71.0a1 / 20191008093420 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1580622: Disable python bytecode generation in the decision task; r=nalexander on a CLOSED TREE Differential Revision: https://phabricator.services.mozilla.com/D48457
.taskcluster.yml
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -193,16 +193,20 @@ tasks:
             # to `mach taskgraph decision` are all on the command line.
             $merge:
               - GECKO_BASE_REPOSITORY: 'https://hg.mozilla.org/mozilla-unified'
                 GECKO_HEAD_REPOSITORY: '${repoUrl}'
                 GECKO_HEAD_REF: '${push.revision}'
                 GECKO_HEAD_REV: '${push.revision}'
                 HG_STORE_PATH: /builds/worker/checkouts/hg-store
                 TASKCLUSTER_CACHES: /builds/worker/checkouts
+                # mach generates pyc files when reading `mach_commands.py`
+                # This causes cached_task digest generation to be random for
+                # some tasks. Disable bytecode generation to work around that.
+                PYTHONDONTWRITEBYTECODE: '1'
                 # someday, these will be provided by the worker - Bug 1492664
                 TASKCLUSTER_ROOT_URL: https://taskcluster.net
                 TASKCLUSTER_PROXY_URL: http://taskcluster
               - $if: 'tasks_for == "action"'
                 then:
                   ACTION_TASK_GROUP_ID: '${action.taskGroupId}'     # taskGroupId of the target task
                   ACTION_TASK_ID: {$json: {$eval: 'taskId'}} # taskId of the target task (JSON-encoded)
                   ACTION_INPUT: {$json: {$eval: 'input'}}