Bug 1543872: [taskgraph] Simplify the calculated path to the root of mozilla-central; r=dustin
authorTom Prince <mozilla@hocat.ca>
Tue, 23 Apr 2019 21:12:00 +0000
changeset 470565 f04be3819486bf2718564654284a921f56b0b570
parent 470564 72dc7deb89f60941a661ab5ff04d9ade077b7a4d
child 470566 0700688b9a2237e0426c9152e810a10ce7645339
push id35908
push useraciure@mozilla.com
push dateWed, 24 Apr 2019 04:28:40 +0000
treeherdermozilla-central@c9f0730a57a6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1543872
milestone68.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 1543872: [taskgraph] Simplify the calculated path to the root of mozilla-central; r=dustin On windows, the generated path will be close to the path length limits, which causes `mach try` to fail. Differential Revision: https://phabricator.services.mozilla.com/D28554
taskcluster/taskgraph/__init__.py
--- a/taskcluster/taskgraph/__init__.py
+++ b/taskcluster/taskgraph/__init__.py
@@ -1,17 +1,17 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import absolute_import, print_function, unicode_literals
 
 import os
 
-GECKO = os.path.realpath(os.path.join(__file__, '..', '..', '..'))
+GECKO = os.path.normpath(os.path.realpath(os.path.join(__file__, '..', '..', '..')))
 
 # Maximum number of dependencies a single task can have
 # https://docs.taskcluster.net/reference/platform/taskcluster-queue/references/api#createTask
 # specifies 100, but we also optionally add the decision task id as a dep in
 # taskgraph.create, so let's set this to 99.
 MAX_DEPENDENCIES = 99
 
 # Enable fast task generation for local debugging