python/moz.build
author Ted Mielczarek <ted@mielczarek.org>
Wed, 12 Apr 2017 15:06:22 -0400
changeset 353399 b5552791f6c8da640cfcb248ba4681d4d31594a5
parent 352464 f04a9d6fc819cf90473b9e2f073485fc75ce818c
child 362858 34b11112f0e3b342c149295ea8e8eac01cdf646c
permissions -rw-r--r--
bug 1355961 - add some sccache stats to build_metrics. r=gps This commit makes sccache dump JSON stats at the end of the build, and then reads them in `BuildScript.generate_build_stats` and adds them to the build_metrics we submit to Perfherder. The stats dumping is done in Makefile.in where we currently dump verbose sccache stats because sccache doesn't persist stats to disk right now and it will also shut down its server process after 5 minutes, so when the post-build automation steps take more than 5 minutes the server shuts down and the stats are lost. Currently it's collecting: * Cache hit rate * Cache write errors * Non-cacheable requests (compiler invocations that sccache can't cache) We can always grow this list later. MozReview-Commit-ID: J9CwU7XB05I

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.

# Default extra components to build config
with Files('**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('PyECC/**'):
    BUG_COMPONENT = ('Core', 'Security: PSM')

with Files('blessings/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('compare-locales/**'):
    BUG_COMPONENT = ('Localization Infrastructure and Tools', 'compare-locales')

with Files('configobj/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('devtools/**'):
    BUG_COMPONENT = ('Firefox', 'Developer Tools')

with Files('dlmanager/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('futures/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('gdbpp/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('jsmin/**'):
    BUG_COMPONENT = ('Firefox for Android', 'Build Config & IDE Support')

with Files('lldbutils/**'):
    BUG_COMPONENT = ('Core', 'General')

with Files('mach/**'):
    BUG_COMPONENT = ('Core', 'mach')

with Files('mock-1.0.0/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('mozboot/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('mozbuild/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('mozlint/**'):
    BUG_COMPONENT = ('Testing', 'Lint')

with Files('mozversioncontrol/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('psutil/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('py/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('pyasn1/**'):
    BUG_COMPONENT = ('Release Engineering', 'General Automation')

with Files('pyasn1-modules/**'):
    BUG_COMPONENT = ('Core', 'Security: PSM')

with Files('pylru/**'):
    BUG_COMPONENT = ('mozilla.org', 'MozillaBuild')

with Files('pystache/**'):
    BUG_COMPONENT = ('Taskcluster', 'General')

with Files('pytest/**'):
    BUG_COMPONENT = ('Testing', 'General')

with Files('pytoml/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('pyyaml/**'):
    BUG_COMPONENT = ('Taskcluster', 'General')

with Files('redo/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('requests/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('rsa/**'):
    BUG_COMPONENT = ('Core', 'Security: PSM')

with Files('slugid/**'):
    BUG_COMPONENT = ('Taskcluster', 'Platform Libraries')

with Files('virtualenv/**'):
    BUG_COMPONENT = ('Core', 'Build Config')

with Files('voluptuous/**'):
    BUG_COMPONENT = ('Taskcluster', 'Task Configuration')

with Files('which/**'):
    BUG_COMPONENT = ('Core', 'Build Config')


SPHINX_PYTHON_PACKAGE_DIRS += [
    'mach',
    'mozbuild/mozbuild',
    'mozbuild/mozpack',
    'mozlint/mozlint',
    'mozversioncontrol/mozversioncontrol',
]

SPHINX_TREES['mach'] = 'mach/docs'

PYTHON_UNITTEST_MANIFESTS += [
    'mach/mach/test/python.ini',
    'mozbuild/dumbmake/test/python.ini',
    'mozlint/test/python.ini',
]

if CONFIG['MOZ_BUILD_APP']:
    PYTHON_UNITTEST_MANIFESTS += [
        'mozbuild/mozbuild/test/python.ini',
        'mozbuild/mozpack/test/python.ini',
    ]