Name Description Size
__init__.py 0
action 37
analyze 2
android_version_code.py Generate a v1 android:versionCode. The important consideration is that version codes be monotonically increasing (per Android package name) for all published builds. The input build IDs are based on timestamps and hence are always monotonically increasing. The generated v1 version codes look like (in binary): 0111 1000 0010 tttt tttt tttt tttt txpg The 17 bits labelled 't' represent the number of hours since midnight on September 1, 2015. (2015090100 in YYYYMMMDDHH format.) This yields a little under 15 years worth of hourly build identifiers, since 2**17 / (366 * 24) =~ 14.92. The bits labelled 'x', 'p', and 'g' are feature flags. The bit labelled 'x' is 1 if the build is for an x86 or x86-64 architecture, and 0 otherwise, which means the build is for an ARM or ARM64 architecture. (Fennec no longer supports ARMv6, so ARM is equivalent to ARMv7. ARM64 is also known as AArch64; it is logically ARMv8.) For the same release, x86 and x86_64 builds have higher version codes and take precedence over ARM builds, so that they are preferred over ARM on devices that have ARM emulation. The bit labelled 'p' is 1 if the build is for a 64-bit architecture (x86-64 or ARM64), and 0 otherwise, which means the build is for a 32-bit architecture (x86 or ARM). 64-bit builds have higher version codes so they take precedence over 32-bit builds on devices that support 64-bit. The bit labelled 'g' is 1 if the build targets a recent API level, which is currently always the case, because Firefox no longer ships releases that are split by API levels. However, we may reintroduce a split in the future, in which case the release that targets an older API level will We throw an explanatory exception when we are within one calendar year of running out of build events. This gives lots of time to update the version scheme. The responsible individual should then bump the range (to allow builds to continue) and use the time remaining to update the version scheme via the reserved high order bits. N.B.: the reserved 0 bit to the left of the highest order 't' bit can, sometimes, be used to bump the version scheme. In addition, by reducing the granularity of the build identifiers (for example, moving to identifying builds every 2 or 4 hours), the version scheme may be adjusted further still without losing a (valuable) high order bit. 7630
artifact_builds.py 848
artifact_cache.py Fetch and cache artifacts from URLs. This module manages fetching artifacts from URLS and purging old artifacts using a simple Least Recently Used cache. This module requires certain modules be importable from the ambient Python environment. Consumers will need to arrange this themselves. The bulk of the complexity is in managing and persisting several caches. If we found a Python LRU cache that pickled cleanly, we could remove a lot of this code! Sadly, I found no such candidate implementations, so we pickle pylru caches manually. None of the instances (or the underlying caches) are safe for concurrent use. A future need, perhaps. 8982
artifact_commands.py Fetch and install binary artifacts from Mozilla automation. 22540
artifacts.py Fetch build artifacts from a Firefox tree. This provides an (at-the-moment special purpose) interface to download Android artifacts from Mozilla's Task Cluster. This module performs the following steps: * find a candidate hg parent revision. At one time we used the local pushlog, which required the mozext hg extension. This isn't feasible with git, and it is only mildly less efficient to not use the pushlog, so we don't use it even when querying hg. * map the candidate parent to candidate Task Cluster tasks and artifact locations. Pushlog entries might not correspond to tasks (yet), and those tasks might not produce the desired class of artifacts. * fetch fresh Task Cluster artifacts and purge old artifacts, using a simple Least Recently Used cache. * post-process fresh artifacts, to speed future installation. In particular, extract relevant files from Mac OS X DMG files into a friendly archive format so we don't have to mount DMG files frequently. This module requires certain modules be importable from the ambient Python environment. |mach artifact| ensures these modules are available, but other consumers will need to arrange this themselves. 57491
backend 14
base.py Emit the parent directories of a path. 39781
build_commands.py What to build. Can be a top-level make target or a relative directory. If multiple options are provided, they will be built serially. BUILDING ONLY PARTS OF THE TREE CAN RESULT IN BAD TREE STATE. USE AT YOUR OWN RISK. 12380
chunkify.py Split an integer into evenly distributed list >>> split_evenly(7, 3) [3, 2, 2] >>> split_evenly(12, 3) [4, 4, 4] >>> split_evenly(35, 10) [4, 4, 4, 4, 4, 3, 3, 3, 3, 3] >>> split_evenly(1, 2) Traceback (most recent call last): ... ChunkingError: Number of chunks is greater than number 1678
code_analysis 4
codecoverage 5
compilation 5
config_status.py ============= ADVERTISEMENT You are building Firefox for Android. After your build completes, you can open the top source directory in Android Studio directly and build using Gradle. See the documentation at https://developer.mozilla.org/en-US/docs/Simple_Firefox_for_Android_build ============= 6548
configure 7
controller 3
doctor.py Disable the last access time feature? This improves the speed of file and directory access by deferring Last Access Time modification on disk by up to an hour. Backup programs that rely on this feature may be affected. https://technet.microsoft.com/en-us/library/cc785435.aspx 15570
dotproperties.py A thin representation of a key=value .properties file. 2702
faster_daemon.py Use pywatchman to watch source directories and perform partial |mach build faster| builds. 11444
fork_interpose.py 1409
frontend 8
gen_test_backend.py 1967
generated_sources.py Generate the SHA-512 digest of `data` and return it as a hex string. 2627
gn_processor.py # 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/. 24451
html_build_viewer.py Register a resource JSON file with the server. The file will be made available under the name/key specified. 3626
jar.py jarmaker.py provides a python class to package up chrome content by processing jar.mn files. See the documentation for jar.mn on MDC for further details on the format. 22868
mach_commands.py =================== PERFORMANCE WARNING Your machine experienced a lot of swap activity during the build. This is possibly a sign that your machine doesn't have enough physical memory or not enough available memory to perform the build. It's also possible some other system activity during the build is to blame. If you feel this message is not appropriate for your machine configuration, please file a Firefox Build System :: General bug at https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox%20Build%20System&component=General and tell us about your machine and build configuration so we can adjust the warning heuristic. =================== 84406
makeutil.py Provides an interface for writing simple makefiles Instances of this class are created, populated with rules, then written. 6461
mozconfig_loader 1053
mozconfig.py Evaluation of your mozconfig exited with an error. This could be triggered by a command inside your mozconfig failing. Please change your mozconfig to not error and/or to catch errors in executed commands. 13381
mozinfo.py Build a dict containing data about the build configuration from the environment. 5415
nodeutil.py Determines the possible paths for node executables. Returns a list of paths, which includes the build state directory. 4195
preprocessor.py This is a very primitive line based preprocessor, for times when using a C preprocessor isn't an option. It currently supports the following grammar for expressions, whitespace is ignored: expression : and_cond ( '||' expression ) ? ; and_cond: test ( '&&' and_cond ) ? ; test: unary ( ( '==' | '!=' ) unary ) ? ; unary : '!'? value ; value : [0-9]+ # integer | 'defined(' \w+ ')' | \w+ # string identifier or value; 29935
pythonutil.py Determine the version of a Python executable by invoking it. May raise ``subprocess.CalledProcessError`` or ``ValueError`` on failure. 3576
repackaging 8
requirements.py Thunderbird requirements definitions cannot include PyPI packages. 5504
resources 1
schedules.py Constants for SCHEDULES configuration in moz.build files and for skip-unless-schedules optimizations in task-graph generation. 2434
settings.py 932
shellutil.py Parses a given command line string and creates a list of command and arguments, with wildcard expansion. 7292
sphinx.py Directive to insert mozbuild sandbox symbol information. 5088
telemetry.py This file contains functions used for telemetry. 7784
test 33
testing.py Processes a "support-files" entry from a test object, either from a parsed object from a test manifests or its representation in moz.build and returns the installs to perform for this test object. Processing the same support files multiple times will not have any further effect, and the structure of the parsed objects from manifests will have a lot of repeated entries, so this class takes care of memoizing. 11368
toolchains.py 1106
util.py Wrapper around the exec statement to avoid bogus errors like: SyntaxError: unqualified exec is not allowed in function ... it is a nested function. or SyntaxError: unqualified exec is not allowed in function ... it contains a nested function with free variable which happen with older versions of python 2.7. 47690
vendor 11
virtualenv.py Please upgrade to the latest MozillaBuild development environment. See https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Windows_Prerequisites 23092