Commit Graph
4445 Commits
Author SHA1 Message Date
Ted Mielczarek 6e12dde581 bug 1505325 - fix build telemetry path filtering when cwd is outside of topsrcdir/objdir. r=firefox-build-system-reviewers,chmanchester
The build telemetry code attempts to filter paths to avoid PII from usernames
and other things. It does this by converting every commandline argument to
an absolute path and then making them relative to topsrcdir or topobjdir and
omitting any that fail. This meant that running a mach command with a cwd
outside of the topsrcdir or objdir would omit all arguments since they were
converted to absolute paths from the cwd.

This change fixes this by adding the cwd to the list of paths used to create
relative paths. Additionally we add the user's home directory to that list
to try to avoid usernames sneaking through. Finally, instead of simply
removing these path prefixes, we replace them with sigils: $topsrcdir,
$objdir, $HOME.

Differential Revision: https://phabricator.services.mozilla.com/D11174
2018-11-10 19:14:44 +00:00
Ted Mielczarek a523f95192 bug 1505325 - refactor telemetry gathering slightly. r=firefox-build-system-reviewers,chmanchester
After bug 1497638 the method by which build telemetry data gets written
to disk is slightly convoluted. Since we're now invoking `gather_telemetry`
from `post_dispatch_handler`, we just make that function return the data
it gathers and inline the contents of `telemetry_handler` after the call
to it.

Differential Revision: https://phabricator.services.mozilla.com/D11173
2018-11-10 19:04:06 +00:00
Ted Mielczarek 10bba71fd1 bug 1505325 - add a basic test for build telemetry. r=firefox-build-system-reviewers,chmanchester
This change adds python/mach/mach/test/test_telemetry.py which contains
a simple test that running mach with the build telemetry setting enabled
causes us to write a telemetry file. The test fixture in the file should
make it easy to write additional tests.

A necessary precursor to make the tests work was to change mach_bootstrap's
`should_skip_dispatch` function, which would refuse to write telemetry data
if stdout was not a terminal (which it isn't in the tests) and also in
automation. The latter test is moved to ensure that we don't *submit*
telemetry data from automation, but we can still write it to disk. Machines
in automation should never have the telemetry setting enabled outside of
these tests anyway, so this should not change anything in practice.

Differential Revision: https://phabricator.services.mozilla.com/D11172
2018-11-10 19:04:05 +00:00
Cosmin Sabou 3376a2604d Backed out changeset 4034fbcc0a55 (bug 1501802) for causing mass mochitest failures. 2018-11-10 15:21:03 +02:00
Bob Clary df334c7417 Bug 1501802 - Update tooltool.py fetch_file to log.info exceptions instead of log.debug, r=garbas 2018-11-10 03:10:08 -08:00
Nathan Froyd 1bc1ce8610 Bug 1504031 - follow-up - require Rust 1.30.1 in bootstrap; r=me 2018-11-09 18:47:37 -05:00
Dan Gohman 985641ea40 Bug 1505777: [Cranelift] Update to Cranelift 0.23. r=bbouvier 2018-11-09 05:15:49 -08:00
Daniel Varga a108aa9406 Merge mozilla-central to autoland. a=merge 2018-11-09 12:22:53 +02:00
Mike Hommey 2a13029533 Bug 1505634 - Allow MOZ_ARTIFACT_REVISION to point to unknown mercurial changesets. r=nalexander
When using artifact builds, one can use the MOZ_ARTIFACT_REVISION
environment variable to force download artifacts from the given
revision.

When the VCS is git, it expects the revision to be a git ref or commit
sha1, which is resolved to a mercurial changeset via git-cinnabar.

It can however be convenient to just point to a given mercurial revision
directly, from, say, try, without pulling it first. This can actually be
useful even when the VCS is mercurial.

So if the given revision doesn't resolve to an existing git or hg commit,
and it's a complete 40-character sha1, we assume it's a valid mercurial
changeset.

Differential Revision: https://phabricator.services.mozilla.com/D11266
2018-11-09 02:29:38 +00:00
Jonathan Watt 2e68271f67 Bug 1408675 p4. Set per-directory include paths for Eclipse CDT. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D12011
2018-10-31 17:49:22 +00:00
Jonathan Watt 21b8d9f1cb Bug 1408675 p3. Have Eclipse CDT globally set MOZILLA_CLIENT and the NSS include path. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D12010
2018-10-31 14:19:51 +00:00
Jonathan Watt ace0cd0218 Bug 1408675 p2. Fix Eclipse CDT project missing defines. r=botond
consume_object() is only called with Defines objects for directories containing
a moz.build file that sets a DEFINES value, and those Defines objects only
contain the defines set in that moz.build (not defines that affect the
directory's files that are set elsewhere).  That's why we fail to set some
defines.

This commit changes consume_object to obtain defines from the ComputedFlags
objects that it is passed instead.  We get one of these objects for every
directory with a moz.build, and we can obtain all defines passed to the
compiler for the files in a given directory from these objects.

Differential Revision: https://phabricator.services.mozilla.com/D12009
2018-10-31 13:27:00 +00:00
Jonathan Watt 849e91a1a2 Bug 1408675 p1. Set Eclipse CDT per-directory defines in the right place. r=botond
We've been setting per-directory defines in the "CDT Managed Build Setting
Entries" which are ignored(!) during indexing since we don't use the Eclipse
managed build system (we use mach). We need to set the defines as "CDT User
Setting Entries".

Differential Revision: https://phabricator.services.mozilla.com/D12008
2018-10-31 10:02:35 +00:00
Jonathan Watt 1e34f8a14e Bug 1501507. Make the Eclipse CDT project ignore some directories when indexing. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D9606
2018-10-30 15:56:29 +00:00
Csoregi Natalia 6ab28166ea Backed out changeset 5cb52fcd2fb0 (bug 1504751) for browser_misused_characters_in_strings.js failures. CLOSED TREE 2018-11-08 21:47:38 +02:00
Chris Manchester ef8c3e4448 Bug 1505072 - Implement rusttests as a non-default sub-graph of the build. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D11240
2018-11-08 17:02:27 +00:00
Collin Wing 3d5481fe31 Bug 1504751 Migrate about:networking to Fluent r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D10977
2018-11-08 16:57:14 +00:00
Brindusan Cristian cac1476f67 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-08 11:39:58 +02:00
Collin Wing d2c9cbdf08 Bug 1504457 Migrate subcribe.js to Fluent r=flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D10863
2018-11-07 13:08:43 +00:00
arthur.iakab 43346ad6f8 Merge mozilla-central to autoland 2018-11-08 06:53:16 +02:00
Tom Prince f7ff60bfc9 Bug 1492128: [mozrelease] Tweak buglist email to be nicely formated and not use URL shortener; r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D11096
2018-11-06 18:54:20 +00:00
Cosmin Sabou 1487159383 Backed out changeset 3bc25efb5703 (bug 1504457) for linting opt failures. 2018-11-08 00:32:07 +02:00
Collin Wing 9eef177c0f Bug 1504457 Migrate subcribe.js to Fluent r=flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D10863
2018-11-07 13:08:43 +00:00
arthur.iakab 12c34d5b98 Merge inbound to mozilla-central a=merge 2018-11-07 23:51:27 +02:00
Cosmin Sabou 728f4df779 Backed out 4 changesets (bug 1491676) for causing browser chrome failures on browser_storagePressure_notification. CLOSED TREE
Backed out changeset 08cbaa2f9183 (bug 1491676)
Backed out changeset fae949de1ed5 (bug 1491676)
Backed out changeset aeb045b90321 (bug 1491676)
Backed out changeset e75c59f129ea (bug 1491676)
2018-11-07 20:53:48 +02:00
Collin Wing 36fa130827 Bug 1501900 Convert about:devtools to use Fluent r=flod,jaws,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D9816
2018-11-05 18:52:42 +00:00
Jack Smith 01b9af673d Bug 1491676 - Moves permissions strings r=flod,Gijs,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D9917
2018-11-07 18:06:42 +00:00
Jack Smith 34a6280a34 Bug 1491676 - Moves download folder strings r=flod,Gijs,zbraniecki
Depends on D8554

Differential Revision: https://phabricator.services.mozilla.com/D8928
2018-11-07 18:05:56 +00:00
Jack Smith db824099f8 Bug 1491676 - Moves out of space warning strings r=flod,Gijs,zbraniecki
Depends on D8553

Differential Revision: https://phabricator.services.mozilla.com/D8554
2018-11-07 18:05:13 +00:00
Jack Smith 62e329e8a7 Bug 1491676 - Moves master password dialog strings r=flod,Gijs,zbraniecki
Depends on D8552

Differential Revision: https://phabricator.services.mozilla.com/D8553
2018-11-07 18:04:30 +00:00
Kim Moir 1f0286d0b0 Bug 1485228 - Add support for repackage msi r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D9331
2018-11-07 17:45:46 +00:00
Andrew Halberstadt 0388a17c44 Bug 1503599 - [mozlint] Default lineno to 0 in result.Issue if unset, r=jgraham
This assumes that a lineno of 0 denotes a "file-level" issue, e.g an issue
associated with the filename. In the future it might be better to treat these
"file-level" issues as first class citizens. This would involve updating things
like formatters, editor integrations and review bot to not assume a lineno.

Differential Revision: https://phabricator.services.mozilla.com/D10383
2018-11-07 15:21:31 +00:00
Edwin Gao 5438b5ad0c Bug 1504550 - error running ./mach wpt --debugger rr --headless --no-manifest-update r=gbrown
Changes:
- under a specific code path such as:
`./mach <test_type> --debugger`
there exists now additional checks for IndexError when attempting to parse the debugger program name.
- print a nicer error message if user failed to properly specify the debugger program name.
- raise exit code of 1 if IndexError is raised.

Others:
- code comments updated to better reflect/describe what the section does.

Differential Revision: https://phabricator.services.mozilla.com/D10987
2018-11-07 12:47:34 +00:00
Ciure Andrei 474054f58c Backed out 4 changesets (bug 1491676) for browser-chrome permissions failures CLOSED TREE
Backed out changeset e860d0d115d0 (bug 1491676)
Backed out changeset 04b83b7977c4 (bug 1491676)
Backed out changeset eb19b384d908 (bug 1491676)
Backed out changeset 76ea995336dc (bug 1491676)
2018-11-07 13:44:26 +02:00
Jack Smith 7c338cfcba Bug 1491676 - Moves permissions strings r=flod,Gijs,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D9917
2018-11-07 10:21:50 +00:00
Jack Smith e5e3f7a81a Bug 1491676 - Moves download folder strings r=flod,Gijs,zbraniecki
Depends on D8554

Differential Revision: https://phabricator.services.mozilla.com/D8928
2018-11-05 16:59:02 +00:00
Jack Smith 4367c8c7e2 Bug 1491676 - Moves out of space warning strings r=flod,Gijs,zbraniecki
Depends on D8553

Differential Revision: https://phabricator.services.mozilla.com/D8554
2018-11-05 16:57:51 +00:00
Jack Smith 880b96f49b Bug 1491676 - Moves master password dialog strings r=flod,Gijs,zbraniecki
Depends on D8552

Differential Revision: https://phabricator.services.mozilla.com/D8553
2018-11-05 16:57:09 +00:00
Jim Lennon 614fda6a54 Bug 1491679 - Convert portions of about:addons to Fluent. r=Gijs,flod,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D7638
2018-11-07 10:20:31 +00:00
Nick Alexander cd9a49ed12 Bug 1503651 - Drop audience flavor dimension. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D10412
2018-11-06 23:21:30 +00:00
Chris Manchester 3b65ab4605 Bug 1504844 - Log a reason when the build driver decides to run configure. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D10966
2018-11-06 00:03:48 +00:00
Andreea Pavel 4a0a1d7bc6 Backed out changeset 22b989a6c91d (bug 1501900) for build bustages on a CLOSED TREE 2018-11-06 19:11:09 +02:00
Collin Wing 75f0f257d5 Bug 1501900 Convert about:devtools to use Fluent r=flod,jaws,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D9816
2018-11-05 18:52:42 +00:00
Ted Mielczarek ebf84bc4ff bug 1483941 - prompt to enable build system telemetry in bootstrap. r=nalexander
This change adds a prompt to enable build system telemetry as part of
bootstrap. The prompt will only be shown if the build.telemetry config value
is not present, so users will not be prompted again if they have already
opted-in. However, if a user answers 'no' we don't save that value to
the config file because the default is to not send telemetry, so unless
they manually add `telemetry = false` to their config file they will be
prompted again the next time they run bootstrap.

The config value is always written to `~/.mozbuild/machrc` where we store
other Firefox build-related state. A standalone function is used to write
the config file so that we can do so even when running from bootstrap.py
outside of the context of a mach command.

As part of this change a `prompt_yesno` method is added to `BaseBootstrapper`.

Differential Revision: https://phabricator.services.mozilla.com/D9781
2018-11-06 14:19:24 +00:00
arthur.iakab 3814acbceb Merge mozilla-central to inbound 2018-11-07 23:56:03 +02:00
Jonathan Watt fe9c610c02 Bug 1505386. Remove dead B2G code from the Eclipse CDT project generator. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D11169
2018-10-25 09:32:05 +01:00
Qinghao_Jack_Song 22793ab15f Bug 1491672 - Migrate About Dialog to use Fluent for localization r=flod,zbraniecki,jaws
Differential Revision: https://phabricator.services.mozilla.com/D7206
2018-11-05 16:13:12 +00:00
Gurzau Raul 1ec5392d84 Backed out changeset dc7924e3ea6b (bug 1483941) for causing bug 1504449. a=backout 2018-11-03 20:41:00 +02:00
Cosmin Sabou d17a6ab373 Backed out 48 changesets (bug 1376873, bug 1502992) for causing windows 7 wpt crashes on several files.
Backed out changeset b9db1780bb9c (bug 1502992)
Backed out changeset f9f879bd247c (bug 1376873)
Backed out changeset f029e9f3ceaf (bug 1376873)
Backed out changeset 7317f657a9a7 (bug 1376873)
Backed out changeset 4efbe4d0050c (bug 1376873)
Backed out changeset 26e09a6dee05 (bug 1376873)
Backed out changeset afbd3a8108de (bug 1376873)
Backed out changeset 23b5fb1a2577 (bug 1376873)
Backed out changeset 5d9c7a09616c (bug 1376873)
Backed out changeset f15c4be0f19f (bug 1376873)
Backed out changeset 3d11b041baf2 (bug 1376873)
Backed out changeset 9674bbefc68e (bug 1376873)
Backed out changeset 5a45d2c706d6 (bug 1376873)
Backed out changeset 9b82f16618b9 (bug 1376873)
Backed out changeset 0c3c2fc4646b (bug 1376873)
Backed out changeset 381df4c6ae88 (bug 1376873)
Backed out changeset acc06acb5342 (bug 1376873)
Backed out changeset 60fdf3598932 (bug 1376873)
Backed out changeset 176b82dccf4c (bug 1376873)
Backed out changeset 58e47be76761 (bug 1376873)
Backed out changeset d082eb8d80c6 (bug 1376873)
Backed out changeset 622f78404b8a (bug 1376873)
Backed out changeset 086c722131f9 (bug 1376873)
Backed out changeset 79010785539c (bug 1376873)
Backed out changeset 6b2919ed789b (bug 1376873)
Backed out changeset da8d3eb163bd (bug 1376873)
Backed out changeset 0fc8c65e163e (bug 1376873)
Backed out changeset de3f5bd6846b (bug 1376873)
Backed out changeset 2951112ade46 (bug 1376873)
Backed out changeset 9fe47f8ea1b8 (bug 1376873)
Backed out changeset b94935661622 (bug 1376873)
Backed out changeset 6eca45c83131 (bug 1376873)
Backed out changeset 909f472c2e40 (bug 1376873)
Backed out changeset 19d9a30b300c (bug 1376873)
Backed out changeset 6a52b92ff037 (bug 1376873)
Backed out changeset 6a6771656fe5 (bug 1376873)
Backed out changeset ffdbeba93fa6 (bug 1376873)
Backed out changeset d12ad321047d (bug 1376873)
Backed out changeset d1f7d44e05a4 (bug 1376873)
Backed out changeset b59e1fca5c13 (bug 1376873)
Backed out changeset 5d7a8864505d (bug 1376873)
Backed out changeset e1ea09e84feb (bug 1376873)
Backed out changeset bc92eac0522f (bug 1376873)
Backed out changeset 1f86d23e4806 (bug 1376873)
Backed out changeset d78c5c50b6b8 (bug 1376873)
Backed out changeset 2e1af73cdd2e (bug 1376873)
Backed out changeset dda3c784b0c0 (bug 1376873)
Backed out changeset f40ca921b74b (bug 1376873)
2018-11-03 03:12:43 +02:00
Tooru Fujisawa ddb6eeb8b9 Bug 1492716 - Part 4: Add linter for configure option with function default. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D8836
2018-10-16 20:28:13 +09:00