Name Description Size 0
action 37
analyze 2 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 854 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 Fetch and install binary artifacts from Mozilla automation. 21886 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. 57663
backend 14 Emit the parent directories of a path. 41161 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. 9553 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 ============= 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 ============= 6548
configure 8
controller 3 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. 11136 A thin representation of a key=value .properties file. 2702 This script converts the build system telemetry schema from voluptuous format to json-schema. You should run it with `mach python`. 1524 Use pywatchman to watch source directories and perform partial |mach build faster| builds. 11444 1409
frontend 8 1967 Generate the SHA-512 digest of `data` and return it as a hex string. 2627 # 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 24612 Register a resource JSON file with the server. The file will be made available under the name/key specified. 3626 provides a python class to package up chrome content by processing files. See the documentation for on MDC for further details on the format. 22868 =================== 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 and tell us about your machine and build configuration so we can adjust the warning heuristic. =================== 71136 Provides an interface for writing simple makefiles Instances of this class are created, populated with rules, then written. 6457 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. 13586
mozconfig_loader 1053 Build a dict containing data about the build configuration from the environment. 5382 Determines the possible paths for node executables. Returns a list of paths, which includes the build state directory. 4573 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 Determine the version of a Python executable by invoking it. May raise ``subprocess.CalledProcessError`` or ``ValueError`` on failure. 3629
repackaging 6
resources 1 Constants for SCHEDULES configuration in files and for skip-unless-schedules optimizations in task-graph generation. 2423 Parses a given command line string and creates a list of command and arguments, with wildcard expansion. 7292 Directive to insert mozbuild sandbox symbol information. 5134 This file contains a voluptuous schema definition for build system telemetry, and functions to fill an instance of that schema for a single mach invocation. 14356
test 29 Processes a "support-files" entry from a test object, either from a parsed object from a test manifests or its representation in 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 953 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. 51206
vendor 9 Please upgrade to the latest MozillaBuild development environment. See 28510