Commit Graph

4039 Commits

Author SHA1 Message Date
Dorel Luca
74bbb3c1eb Backed out 4 changesets (bug 1460402) for breaking taskcluster images. CLOSED TREE
Backed out changeset 5b40f3f18f42 (bug 1460402)
Backed out changeset 17526c61b995 (bug 1460402)
Backed out changeset e1caff997e5a (bug 1460402)
Backed out changeset 06ceda084d69 (bug 1460402)
2018-05-10 23:54:38 +03:00
Andrew Halberstadt
11734ea63e Bug 1454640 - [mozbuild] Ability to find sphinx variables relevant to a given path r=mshal
The current mechanism for reading SPHINX variables assumes we always want to
read metadata for the entire tree. Now that we have the ability to rebuild
specific subtrees, this assumption is false.

This patch allows us to specify a path that find_sphinx_variables can use to
filter down the set of moz.build variables it will traverse, yielding only
moz.builds that could potentially impact the specified path.

MozReview-Commit-ID: ALrCFLFgMLH

--HG--
extra : source : 22f2dc60e6d859d3ca411826c77002d87c1a49bd
2018-04-17 11:51:37 -04:00
Andrew Halberstadt
03da91b713 Bug 1454640 - [docs] Use a single SphinxManager instance across all rebuilds r=mshal
In the mozbuild.sphinx extension, we create a new SphinxManager instance each
time. However this isn't ideal now that we can rebuild the docs within the same
interpreter using the livereload server.

This makes use of a singleton so that we can share state not only between
multiple invocations of sphinx-build, but also with the mach command. This will
be taken advantage of more heavily in future commits in this series.

MozReview-Commit-ID: 7ERYeN5BPeI

--HG--
extra : source : 8309212d820bcca29aa95b7892d39940437f2aa8
2018-04-18 12:56:55 -04:00
Coroiu Cristina
5dfcabfb35 Backed out 6 changesets (bug 1454640) for bustage at build/src/security/manager/ssl/nsNSSComponent.cpp on a CLOSED TREE
Backed out changeset d03f75986f62 (bug 1454640)
Backed out changeset 47fc3e223867 (bug 1454640)
Backed out changeset 22f2dc60e6d8 (bug 1454640)
Backed out changeset 30b4083534b5 (bug 1454640)
Backed out changeset 8309212d820b (bug 1454640)
Backed out changeset 9942d2df3719 (bug 1454640)
2018-05-10 23:12:38 +03:00
Sylvestre Ledru
c2704ae938 Bug 1460402 - Create a new class to manage pip install r=ahal
MozReview-Commit-ID: JnscCmC4gBt

--HG--
extra : rebase_source : d2d203d63a1c21fa90c36a28a58378bf66718751
2018-05-10 19:05:30 +02:00
Andrew Halberstadt
cb800e2585 Bug 1454640 - [mozbuild] Ability to find sphinx variables relevant to a given path r=mshal
The current mechanism for reading SPHINX variables assumes we always want to
read metadata for the entire tree. Now that we have the ability to rebuild
specific subtrees, this assumption is false.

This patch allows us to specify a path that find_sphinx_variables can use to
filter down the set of moz.build variables it will traverse, yielding only
moz.builds that could potentially impact the specified path.

MozReview-Commit-ID: ALrCFLFgMLH

--HG--
extra : rebase_source : d0c26a006bb4dbc429be5eedad7825d4412dc2a4
2018-04-17 11:51:37 -04:00
Andrew Halberstadt
09c473ae93 Bug 1454640 - [docs] Use a single SphinxManager instance across all rebuilds r=mshal
In the mozbuild.sphinx extension, we create a new SphinxManager instance each
time. However this isn't ideal now that we can rebuild the docs within the same
interpreter using the livereload server.

This makes use of a singleton so that we can share state not only between
multiple invocations of sphinx-build, but also with the mach command. This will
be taken advantage of more heavily in future commits in this series.

MozReview-Commit-ID: 7ERYeN5BPeI

--HG--
extra : rebase_source : 44aee637ea9b828b43b82e8639ddc3cc7f68c797
2018-04-18 12:56:55 -04:00
Csoregi Natalia
f034c0ab5d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-10 12:52:31 +03:00
Cosmin Sabou
ea5feeedb6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-10 01:16:27 +03:00
Cosmin Sabou
5470a81920 Merge mozilla-central to autoland. a=merge
--HG--
extra : rebase_source : 2f2bf3dc60329bfb92eab3401b92f4eadf0bf8c3
2018-05-09 20:31:27 +03:00
Cosmin Sabou
a916fb7c3e Merge inbound to mozilla-central. a=merge 2018-05-09 20:27:38 +03:00
Margareta Eliza Balazs
6c97db61d4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-09 12:40:18 +03:00
Margareta Eliza Balazs
eb6c5214a6 Merge inbound to mozilla-central. a=merge 2018-05-09 12:33:51 +03:00
Nika Layzell
9206a422c3 Bug 1455722 - Don't use FileAvoidWrite for writing .xpt files. r=mccr8
Unfortunately, FileAvoidWrite causes us to re-generate .xpt files every time we
build if a dependency of the .xpt files doesn't affect their output.

The easiest solution is to stop performing this option until we get a better
build backend like `tup` which can handle problems like this.
2018-04-30 15:15:00 -04:00
Kris Maglione
4900714df7 Bug 1457321: Part 1 - Add bundled dictionaries to built_in_addons.json. r=ted,rhelmer
MozReview-Commit-ID: GxCSXXaz8kz

--HG--
extra : rebase_source : a334cfbeee786aeaca373b5a7fc8107fa44c2243
2018-04-27 15:42:55 -07:00
Jan Henning
2417c8160f Bug 1352015 - Part 2: Build with Android O SDK. r=nalexander
MozReview-Commit-ID: BhqwL4nyj6J

--HG--
extra : rebase_source : 95a111c221b01a2d2243fb451c9bd3ec97967ac6
2018-05-06 17:38:22 +02:00
Michael Kaply
ce0446bbdc Bug 1352539 - Move default search engine to list.json. r=florian
MozReview-Commit-ID: Kpz4Xb7nZ16

--HG--
extra : rebase_source : 6d4e48f27dfe4e07fb145c77ff2bb1c10cfab97c
2018-04-20 12:48:02 -05:00
Nick Alexander
6def81e643 Bug 1459979 - Sort artifact candidate hg revisions by local integer revision. r=froydnj
This works around a situation observed with old hg versions (hg 4.2?)
with mozilla-unified.  I don't know why we haven't witnessed it more
generally, since the sort order was textual and should have caused
issues.

MozReview-Commit-ID: DBtfRJ3NJGR

--HG--
extra : rebase_source : b8605e34341e2c3a40f424688ecef1dbac4dc58e
2018-05-07 16:06:14 -07:00
Mike Shal
122fa76f08 Bug 1456603 - Enable check_unchanged=True for more rules in the tup backend; r=chmanchester
Enabling this flag on rules that produce many small outputs (especially
header files that may trigger many other rules) can help reduce
incremental build time. It probably doesn't make sense to have this
enabled for .o files and linker rules, because those are less likely to
be unchanged when an input file changes, and are also larger so the time
to diff them can be more significant.

MozReview-Commit-ID: BbJaMCqPU6z

--HG--
extra : rebase_source : 31c8be252c26d3aa85e4390cf27f3ec027e88c00
2018-05-08 16:41:00 -04:00
Gregory Szorc
4e54ff754e Bug 1458627 - Bump MODERN_MERCURIAL_VERSION to 4.3.3; r=sheehan
We bump the Mercurial version after a new Mercurial release. 4.6 was
just released. So...

MozReview-Commit-ID: LQ49eVCDuGG

--HG--
extra : rebase_source : 6b213a62216d1b8a9ec4f303d05d01e0609734a1
2018-05-07 18:11:28 -07:00
Rob Wood
6802d07a28 Bug 1455872 - Build support for the new raptor performance framework; r=gps
MozReview-Commit-ID: FBvXwkYfz0o

--HG--
extra : rebase_source : eb611d916d1bfda47321f6f424eeefa5598c1f83
2018-05-02 16:42:41 -04:00
Rob Wood
ced102a09b Bug 1455872 - Add taskcluster configs for raptor on OSX; r=jmaher
MozReview-Commit-ID: I67InZTEziy

--HG--
extra : rebase_source : b18672eca2d3922367d3e4e50ff4b451a06e479e
2018-04-24 10:30:42 -04:00
Zibi Braniecki
e0eadf3d5a Bug 1457021 - Add l10n migration script for Preferences Subdialog migration to Fluent. r=flod
MozReview-Commit-ID: 4Uzmbb08f8K

--HG--
extra : rebase_source : 71b8016466129071440a81466b90ae3ad0b2cb1e
2018-05-08 15:06:21 -07:00
Nathan Froyd
0de7ff8ffa Bug 1459988 - disallow MSVC 15.7+ from being used to build Firefox; r=ted.mielczarek 2018-05-09 17:26:32 -04:00
Zibi Braniecki
fcea421df8 Bug 1457948 - Migrate in-content/privacy.js to Fluent. r=flod,jaws
MozReview-Commit-ID: 7K7Wgm5ahTL

--HG--
extra : rebase_source : c87b39226e1566a4c085cab06b1c559bd31a54c8
2018-04-30 10:29:18 -07:00
Dorel Luca
559b69d4ad Backed out changeset fba5e06d6365 (bug 1457948) for Browser-chrome failures on multipe files. CLOSED TREE 2018-05-08 10:54:13 +03:00
Zibi Braniecki
e0a4c31651 Bug 1457948 - Migrate in-content/privacy.js to Fluent. r=flod,jaws
MozReview-Commit-ID: 7K7Wgm5ahTL

--HG--
extra : rebase_source : 2824d6207614b4425c67507b0ae57f78feeaa837
2018-04-30 10:29:18 -07:00
Chris Manchester
526c8d5347 Bug 1459074 - Do not fail when installing tests if the install manifest for test harness files is missing. r=mshal
MozReview-Commit-ID: 4zp0eANlO9G

--HG--
extra : rebase_source : 7cc26b54becb14090f9a0b6155c7024c03a3b447
2018-05-07 11:49:14 -07:00
Nick Alexander
00dc996ad3 Bug 1444546 - Post: Remove add_java_jar and support. r=froydnj
MozReview-Commit-ID: J6E2ZOs9r3P

--HG--
extra : rebase_source : 0e68f776e95e0fd2fec4607435d030acc68ca0ad
2018-03-06 14:48:20 -08:00
Csoregi Natalia
d69aac5687 Merge inbound to mozilla-central. a=merge 2018-05-05 12:47:28 +03:00
Tom Prince
6f56e02f9f No bug: Fix some python linting errors; r=dustin
Differential Revision: https://phabricator.services.mozilla.com/D1127

--HG--
extra : source : cf3337b33f9e2c99e94196f81c4baad7d00b8e7e
extra : histedit_source : efcdccb727ef3eb7a0734ca4e6b795ad982ba67f
2018-05-03 10:42:05 -06:00
Tom Prince
9be271f7c9 Bug 1458700: [taskgraph] Move load_graph_config into taskgraph.config; r=dustin
Differential Revision: https://phabricator.services.mozilla.com/D1123

--HG--
extra : source : 38407a04fc43074648430482c6d4b0860cb9473d
extra : histedit_source : 09c671d2923789aae334e3c8df8510a1a9f07bd0
2018-05-02 19:28:43 -06:00
Brian Grinstead
e68a4059c7 Bug 1458588 - Create objdir/tmp if it doesn't exist during mach run;r=ahal
This fixes `./mach run --temp-profile` after a clobber.

MozReview-Commit-ID: 7xoH5RCSpXx

--HG--
extra : rebase_source : b26f54b6ac4b0d9020fb803f9fb8c51ea51f511d
2018-05-02 09:26:13 -07:00
Cosmin Sabou
ce9ff94ffe Merge inbound to mozilla-central. a=merge 2018-05-02 17:58:43 +03:00
Ms2ger
9031e5b372 Bug 1457488 - Improve error message with lower-case environment variable; r=chmanchester 2018-05-02 11:59:32 +02:00
Cosmin Sabou
435ba6ef00 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : devtools/client/responsive.html/components/NetworkThrottlingSelector.js => devtools/client/shared/components/throttling/NetworkThrottlingSelector.js
rename : devtools/client/responsive.html/actions/network-throttling.js => devtools/client/shared/components/throttling/actions.js
rename : devtools/client/shared/network-throttling-profiles.js => devtools/client/shared/components/throttling/profiles.js
rename : devtools/client/responsive.html/reducers/network-throttling.js => devtools/client/shared/components/throttling/reducer.js
2018-05-02 12:27:59 +03:00
Brian Grinstead
70be31f665 Bug 1457963 - Add a --temp-profile argument to mach run that creates a new temp profile directory;r=ahal
MozReview-Commit-ID: LI6a9KBNXer

--HG--
extra : rebase_source : 44095e02ff3ad74cabbf723a671283ecd450e978
2018-05-01 12:13:40 -07:00
Chris Manchester
042bdc1c1b Bug 1372381 - Install TEST_HARNESS_FILES in the tup backend. r=mshal
MozReview-Commit-ID: 3PTtvoh8D9L

--HG--
extra : rebase_source : e24ca24070361e8fea00bc4e642af24087838e59
2018-04-30 11:10:44 -07:00
Chris Manchester
352cc3c613 Bug 1372381 - Compile host libraries, host programs, and simple programs in the Tup backend. r=mshal
MozReview-Commit-ID: 2AcpqiOqSSf

--HG--
extra : rebase_source : 13fe899a0487350345a66da04e4771aefbc86aeb
2018-04-30 11:10:44 -07:00
Chris Manchester
5ee980ae1b Bug 1372381 - Temporarily skip certain problematic binaries in the Tup backend. r=mshal
MozReview-Commit-ID: 7lopI8UQPSZ

--HG--
extra : rebase_source : 55b838e878cdaf20a5981f0f17f6bfc5b34a033a
2018-04-30 11:10:21 -07:00
Chris Manchester
22900f8fb9 Bug 1372381 - Generate automation.py with GENERATED_FILES rather than Makefile.in r=mshal
This commit also removes "DEFAULT_APP", which is unused.

MozReview-Commit-ID: 5YYaC5LJqUn

--HG--
extra : rebase_source : 45f0f8f11698890fae0dcca71174f88dbdb412c8
2018-04-30 11:08:59 -07:00
Jan Beich
639ed8fb3e Bug 1457765 - Install python3 as required on FreeBSD. r=froydnj,mshal
MozReview-Commit-ID: BSyDzVphdW1

--HG--
extra : rebase_source : 1908d9dc977302d891082e77188d8b56586cac72
2018-04-29 12:54:45 +00:00
arthur.iakab
5bf85a2548 Backed out 4 changesets (bug 1372381) for artifact build bustages
Backed out changeset 56c7ffeaa9fd (bug 1372381)
Backed out changeset 4e0f7fe818d0 (bug 1372381)
Backed out changeset 92a96d6b599b (bug 1372381)
Backed out changeset 620bdfafd42f (bug 1372381)

--HG--
extra : rebase_source : f3f465077a9a4198c88caf8977a02b384ccbef01
2018-05-01 01:39:08 +03:00
Chris Manchester
6c7cbb9b46 Bug 1372381 - Install TEST_HARNESS_FILES in the tup backend. r=mshal
MozReview-Commit-ID: 3PTtvoh8D9L

--HG--
extra : rebase_source : f303ae4e88e5639d65ff01bdf6b1649b2a89ed77
2018-04-30 11:10:44 -07:00
Chris Manchester
71b3013b7d Bug 1372381 - Compile host libraries, host programs, and simple programs in the Tup backend. r=mshal
MozReview-Commit-ID: 2AcpqiOqSSf

--HG--
extra : rebase_source : 2963c711931d3520cff3e4db1bb34b2a8c7dcaba
2018-04-30 11:10:44 -07:00
Chris Manchester
4710745e17 Bug 1372381 - Temporarily skip certain problematic binaries in the Tup backend. r=mshal
MozReview-Commit-ID: 7lopI8UQPSZ

--HG--
extra : rebase_source : 93d5428f76baa5f4fd00bcd9fe7a88e50b6a18db
2018-04-30 11:10:21 -07:00
Chris Manchester
d0a6e686c9 Bug 1372381 - Generate automation.py with GENERATED_FILES rather than Makefile.in r=mshal
This commit also removes "DEFAULT_APP", which is unused.

MozReview-Commit-ID: 5YYaC5LJqUn

--HG--
extra : rebase_source : 11a5264758ab3b2d8faef1e50a666981988457f2
2018-04-30 11:08:59 -07:00
Mike Shal
48a4717d97 Bug 1437593 - Update tup backend to support new python virtualenv; r=chmanchester
MozReview-Commit-ID: 59o9KMQDPbs

--HG--
extra : rebase_source : ac9f88bd6da61fbd224da07b6c297e6bd529a4b2
2018-04-27 17:28:21 -04:00
Dorel Luca
70e79e52cd Backed out 11 changesets (bug 1437593) for Doc linting failure. CLOSED TREE
Backed out changeset 0f3dbbd73ed4 (bug 1437593)
Backed out changeset 64c84cf90e8b (bug 1437593)
Backed out changeset 36c66615886f (bug 1437593)
Backed out changeset dfafbe7770ad (bug 1437593)
Backed out changeset 900f32450a74 (bug 1437593)
Backed out changeset d6fe456bb39c (bug 1437593)
Backed out changeset 4842e4b68d82 (bug 1437593)
Backed out changeset e024b3d775fd (bug 1437593)
Backed out changeset ce9e3951357a (bug 1437593)
Backed out changeset afaeac146ff8 (bug 1437593)
Backed out changeset 88954bcf6ca2 (bug 1437593)
2018-04-28 12:02:02 +03:00
Dave Hunt
ab659de0d1 Bug 1437593 - Move initial virtual environment to _virtualenvs/init; r=ted
MozReview-Commit-ID: LP8NVz3tZZg

--HG--
extra : rebase_source : 0ddf9cd58d7258c17ffbed01b435fb58142df7c5
2018-03-28 12:55:04 +01:00
Xidorn Quan
1c8dc43017 Bug 1457524 part 1 - Use a list for rust tests. r=froydnj
MozReview-Commit-ID: 6A0hHClXDUE

--HG--
extra : rebase_source : 827bb569642aa2ad834b94f08af3f60b68552de4
2018-05-02 11:51:25 +10:00
Dave Hunt
628826a671 Bug 1437593 - Allow pip requirements to be installed from vendored packages; r=gps
MozReview-Commit-ID: VarZNeeBYy

--HG--
extra : rebase_source : 72a45dd97df763d8efcb8eadf525b43f9365a8e7
extra : source : 4535a1c9225f035dd3e92268ece850c1ebf99ff0
2018-03-27 13:56:44 +01:00
Dave Hunt
4afca33e96 Bug 1437593 - Move initial virtual environment to _virtualenvs/init; r=ted
MozReview-Commit-ID: LP8NVz3tZZg

--HG--
extra : rebase_source : 990c0301a43a1870a69548a23aeddcf9fe3fe8a8
2018-03-28 12:55:04 +01:00
Dave Hunt
3903838e6a Bug 1437593 - Add support for using Pipfiles for managing virtual environment dependencies; r=ted
MozReview-Commit-ID: GWFJZfYWi5Y

--HG--
extra : rebase_source : 3b357bb6e39f8d008ebb982293c21fe3036dac8e
2018-03-27 12:59:40 +01:00
Dave Hunt
9f1dc3ec97 Bug 1437593 - Add support for using Pipfiles for managing virtual environment dependencies; r=ted
MozReview-Commit-ID: GWFJZfYWi5Y

--HG--
extra : rebase_source : 5b63da69ea4ce5b9149d07661088677ef996e98b
2018-03-27 12:59:40 +01:00
Dave Hunt
b81f7638ad Bug 1437593 - Allow pip requirements to be installed from vendored packages; r=gps
MozReview-Commit-ID: VarZNeeBYy

--HG--
extra : rebase_source : 3c0824f154ec288a241a23213b337962b1e2cd76
2018-03-27 13:56:44 +01:00
Justin Wood
bf1b8ed73f Bug 1453274 - Bump mozrelease in tree version, to distinguish it from the pypi mirror version. r=rail
taskgraph: Make update tasks support esr60

MozReview-Commit-ID: 7ZUJueBiUwN

--HG--
extra : source : 60fc628ce8ba14cd27fe11f1a575f9beaa96e84b
extra : intermediate-source : 3a617bd3456bf23438b25a8d0b13c9976858226e
2018-04-24 21:55:22 -04:00
Zibi Braniecki
7ab0501b68 Bug 1438375 - Refactor "extensionControlled" Preferences code to use Fluent. r=flod,Gijs
MozReview-Commit-ID: 9XJxyuMUCHV

--HG--
extra : rebase_source : 8915fee83b8f84310d8e641c4ea9c87c81435606
2018-04-17 15:31:50 -07:00
Gurzau Raul
677f146915 Backed out 11 changesets (bug 1437593) for SpiderMonkey failures on a CLOSED TREE
Backed out changeset e4b2357330b4 (bug 1437593)
Backed out changeset 8cb34c11ad45 (bug 1437593)
Backed out changeset ab27411c53c2 (bug 1437593)
Backed out changeset c90a0961f52a (bug 1437593)
Backed out changeset 60114a93b6b1 (bug 1437593)
Backed out changeset d12eec17c51c (bug 1437593)
Backed out changeset 2f83246cb0b1 (bug 1437593)
Backed out changeset 19b7273e375c (bug 1437593)
Backed out changeset cf026c071b73 (bug 1437593)
Backed out changeset c7fa833eff1d (bug 1437593)
Backed out changeset 828caab5032d (bug 1437593)
2018-04-27 02:20:39 +03:00
Dave Hunt
37e3c0c222 Bug 1437593 - Move initial virtual environment to _virtualenvs/init; r=ted
MozReview-Commit-ID: LP8NVz3tZZg

--HG--
extra : rebase_source : 7cc28c398da611f318bba5377d9ad1f18944e1e4
2018-03-28 12:55:04 +01:00
Dave Hunt
8d13e7718a Bug 1437593 - Add support for using Pipfiles for managing virtual environment dependencies; r=ted
MozReview-Commit-ID: GWFJZfYWi5Y

--HG--
extra : rebase_source : 5b63da69ea4ce5b9149d07661088677ef996e98b
2018-03-27 12:59:40 +01:00
Dave Hunt
9bff0f3d88 Bug 1437593 - Allow pip requirements to be installed from vendored packages; r=gps
MozReview-Commit-ID: VarZNeeBYy

--HG--
extra : rebase_source : 3c0824f154ec288a241a23213b337962b1e2cd76
2018-03-27 13:56:44 +01:00
Noemi Erli
2d255bc4f8 Backed out 2 changesets (bug 1446923) for bustages in /python/mozbuild/mozbuild/test/frontend/test_emitter.py on a CLOSED TREE
Backed out changeset b9a5aab21d71 (bug 1446923)
Backed out changeset bc5ab6e2db10 (bug 1446923)
2018-04-27 00:16:23 +03:00
vprabhu
21473d0c83 Bug 1446923 - Removed old references to chrome-metro r=jlund
MozReview-Commit-ID: 4GpsuQf0N12

--HG--
extra : rebase_source : 05c950b097e5ffcfccc6528100b1c5b87bc3fe68
2018-03-20 19:23:21 +05:30
Mike Shal
072ebf303e Bug 1425540 - Support --dry-run in the tup backend; r=chmanchester
Now that bug 1454771 has simplified the TupBackend class, it is much
easier to pass in the self.dry_run flag into BackendTupfile to avoid
writing out Tupfiles when --dry-run is used.

MozReview-Commit-ID: 4WDgXNyYuiQ

--HG--
extra : rebase_source : e0997a65f4aecd0927f77cfb13fd6c5063fd4c36
2018-04-25 21:18:39 -04:00
Andreea Pavel
524f263777 Backed out changeset fb836a045f20 (bug 1438375) for browser chrome failres at browser/components/preferences/in-content/tests/browser_extension_controlled.js 2018-04-26 10:45:11 +03:00
Andreea Pavel
a21531022b Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js => toolkit/components/extensions/test/xpcshell/test_ext_proxy_config.js
2018-04-26 09:04:59 +03:00
Chris Manchester
60c3c10391 Bug 1454771 - Add mozconfig variables to the environment when running tup. r=mshal
MozReview-Commit-ID: BneMu8DfKLY

--HG--
extra : rebase_source : b4b306885f79336295cc8ce458597f0414319f2a
2018-04-25 14:55:42 -07:00
Chris Manchester
efa96c69f0 Bug 1454771 - Move tup invocation from Makefile.in to mach. r=mshal
MozReview-Commit-ID: HkhK4oe93Vm

--HG--
extra : rebase_source : cbfc0b05deae9ca5b871952bfb771320f7d51d9e
2018-04-25 14:50:18 -07:00
Chris Manchester
64b21be6a1 Bug 1455504 - Normalize library paths to work around windows incremental linking bug. r=ted
MozReview-Commit-ID: DuZaGMKVZrn

--HG--
extra : rebase_source : 93e468ae60bd5731fc3ccc71c006465a6e294f8f
2018-04-24 16:39:36 -07:00
arthur.iakab
51e6939ace Backed out changeset 8645b620dad4 (bug 1455504) on request of aklotz. 2018-04-26 00:57:35 +03:00
Chris Manchester
76e65666bf Bug 1455504 - Normalize library paths to work around windows incremental linking bug. r=ted
MozReview-Commit-ID: DuZaGMKVZrn

--HG--
extra : rebase_source : 1bf407a2439714e126c7c40503f47bfa8559977a
2018-04-24 16:39:36 -07:00
Geoff Brown
b0abf7f6dd Bug 1445716 - Add new Android test task geckoview-junit, but do not run it yet; r=jmaher
Add geckoview-junit test task to taskcluster and mozharness configs.
https://developer.mozilla.org/en-US/docs/Mozilla/Geckoview-Junit_Tests
2018-04-25 09:10:26 -06:00
Zibi Braniecki
0c9f420314 Bug 1438375 - Refactor "extensionControlled" Preferences code to use Fluent. r=flod,Gijs
MozReview-Commit-ID: 9XJxyuMUCHV

--HG--
extra : rebase_source : 52cf0be82075f7bf12c3aec19df8fc46804ba12a
2018-04-17 15:31:50 -07:00
Myk Melez
07946d0eeb Bug 1323557 - preserve vendored crates when re-vendoring; r=ted.mielczarek
`mach vendor rust` currently removes third_party/rust before `cargo update`,
which prevents modifying vendored crates for local testing and try pushes.
It's also unnecessary.  So this patch removes the code that removes the dir.

MozReview-Commit-ID: IE0FZ3of8Py

--HG--
extra : rebase_source : 5236e2decd95f4c83b34430d5423b80e84acdf07
2018-04-20 11:53:10 -07:00
Brindusan Cristian
59f801793b Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Chris Manchester
ac074614a7 Backed out rust 1.25 in mach bootstrap (bug 1450077)
MozReview-Commit-ID: 6TXbyDvWGEP
2018-04-24 12:07:50 -07:00
Joel Maher
b6b767f893 Bug 1425929 - test-verify jobs should pick a virtualization appropriate to the test. r=gbrown 2018-04-24 10:20:19 -04:00
Justin Wood
d289c494d6 Bug 1455100 - Make devedition its own language pack addon id, by using MOZ_LANGPACK_EID again. r=nalexander,Pike
MozReview-Commit-ID: z1SJmCQflq

--HG--
extra : rebase_source : 4d5b6941f907e0e062a7f4466a246696290823fe
2018-04-19 14:48:11 -04:00
Justin Wood
335012b188 Bug 1453274 - Support esr version strings. r=rail
MozReview-Commit-ID: K7khNCzOwQK

--HG--
extra : rebase_source : 33225a5ecb879705327af505920d4db040a91d7b
2018-04-23 14:14:04 -04:00
Justin Wood
9e151c936d Bug 1453274 - Add testing for python/mozrelease/versions.py r=rail
for: taskgraph: Make update tasks support esr60

MozReview-Commit-ID: GUmAq3sBXGB

--HG--
extra : rebase_source : 0eaeb17809fede07f6b9fc4ee5d856d0078f83be
2018-04-23 12:40:26 -04:00
Sylvestre Ledru
aefcd1c84b Bug 1448934 - Fix some spelling mistakes in locales/en-US r=flod
MozReview-Commit-ID: vGVudVgB31

--HG--
extra : rebase_source : cdc39375a3485a3133878c4dbbffe60c0b26e917
2018-04-24 10:26:35 +02:00
Dorel Luca
3409e8f9fb Merge mozilla-central to autoland
--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
rename : testing/mozharness/mozharness/mozilla/testing/verify_tools.py => testing/mozharness/mozharness/mozilla/testing/per_test_base.py
extra : rebase_source : 6f474049dab2c2979e13ea87114b82d2b04715d0
2018-04-21 02:03:27 +03:00
Dorel Luca
65669dae30 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-21 02:00:04 +03:00
Gregory Szorc
b78a4e45de Bug 1446019 - Improve error message for LOCAL_INCLUDES pointing to topobjdir; r=froydnj
The old message is ambiguous as to why it failed. The new one tells
you why and hopefully gives you enough info to fix it.

MozReview-Commit-ID: 9cBpYLpCFmt

--HG--
extra : rebase_source : cf0899e8c5f5330d31c645cba27d1bd3fb19e814
2018-03-15 09:43:35 -07:00
Johann Hofmann
a2ae3f4c19 Bug 1442542 - Make checkboxes in the clear site data dialog use a label attribute. r=dao,flod
MozReview-Commit-ID: 9yj90NirV9y

--HG--
extra : rebase_source : 56e63dd90852ff9ee95c828a51d04e2fa88820c0
2018-04-17 16:30:27 +02:00
Andrew Halberstadt
853598e23e Bug 1410424 - [mozbuild] Add a 'quiet' argument to VirtualenvManager.install_pip_requirements r=mshal
Some requirements.txt are very large and result in a lot of package already
installed messages. Would be nice to hide this.

MozReview-Commit-ID: FQecuePM0zZ

--HG--
extra : rebase_source : 58eaa7324775cfaa39077871be0be0ef39ad7c11
2018-04-06 10:23:49 -04:00
Gregory Szorc
15ac1ad656 Bug 1451065 - Attempt to install Python 3 on Debian distros; r=mshal
Not all distros will have a "python3" package. But the modern ones
should.

Because many people install Python via other means, we only install
the system packages if a Python 3 executable can't be found.

MozReview-Commit-ID: 2ni7Ha92cRD

--HG--
extra : rebase_source : 681085855f785b4857ac1b569c2b0dc4ffb68cad
2018-04-03 10:57:07 -07:00
Gregory Szorc
8b3a5e4dd1 Bug 1451065 - Install Python 3 on Arch; r=mshal
MozReview-Commit-ID: Gg7gn72Xev9

--HG--
extra : rebase_source : c61fca33e29721b6a6f7c1281186f6935da193b7
2018-04-03 10:46:47 -07:00
Mike Hommey
fd130aa298 Bug 1455065 - Shell quote environment variable values when dumping them in dump_env.py. r=mshal
The mozconfig output parsing code already handles shell quoted strings
to some extent (except for bug 818377), because that's what `set`
outputs. By quoting environment variable values, we avoid a bunch of
problems with "weird" values.

--HG--
extra : rebase_source : 7a45b99c3fee807da395fc42352296b000b7535f
2018-04-19 07:26:28 +09:00
Chris Manchester
df340972e4 Bug 1449965 - Output directories during the build as we compile object files. r=ted
MozReview-Commit-ID: K4RrObGHXIC

--HG--
extra : rebase_source : 09e66caa36cd6bac1d5ac4bbf300ab4ee93fce27
2018-04-19 00:16:57 -07:00
Mike Shal
b3030acebe Bug 1454825 - Tup backend: Handle dependent GENERATED_FILES better; r=chmanchester
Work around the fact that tup is bad at handling out-of-order rules by
delaying them based on what outputs we've already seen in rule().

MozReview-Commit-ID: G2tyeQr7MTh

--HG--
extra : rebase_source : d854b8b1633243177e03698c12271b11e06b0963
2018-04-17 19:52:39 -04:00
Zibi Braniecki
d177238158 Bug 1453540 - Migrate the remaining DTD entries to FTL. r=flod,Gijs
MozReview-Commit-ID: Aw0a14zPRWk

--HG--
extra : rebase_source : 44548d957d0ee5b50887648188ff206514011f41
2018-04-17 13:17:22 -07:00
Mike Shal
eb518d8912 Bug 1454826 - Tup backend: Use PYTHONDONTWRITEBYTECODE=1 instead of -B; r=froydnj
MozReview-Commit-ID: GJiqcfe2819

--HG--
extra : rebase_source : ac28c8bbc4c86f2a7242b51295c74eeedd71bd00
2018-04-17 19:51:56 -04:00
Mike Shal
d744090885 Bug 1454811 - Update Tup backend due to chages in bug 1444745; r=chmanchester
The xpidl-process.py invocation now takes a --bindings-conf parameter,
and the final generated .cpp file uses a new python script and was
moved from xpcom/typelib/xpt/XPTInfo.cpp to
xptcom/reflect/xptinfo/xptdata.cpp

MozReview-Commit-ID: C3vK3VzgG6Q

--HG--
extra : rebase_source : d4a6b87a9fdde76d60aaf3876e8200e551ec958b
2018-04-18 08:52:41 -04:00
Chris Manchester
3722bcaf82 Bug 1453426 - Kill invoked process on keyboard interrupt in mach build. r=mshal
MozReview-Commit-ID: IdnVrK6Gqtk

--HG--
extra : rebase_source : 2599a6c236b2c624d74f399ff3b5af3e7a574dc8
2018-04-17 15:30:27 -07:00
Nika Layzell
be8b24333a Bug 1444991 - Part 1: Read webidl's Bindings.conf, and pass it into xpidl, r=mccr8
This information is read in order to handle correctly selecting the native
type and header files for WebIDL types.
2018-04-17 19:20:58 -04:00
Nika Layzell
95b7d44e5d Bug 1444745 - Part 3: Replace the XPT file format with a JSON based one, r=mccr8
This patch adds a python script based on the old typelib.py script which takes
in a parsed XPIDL file, and generates a json-based XPT file to use as a build
intermediate. I did my best to keep the generated format simple.
2018-04-17 19:20:53 -04:00
Zibi Braniecki
d0d244a954 Bug 1453800 - Move the container removal dialog strings to preferences.ftl. r=flod
MozReview-Commit-ID: JAAfviRvbJb

--HG--
extra : rebase_source : b47ca189151543abebec60b2550a2e18277deb9b
2018-04-12 14:17:28 -07:00
Zibi Braniecki
2dc52ab911 Bug 1453480 - Migrate Fluent resources to use DOM Overlays v2. r=flod
MozReview-Commit-ID: IsaYQFyPAxd

--HG--
extra : source : 46a634d6853c680bbee9d2be12bab971058ba281
2018-04-11 16:09:31 -07:00
Coroiu Cristina
7e1be34a07 Backed out 4 changesets (bug 1453480) for failing browser-chrome at browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_site_data.js on a CLOSED TREE
Backed out changeset 623b37fe0fe8 (bug 1453480)
Backed out changeset a3c36fa7ac0c (bug 1453480)
Backed out changeset 46a634d6853c (bug 1453480)
Backed out changeset 658fedb903d0 (bug 1453480)
2018-04-13 19:49:14 +03:00
Zibi Braniecki
fbc7e77db2 Bug 1453480 - Migrate Fluent resources to use DOM Overlays v2. r=flod
MozReview-Commit-ID: IsaYQFyPAxd

--HG--
extra : rebase_source : 1ceb33dde40fa15a2405b39addf835c70177cfc6
2018-04-11 16:09:31 -07:00
Coroiu Cristina
5061cec60a Backed out 3 changesets (bug 1453480, bug 1453878) for c2 failures at intl/l10n/test/dom/test_domloc_overlay.htm and browser-chrome failures at browser/components/preferences/in-content/tests/browser_fluent.js on a CLOSED TREE
Backed out changeset 8dd86546cc66 (bug 1453878)
Backed out changeset 6b5e7c13eb8c (bug 1453480)
Backed out changeset 385de3e4dca0 (bug 1453480)
2018-04-13 08:51:13 +03:00
Zibi Braniecki
fc0ea828d6 Bug 1453480 - Migrate Fluent resources to use DOM Overlays v2. r=flod
MozReview-Commit-ID: IsaYQFyPAxd

--HG--
extra : rebase_source : 41600ee7277cbe0559cf8c96b18a0f286d06e7f8
2018-04-11 16:09:31 -07:00
Zibi Braniecki
d06d126e5d Bug 1451992 - Migrate Preferences::Subdialogs::Translation to Fluent. r=gijs,stas
MozReview-Commit-ID: JfBdle6i5wL

--HG--
extra : amend_source : 79e96b14339550e5dd6cbe72f98efa7be28326c0
2018-04-05 22:55:44 +02:00
Zibi Braniecki
6b595c6539 Bug 1451992 - Migrate Preferences::Subdialogs::SiteData to Fluent. r=jaws,flod
MozReview-Commit-ID: KzEP0iCfzGf

--HG--
extra : amend_source : 15bca3b8ca44950e1284427726e037a22fbfc7e5
2018-04-05 22:37:59 +02:00
Zibi Braniecki
2021285e2a Bug 1451992 - Migrate Preferences::Subdialogs::SelectBookmark to Fluent. r=gijs,flod
MozReview-Commit-ID: BR74Gq4ULUD

--HG--
extra : amend_source : 29b46dd465a0d4ecb1a2f8ae367df1b267fe9a4e
2018-04-05 22:16:34 +02:00
Zibi Braniecki
e6a8910e64 Bug 1451992 - Migrate Preferences::Subdialogs::Permissions to Fluent. r=gijs,gandalf
MozReview-Commit-ID: 12JINAX1Ttd
2018-04-05 22:09:13 +02:00
Zibi Braniecki
5f8d6040ce Bug 1451992 - Migrate Preferences::Subdialogs::Languages to Fluent. r=gijs,flod
MozReview-Commit-ID: 96C1P3ZbJeH

--HG--
extra : amend_source : fbc969a6a5862f461bb4612c02030a0d50d8dab9
2018-04-05 21:43:11 +02:00
Zibi Braniecki
1f13efaede Bug 1451992 - Migrate Preferences::Subdialogs::Fonts to Fluent. r=jaws,stas
MozReview-Commit-ID: LwNCJJIVobl

--HG--
extra : amend_source : 146982d0b918463c3bd6eea7f9a18a8f2e9be3e2
2018-04-05 21:28:32 +02:00
Zibi Braniecki
ec51e6c910 Bug 1451992 - Migrate Preferences::Subdialogs::Connection to Fluent. r=gijs,gandalf
MozReview-Commit-ID: 6N4dE8V37l
2018-04-05 14:14:51 +02:00
Zibi Braniecki
bf66c39e72 Bug 1451992 - Migrate Preferences::Subdialogs::Colors to Fluent. r=gijs,gandalf
MozReview-Commit-ID: KlA7gS9D2W5
2018-04-05 03:17:01 +02:00
Zibi Braniecki
276dbeb028 Bug 1451992 - Migrate Preferences::Subdialogs::ClearSiteData to Fluent. r=jaws,flod
MozReview-Commit-ID: 4geJkI3OACq

--HG--
extra : amend_source : 9b31ed04f736fc03517245af0ad60c7c2f845787
2018-04-05 02:39:59 +02:00
Zibi Braniecki
529d7466ef Bug 1451992 - Migrate Preferences::Subdialogs::Blocklists to Fluent. r=gijs,flod
MozReview-Commit-ID: IXacqfUnZ2q

--HG--
extra : amend_source : dfa7ab6d368a5b5564c48a2013ad40d7869fc607
2018-04-03 04:29:25 +02:00
Zibi Braniecki
b423327766 Bug 1451992 - Migrate Preferences::Subdialogs::ApplicationManager to Fluent. r=jaws,flod
MozReview-Commit-ID: JZmQtwimYsO

--HG--
extra : amend_source : 07b544b7009b7e0237a51872c42531a6a891e775
2018-03-27 01:52:09 +02:00
arthur.iakab
bbca7c7700 Merge mozilla-central to inbound 2018-04-11 01:17:20 +03:00
Nika Layzell
4d3a49a4fb Bug 1445668 - Don't hide includes when -showIncludes is explicitly passed to cl.exe, r=gps 2018-04-10 17:49:51 -04:00
Dave Hunt
4d1d1447df Bug 1447057 - Document policies for using third-party Python packages; r=gps
MozReview-Commit-ID: 8eJt84pEKlv

--HG--
extra : rebase_source : 88ff3693be50954f28bb9e5a46f412e8dd2432ff
2018-03-19 17:53:33 +00:00
Chris Manchester
b53e658206 Bug 1451521 - Generate built_in_addons.json in the Tup backend. r=mshal
MozReview-Commit-ID: LdYtRMopfJM

--HG--
extra : rebase_source : 24db64ad56a928ea28408c92434c8966dfc9a3dd
2018-04-06 14:38:05 -07:00
Chris Manchester
beec30d4f3 Bug 1451529 - Install shared libs in the Tup backend. r=mshal
MozReview-Commit-ID: Jn9Uk5XmFxJ

--HG--
extra : rebase_source : 3a23b7e8530c6215614dccfb12e0b2cc799d63f4
2018-04-04 15:28:39 -07:00
Andrew Halberstadt
84797ec831 Bug 1373368 - [mozlint] Lint whole tree if using --workdir/--outgoing and support-file was modified, r=standard8
Previously, using --workdir or --outgoing could miss errors when modifying a
support file since those could affect unmodified files.

This patch allows linters to define support-files in their .yml configuration.
If using --outgoing or --workdir and a file matching one of those patterns was
modified, we'll lint the entire tree.

MozReview-Commit-ID: CuGLYwQwiWr

--HG--
extra : rebase_source : 00d4107c41404f5e6ab05e0106d5cd377e25652f
2018-02-16 17:46:04 -05:00
Andrew Halberstadt
e04895a098 Bug 1373368 - [mozlint] Raise if a non-existant path is specified in a lint config, r=standard8
Since I left the next two patches to bitrot, I realized that a path I had added
didn't exist anymore. We should definitely error out if non-existant paths are
specified, otherwise the lists will become outdated and it will be possible to
accidentally disable linting on some files.

I discovered a few instances of this already in our existing definitions.

MozReview-Commit-ID: 8jsTKLI0nFE

--HG--
extra : rebase_source : acceb0b129fc472fb456ff527e4c8c52228edd59
2018-03-29 14:50:17 -04:00
David Teller
abfa5517f9 Bug 1437004 - Introducing BinSource parser generator;r=froydnj,jorendorff
This crate contains a parser generator as a Rust crate. The parser generator is used to generate
BinSource-auto.h, BinSource-auto.cpp, BinToken.h. As of this changeset, to limit yak shaving,
the parser generator is not part of the build system. Making it part of the build system
is delegated to bug 1439645.

MozReview-Commit-ID: 1lODDSIsz8W

--HG--
extra : rebase_source : 2b09675167c12e33f5951ea00dc6df54dad11832
2018-04-05 15:21:17 +02:00
Andrew Halberstadt
960a002f77 Bug 1451501 - Fix error trying to run python-tests via |mach test|, r=gps,whimboo
MozReview-Commit-ID: LNedxcqQ1NC

--HG--
extra : rebase_source : cc005ab40e55955d74bbe2432e19ad5b6fef0038
2018-04-04 17:30:22 -04:00
Zibi Braniecki
c87312a040 Bug 1445694 - Migrate the "Sync" section of Preferences to the new Localization API. r=flod,markh,stas
MozReview-Commit-ID: EeLV9dJ5cc5

--HG--
extra : rebase_source : 47aeef38b554d4bb42a678bf196d8873baae34c2
2018-03-14 12:21:14 -07:00
Mike Shal
e44a8cb1da Bug 1450877 - Update tup backend to support new XPIDL model; r=chmanchester
We no longer build .xpts in dist/bin/components and list them in an
interfaces file. Instead, they are build as intermediate files, and a
new XPTInfo.cpp is generated from *.xpt.

MozReview-Commit-ID: J05oYFK3adc

--HG--
extra : rebase_source : ad2bebfcb7877430b78441af1f41aac30c1607a9
2018-04-03 11:30:11 -04:00
Chris AtLee
f6faa1ea52 Bug 1442330: Remove android old-id builds r=jlorenzo
MozReview-Commit-ID: 9o3iXM5oHQM

--HG--
extra : rebase_source : c851970eb629285ee741dec0c177e4a0d9c674e0
2018-03-29 17:19:33 -04:00
Andrew McCreight
e80864c94c Bug 1438688, part 3 - Remove XPT files from the packaging process. r=glandium
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.

This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.

This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.

MozReview-Commit-ID: 7gWj8KWUun3

--HG--
extra : rebase_source : 65bac47c2cd1a20b3c675a01b44a25a1d2d3ab7a
2018-03-05 14:27:29 -08:00
Jeff Gilbert
afd77f7fd5 Bug 1444274 - Require GCC 6.1+. - r=glandium
MozReview-Commit-ID: 7alNSIhhbLI
2018-04-02 17:05:43 -07:00
Chris Manchester
d27e8e527c Bug 1450077 - Download rust 1.25 in mach bootstrap. r=mshal
MozReview-Commit-ID: IrU4Pzn9Iz

--HG--
extra : rebase_source : ddd68550303569a70d983e3c4922213733148fd4
2018-03-30 10:16:09 -07:00
Francesco Lodolo (:flod)
fd5218c9fa Bug 1450693 - Fix migration for containers-window-update in containers.ftl r=gandalf
MozReview-Commit-ID: L40niDNlG7D

--HG--
extra : rebase_source : 4e6d8c54eef5f341bf01c24ce3717a36f6708147
2018-04-02 18:31:51 +02:00
Zibi Braniecki
0b78e57817 Bug 1446180 - Migrate the "Privacy" section of Preferences to the new Localization API. r=flod,jaws
MozReview-Commit-ID: 2Hp6ZNry6dK

--HG--
extra : rebase_source : 6955908cc444fa47e9efad7c97cefb6fcff17b25
2018-03-15 14:57:55 -07:00
Jeff Gilbert
d4045513ea Bug 1428214 - Prune unnecessary packages from mozboot bootstrappers. - r=gps
MozReview-Commit-ID: GwNfUFFwkBQ

--HG--
extra : rebase_source : d6a464d6591de3a171984882b2729b18a33092a4
2018-01-04 15:51:45 -08:00
Justin Wood
4540d3a335 Bug 1441359 - Make langpack version include buildid. r=mshal
For Automated submission to AMO we need unique language pack versions for every submitted build.

This will produce versions that are not valid for AMO on nightly (61.0a1buildid2018...) but that's ok, we're not ready to
submit these automatically on the nightly channel yet, they do still install fine into Firefox manually.

On beta/release/esr the version will however be ok for AMO "60.0buildid2018..." and will be reasonably unique per push.

This patch has the intent that, outside of automation, users who don't set a buildid get a langpack version without that
specified (rather than a buildid being automatically generated for them).

The releng scriptworker (addonscript) that will do the publishing to AMO will additionally sanity check that the string
'buildid' is present in the version part, so we don't accidentally break this functionality in production.

This patch is also intended to be uplifted to Gecko 60 to support ESR60 needs.

MozReview-Commit-ID: KuvwMyD6bwd

--HG--
extra : rebase_source : 04ecd87a15d5640f510b1f6123ba9467ccc4592a
2018-03-29 14:10:47 -04:00
Mike Shal
379ad678f3 Bug 1449623 - Export MOZ_BUILD_DATE for buildid.h; r=chmanchester
MozReview-Commit-ID: HnlTcIKQwJC

--HG--
extra : rebase_source : 912a6dd3d2cf5e4761c4ae602e2d952a4e79c36f
2018-03-28 14:30:02 -04:00
Mike Shal
40c491ba27 Bug 1449623 - Rework exports in the tup backend; r=chmanchester
In some cases we need to export other environment variables, so make it
easier to track them.

MozReview-Commit-ID: 82OOlRTdhH0

--HG--
extra : rebase_source : 1256098d1bdae9ab13bfe5a149ee33d509ead3f4
2018-03-27 17:26:56 -04:00
Chris Manchester
dce6a4a7b6 Bug 1382982 - Accept artifacts from autoland when performing an artifact build in automation. r=nalexander
MozReview-Commit-ID: cVd8GqSuAn

--HG--
extra : rebase_source : d9530d1a25a9956c422021226a062f232b240b80
2018-03-28 11:22:34 -07:00
Geoff Lankow
29234a8525 Bug 1444219 - Remove unnecessary call to MozbuildObject.from_environment r=froydnj
MozReview-Commit-ID: 4KP2H9HVQbG

--HG--
extra : rebase_source : b2a7a8b8c382ad00487081c3ec99b7dc095283ba
2018-03-11 21:55:45 +13:00
Chris Manchester
d4fc213fdc Bug 1419892 - Link programs and libraries in the tup backend. r=mshal
MozReview-Commit-ID: 26Yb0QdCn5H

--HG--
extra : rebase_source : 830253545964b14780fe5330fd33f1bd050a89ee
2018-03-26 15:29:51 -07:00
Andi-Bogdan Postelnicu
62c9697c80 Bug 1447817 - correlate mach static-analysis documentation with configuration file. r=sylvestre
MozReview-Commit-ID: FB296IBeKOk

--HG--
extra : rebase_source : 625ddccd273739c87fd47fac068f8c56f188b4d0
2018-03-24 13:01:04 +02:00
Chris Manchester
fcf16fe1e7 Bug 1445398 - Do not re-generate buildid.h for every Tup build. r=mshal
MozReview-Commit-ID: ErkTDOU8lYH

--HG--
extra : rebase_source : 085b0cb43b625fbb2691aa6bc788b62549927a02
2018-03-22 16:03:12 -07:00
Noemi Erli
b32b2756aa Merge inbound to mozilla-central. a=merge 2018-03-23 00:53:07 +02:00
Francesco Lodolo (:flod)
688142f207 Bug 1448068 - Update Fluent migrations in mozilla-central to run against gecko-strings r=Pike
Also remove temporary string from preferences.ftl (search-input). This was added
to avoid removing the string when running migrations against mozilla-central

MozReview-Commit-ID: IDgTNoANPyV

--HG--
extra : rebase_source : a2fe06f2214dfb6189351cd9a0eef4e41869b639
2018-03-22 19:00:40 +01:00
David Major
a96f691565 Bug 1447728 Part 1: Add CC_TYPE to mozinfo. r=ted 2018-03-22 11:40:00 -04:00
David Major
9b78fd3f22 Bug 1447750 - Point MACH_ERROR's URL at the new Bugzilla component r=nalexander 2018-03-21 11:09:00 +02:00
arthur.iakab
11989aa12a Merge mozilla-central to autoland 2018-03-22 02:00:17 +02:00
arthur.iakab
24af737f4c Merge inbound to mozilla-central. a=merge 2018-03-22 01:46:39 +02:00
arthur.iakab
5e8092339a Merge mozilla-central to inbound
--HG--
rename : browser/base/content/test/general/bug364677-data.xml => browser/components/feeds/test/bug364677-data.xml
rename : browser/base/content/test/general/bug364677-data.xml^headers^ => browser/components/feeds/test/bug364677-data.xml^headers^
rename : browser/base/content/test/general/test_bug364677.html => browser/components/feeds/test/test_bug364677.html
rename : services/sync/tps/extensions/tps/bootstrap.js => services/sync/tps/extensions/tps/components/tps-cmdline.js
rename : testing/talos/talos/pageloader/bootstrap.js => testing/talos/talos/pageloader/components/tp-cmdline.js
rename : testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js => testing/talos/talos/startup_test/sessionrestore/addon/SessionRestoreTalosTest.js
rename : testing/talos/talos/talos-powers/bootstrap.js => testing/talos/talos/talos-powers/components/TalosPowersService.js
rename : tools/quitter/bootstrap.js => tools/quitter/QuitterObserver.js
extra : rebase_source : 5801e95a945b54754f27571e7b211e1eac132d67
2018-03-21 22:27:21 +02:00
Zibi Braniecki
735a746866 Bug 1419547 - Migrate the "Containers" section of Preferences to the new Localization API. r=flod,Gijs
MozReview-Commit-ID: IA3GFardEHs

--HG--
extra : rebase_source : e052f13c44e58d9b1cb90c7bcc5e9bd795bfd43d
extra : intermediate-source : 48060f354ac1b9be5a1b6a24668c35c33d8faa86
extra : source : 606cc17a4e1110223f4e81ee2a84e8e4b7cfc1fe
2018-03-12 18:08:24 -07:00
Mike Shal
c6aa9fc9af Bug 1447329 - fix preprocessor jar.mn entries in the tup backend; r=chmanchester
The source filename should only be used as the destination filename if
we don't have a target_basename entry for the file. For most cases
there is no difference, but in browser/components/places/jar.mn, the
same source file (bookmarkProperties.xul) is used to two different
destination files (bookmarkProperties.xul and bookmarkProperties2.xul).

MozReview-Commit-ID: LCwncq4wxtU

--HG--
extra : rebase_source : 0a86da0879d4e516013c664fbc0eb422d4be9efa
2018-03-19 20:20:24 -04:00
Nick Alexander
93c505b07a Bug 1443208 - Pre: Add force flag to GENERATED_FILES. r=ted.mielczarek
The forces on the system are such that I really need to be able to
FORCE a few RecursiveMake targets in order to make Android and Gradle
use GENERATED_FILES and LOCALIZED_GENERATED_FILES.  Over time, I hope
to avoid FORCE, but that time is not now.

MozReview-Commit-ID: 453FpnihSRK

--HG--
rename : python/mozbuild/mozbuild/test/backend/data/generated-files/foo-data => python/mozbuild/mozbuild/test/backend/data/generated-files-force/foo-data
rename : python/mozbuild/mozbuild/test/backend/data/generated-files/generate-bar.py => python/mozbuild/mozbuild/test/backend/data/generated-files-force/generate-bar.py
rename : python/mozbuild/mozbuild/test/backend/data/generated-files/generate-foo.py => python/mozbuild/mozbuild/test/backend/data/generated-files-force/generate-foo.py
rename : python/mozbuild/mozbuild/test/backend/data/generated-files/moz.build => python/mozbuild/mozbuild/test/backend/data/generated-files-force/moz.build
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/en-US/localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/en-US/localized-input
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/foo-data => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/foo-data
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/generate-foo.py => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/generate-foo.py
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/moz.build => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/moz.build
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/non-localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/non-localized-input
rename : python/mozbuild/mozbuild/test/frontend/data/generated-files/moz.build => python/mozbuild/mozbuild/test/frontend/data/generated-files-force/moz.build
rename : python/mozbuild/mozbuild/test/frontend/data/localized-generated-files/moz.build => python/mozbuild/mozbuild/test/frontend/data/localized-generated-files-force/moz.build
extra : rebase_source : 6820ac4b377ac596cafbdf065112738376cc473e
2018-03-08 16:04:06 -08:00
Emilio Cobos Álvarez
24cf27d33c Bug 1447611: Remove --enable-stylo and --enable-stylo-build-bindgen. r=froydnj
Will remove the prefs and stuff in a followup.

MozReview-Commit-ID: HVyfbHOEQYI
2018-03-21 19:13:26 +01:00
Csoregi Natalia
d6c6d38406 Backed out 4 changesets (bug 1447611) for mass failures due to --enable-stylo removal. CLOSED TREE
Backed out changeset c6193142bbcf (bug 1447611)
Backed out changeset 01ada1c5a95f (bug 1447611)
Backed out changeset 86c9fed44da2 (bug 1447611)
Backed out changeset bb84ac6e1468 (bug 1447611)
2018-03-21 19:01:07 +02:00
Emilio Cobos Álvarez
330ddd82bf Bug 1447611: Remove --enable-stylo and --enable-stylo-build-bindgen. r=froydnj
Will remove the prefs and stuff in a followup.

MozReview-Commit-ID: HVyfbHOEQYI
2018-03-21 17:24:41 +01:00
Tarek Ziadé
0081c14e07 Bug 1401879 - sort mach-commands output - r=gps
MozReview-Commit-ID: KgocEmTy4wR

--HG--
extra : rebase_source : 211c03cd533abd1325f6e671523fdd7b5ee8b824
2018-03-21 20:27:42 +01:00
Emilio Cobos Álvarez
48957d62c0 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Ted Mielczarek
e2218ff804 bug 1255485 - add some tests for building programs in dist/bin. r=nalexander
MozReview-Commit-ID: 94uOsInnWmT
2018-01-17 11:19:19 -05:00
Marco Zehe
2d82c3eb62 Bug 1447632 - Make sure that TLB files are included in Windows artifact builds, r=ted.mielczarek
MozReview-Commit-ID: 6hdEqaJvuZl

--HG--
extra : rebase_source : 80fd3d6fdb1dc3db5be8a0133bc64f5526592f2d
2018-03-21 14:17:50 -04:00
Chris Manchester
0a830e8691 Bug 1429875 - Implement OBJ_SUFFIX overriding for the profile generation phase on linux in mozbuild. r=glandium
MozReview-Commit-ID: 8PtgxfbxuE

--HG--
extra : rebase_source : fd8934ee2c70883e30a7b51d4b64944d3ce7e6ee
2018-03-20 16:44:12 -07:00
Chris Manchester
de12a7992b Bug 1429875 - Remove expandlibs and instead generate list files in the mozbuild backend. r=glandium
MozReview-Commit-ID: 5eLwnh1HHGj

--HG--
extra : rebase_source : cd308adc4542be0f9b33b64d31a2d0dc0310fcd4
2018-03-20 16:31:05 -07:00
Chris Manchester
47f253d6f9 Bug 1429875 - Add a unit test for linkage variables in the make backend. r=glandium
MozReview-Commit-ID: HREobMhWTwg

--HG--
extra : rebase_source : a4d96b8a0b02790633ff65b320585334493e84ae
2018-03-20 16:31:05 -07:00
Chris Manchester
3f63e1bbdb Bug 1429875 - Add a "name" property to Library and Program objects that corresponds to the output basename. r=glandium
MozReview-Commit-ID: J4gt1fGUzOa

--HG--
extra : rebase_source : 94491f7e9d6f2afb44fcae9627f206292481405c
2018-03-20 16:31:05 -07:00
Ted Mielczarek
dcdf597820 bug 1255485 - build PROGRAMs directly in dist/bin instead of copying them. r=nalexander
Historically we built all our binaries in directories in the objdir, then
symlinked them into dist/bin. Some binaries needed to be copied instead
so that certain relative path lookups work properly, so we resorted to
sprinkling `NSDISTMODE=copy` around Makefiles.

This change makes it so we build PROGRAMs (not any other sort of targets)
directly in dist/bin instead. We could do the same for our other targets
with a little more work.

There were several places in the tree that were copying built binaries to
some other place and needed fixup to match the new location of binaries.

On Windows pdb files are left in the objdir where the program was
originally linked. symbolstore.py needs to locate the pdb file both to
determine whether it should dump symbols for a binary and also to copy
the pdb file into the symbol package. We fix this by simply looking for
the pdb file in the current working directory if it isn't present next
to the binary, which matches how we invoke symbolstore.py.

MozReview-Commit-ID: 8TOD1uTXD5e
2018-01-10 14:26:12 -05:00
Andrew Halberstadt
35ace05949 Bug 1369711 - [mozlint] Make sure KeyboardInterrupts are handled well wherever they happen r=gps
There a few pieces needed here to properly handle KeyboardInterrupts.

1. All in-progress work needs to abort. Ideally the underlying linters will be
able to catch KeyboardInterrupt, and return partial results (like the flake8
linter does). Linters may alternatively allow the KeyboardInterrupt to
propagate up. Mozlint will catch and handle this appropriately, though any
results found will be lost. The only change to this behaviour was fixing a bug
in the flake8 linter.

2. Any unstarted jobs need to be canceled. In concurrent.futures, there are two
different queues. First, jobs are placed on the work queue, which is just a list
maintained by the parent process. As workers become available, jobs are moved
off the work queue, and onto the call queue (which is a multiprocessing.Queue).
Jobs that live on the work queue can be canceled with 'future.cancel()', whereas
jobs that live on the call queue cannot. The number of extra jobs that are stored
on the call queue is determined by this variable:
https://hg.mozilla.org/mozilla-central/file/deb7714a7bcd/third_party/python/futures/concurrent/futures/process.py#l86

In this patch, the parent process' sigint handler (which will be called on Ctrl-C)
is responsible for canceling all the jobs on the work queue. For the jobs on the
call queue, the best we can do is set a global variable that tells workers to
abort early.

3. Idle workers should exit gracefully. When there are no more jobs left, workers
will block on the call queue (either waiting for more jobs, or waiting for the
executor to send the shutdown signal). If a KeyboardInterrupt is received while a
worker is blocking, it isn't possible to intercept that anywhere (due to quirks
of how concurrent.futures is implemented). The InterruptableQueue class was
created to solve this problem. It will return None instead of propagating
KeyboardInterrupt. A None value will wake the worker up and tell it to gracefully
shutdown. This way, we avoid cryptic tracebacks in the output.

With all of these various pieces solved, pressing Ctrl-C appears to always exit
gracefully, sometimes even printing partial results.

MozReview-Commit-ID: 36Pe3bbUKmk

--HG--
extra : rebase_source : d4c312ee5cc3679eeee1407c5521aed679f84ad4
extra : source : a93a00141bf62f6bc9e30934c0e56f6b2e434bf0
2018-02-23 08:55:06 -05:00
Andrew Halberstadt
028cd9d73f Bug 1369711 - [mozlint] Refactor concurrent.futures ProcessPoolExecutor code for readability r=gps
This commit doesn't change any behaviour, just attempts to make this a little
more readable.  The workers will call '_collect_results' for each WorkItem they
process (either because it is finished or because it was canceled).

This also differentiates between setup failures and run failures.

MozReview-Commit-ID: 36Pe3bbUKmk

--HG--
extra : rebase_source : 873167512b745ccdc52de7e7f1ecf66b094e063d
2018-02-23 09:02:16 -05:00
Gregory Szorc
1ab2bad8aa Bug 1446471 - Remove unused import; r=nalexander
MozReview-Commit-ID: JviugCf0TTE

--HG--
extra : rebase_source : 080b0d71a16ad230bc239b371d2b6f7b181ff45c
2018-03-06 19:15:42 -08:00
Gregory Szorc
e6191d0614 Bug 1446471 - Remove unused --stop argument from mach python-test; r=nalexander
This argument does nothing. While that's arguably a bug, I have
no desire to fix it. So remove dead code.

MozReview-Commit-ID: 9tToF66I7HE

--HG--
extra : rebase_source : 2ea86681a102d3a82fc547f52e473f4a46a60467
2018-03-06 19:04:04 -08:00
Gregory Szorc
6e392d444d Bug 1446471 - Remove unused find_tests_by_path function; r=nalexander
I was too lazy to find the commit that orphaned this. But it is most
definitely not referenced in the code base.

MozReview-Commit-ID: 8gYBJQxIWIR

--HG--
extra : rebase_source : eda4f601ba71380b41a1cc6182d21996d15ea4e6
2018-03-06 19:02:01 -08:00
Zibi Braniecki
4629cdb598 Bug 1445084 - Migrate search results pane of Preferences to Fluent. r=flod,Gijs
MozReview-Commit-ID: BNeocrSY5Fa

--HG--
extra : rebase_source : 16ffb5e756567591471ce18a98eaee9315be6c89
2018-03-12 16:27:32 -07:00
Sebastian Hengst
d247fb5f4e Bug 1445763 - Update moz.build meta data with "Firefox Build System". r=froydnj
MozReview-Commit-ID: 3FrWJ6441pe

--HG--
extra : rebase_source : c8f1dc45041132252e28869ada6a386270267431
2018-03-14 21:44:46 +01:00
Csoregi Natalia
cbbe5a1135 Backed out changeset 32f45689f033 (bug 1445084) for frequently failing browser-chrome's browser_search_within_preferences_1.js (bug 1446186), remove obsolete file. a=backout 2018-03-16 15:00:25 +02:00
Zibi Braniecki
4a7d971409 Bug 1415733 - Migrate the "Search" section of Preferences to the new Localization API. r=flod,Gijs a=reland
MozReview-Commit-ID: ltXNOkdnOV

--HG--
extra : source : 647154f3033288e3cc3552f86d92eb1ad5f8f742
2018-03-12 17:17:13 -07:00
Csoregi Natalia
4cc6d868c9 Backed out changeset 647154f30332 (bug 1415733) for frequently failing browser-chrome's browser_search_within_preferences_1.js (bug 1446186). a=backout 2018-03-16 14:09:23 +02:00
Zibi Braniecki
07171ff48a Bug 1415733 - Migrate the "Search" section of Preferences to the new Localization API. r=flod,Gijs
MozReview-Commit-ID: ltXNOkdnOV

--HG--
extra : rebase_source : b75176b4e526ace545d1483606aa21dd8af76b58
2018-03-12 17:17:13 -07:00
Zibi Braniecki
45c410eacb Bug 1445084 - Migrate search results pane of Preferences to Fluent. r=flod,Gijs
MozReview-Commit-ID: BNeocrSY5Fa

--HG--
extra : rebase_source : 237685e47ea88376561b58434fac474fd963e475
2018-03-12 16:27:32 -07:00
Jan Beich
b2c12ddb46 Bug 1445193 - Use notify-send on Tier3 platforms as well. r=gps
MozReview-Commit-ID: 4ONdrhqc6zf

--HG--
extra : rebase_source : 6773d64fb7dc3cfa56c148a9b455ac03e81b465d
2018-03-13 10:29:11 +00:00
Ryan VanderMeulen
0bd3547b12 Bug 1424281 - Require Visual Studio 2017 15.6.0 and Win SDK 10.0.15063.0 to build on Windows. r=froydnj
--HG--
extra : rebase_source : 0de2c47bb978ae92128fc00390649a327612890f
2018-03-12 19:24:44 -04:00
Ryan VanderMeulen
dde54aa578 Bug 1424281 - Use Visual Studio 2017 15.6.0 for Windows builds. r=froydnj
--HG--
extra : rebase_source : 2d5abb19c1f2b2e2f142b849bd4d0ba9ab46ccbe
2018-03-12 19:24:44 -04:00
Nick Alexander
c9cc551b04 Bug 1444534 - Part 1: Allow "locales/en-US" relative paths in localized inputs. r=ted.mielczarek
This cleans up a few things, including simplifying the look of
backend.mk by keeping the relsrcdir in MERGE_RELATIVE_FILE similar to
the source path in the tree.  Before, the locales/ floated around,
which is hard to understand but doesn't matter, since it's stripped by
MERGE_RELATIVE_FILE.

This also tests both relative and topsrcdir-absolute paths.

MozReview-Commit-ID: 1v3y9xGiNfL

--HG--
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/inner/locales/en-US/localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/locales/en-US/localized-input
extra : rebase_source : 302d7cb638974fc5ec71513f47ce98222c5e3bb6
2018-03-08 14:12:44 -08:00
Francesco Lodolo (:flod)
aea4be56a6 Bug 1444969 - Fix Fluent migration code for home-page-header r=gandalf
MozReview-Commit-ID: 4jpOLumAiRL

--HG--
extra : rebase_source : 1852f0529c485fc97fb21665261d70239fb677ae
2018-03-12 19:45:06 +01:00
Gabriele Svelto
a41a01a61f Bug 1444881 - Make |mach bootstrap| use the latest version of Oracle's JDK when bootstrapping Fennec on Gentoo; r=nalexander
MozReview-Commit-ID: BnRJC95sSEr

--HG--
extra : rebase_source : 82db88a83191f7e837c000d3701df8b3ee941259
2018-03-12 14:31:05 +01:00
Matt Brubeck
f4e41f6114 Bug 1443271 - Remove outdated comment from vendor_rust.py. r=ted
MozReview-Commit-ID: s9CnYvQcJP

--HG--
extra : rebase_source : 8256ce6a7534ffd78ec796dbb1c246c5d12c6c9a
2018-03-05 12:03:15 -08:00
Nick Alexander
713d88d96a Bug 1443204 - Pre: Clean-up unused Android data structures in mozbuild frontend. r=chmanchester
MozReview-Commit-ID: 5ympxk0jSJq

--HG--
extra : rebase_source : cc368d42eed182cc595858effd08517c6ec25168
2018-03-06 14:53:04 -08:00
Gregory Szorc
1c982ae418 Bug 1439727 - Purge untracked files in python/ and third_party/python/; r=nalexander
`mach clobber python` currently purges Python files with known
extensions globally.

The python/ and third_party/python/ directories may also contain random
ignored/untracked files. Let's purge those as well.

Note: if someone has untracked but not ignored files, this will delete
them. This is possibly unwanted. But people shouldn't have untracked
but not ignored files sitting around in VCS. We don't run this command
by default, so I think it is safe to be aggressive in our purging of
these untracked files.

MozReview-Commit-ID: 8ql8QR6lP6j

--HG--
extra : rebase_source : 644eccee25913502ed4daa55e54aec9618ebe547
2018-03-07 15:06:21 -08:00
Gregory Szorc
da0cad58ef Bug 1439727 - Add a docstring for mach clobber; r=nalexander
This makes `mach help clobber` more useful.

MozReview-Commit-ID: GsIUqhUzVGP

--HG--
extra : rebase_source : bde88c0f9275a6dded83b8332faf2188583f663e
2018-03-07 08:49:13 -08:00
Gregory Szorc
d2a511149f Bug 1439727 - Also delete .pyd files; r=nalexander
`mach clobber python` is supposed to remove autogenerated Python files.
Let's add .pyd files (compiled C extensions on Windows) to the list
for good measure.

MozReview-Commit-ID: EbHvBYB7hj3

--HG--
extra : rebase_source : 2736c3d1077c6f371df20b3854840612693117f8
2018-03-07 08:44:18 -08:00
Cosmin Sabou
af65a84060 Backed out 2 changesets (bug 1443204) for build bustages at mozbuild/test/frontend/test_emitter.py on a CLOSED TREE
Backed out changeset eb1dfa51050f (bug 1443204)
Backed out changeset e3a7560b4206 (bug 1443204)
2018-03-07 23:58:00 +02:00
Nick Alexander
a03b697b4d Bug 1443204 - Pre: Clean-up unused Android data structures in mozbuild frontend. r=chmanchester
MozReview-Commit-ID: 5ympxk0jSJq

--HG--
extra : rebase_source : cc0f5ab2f4f3b4b39bae7baa96ebaea2b7738e23
2018-03-06 14:53:04 -08:00
Dorel Luca
4884b868ae Backed out changeset 5ceb1365ae75 (bug 1421734) for build Bustage on MinGW 2018-03-07 05:45:52 +02:00
Chris AtLee
698a2a7006 Bug 1421734 - Download and unpack toolchain artifacts in parallel; r=nalexander
MozReview-Commit-ID: BMe6zqIqNHP

--HG--
extra : rebase_source : f347fe9de0117fc858a3de7be2079445af374929
2018-02-12 15:07:36 -05:00
Nick Alexander
82f173d48c Bug 1443222 - Remove python/mozbuild/mozbuild/backend/templates. r=froydnj
MozReview-Commit-ID: FXqLPrAQpNF

--HG--
extra : rebase_source : 4f134f13c06acfec78a2bfb7d9127a27dc21a9ee
2018-03-05 10:26:29 -08:00
Matt Brubeck
be08cdcdc1 Bug 1381576 - Use a Cargo workspace for rust crates. r=ted
MozReview-Commit-ID: K6B9SifddXu

--HG--
extra : source : bbae7807c164273f6bb123d680a4fc31202d7a61
extra : amend_source : 53505e25f63a8eb228e62a0a9f3bd3ed98950296
extra : histedit_source : 597464181d4b79f5ac1a511d23e2a05aefb266da%2C63b89f3699e0e9598c8355e7293f10795acc80e7
2018-03-01 14:33:35 -08:00
shindli
0ba01aed1b Backed out 3 changesets (bug 1381576) for Bugzilla linting failure on a CLOSED TREE
Backed out changeset 3bc1743ad418 (bug 1381576)
Backed out changeset bbae7807c164 (bug 1381576)
Backed out changeset 1ea18b70b170 (bug 1381576)
2018-03-02 21:17:20 +02:00
Matt Brubeck
c94fb26dea Bug 1381576 - Use a Cargo workspace for rust crates. r=ted
MozReview-Commit-ID: K6B9SifddXu

--HG--
extra : rebase_source : 75fae593e8765ec5b1e616d10eda0bc52f1f7194
extra : histedit_source : 21b38586bcc4576fce5eadff9a3c77ccf5e21341
2018-03-01 14:33:35 -08:00
Kevin Brosnan
a7f87eaf46 Kevin Brosnan - Bug 1441579 - Install ncurses-compat-libs for Fedora as part of mach bootstrap r=nalexander
MozReview-Commit-ID: 6TsufMMzjIc

--HG--
extra : rebase_source : 569d4f50184cc2134e0b12b65abb99ad5fd4391f
2018-02-28 08:23:39 -08:00
Zibi Braniecki
4a44620118 Bug 1435912 - Migrate Preferences::General XUL part to the new Localization API. r=flod,jaws
MozReview-Commit-ID: J5Rr8Gc0oCx

--HG--
extra : rebase_source : df83a089c572be0ed8301edb93777d2aacd0f1f6
2018-02-27 21:20:54 -08:00
Ciure Andrei
52f18c2eac Backed out 2 changesets (bug 1435912, bug 1441733) for for Fluent in Preferences::General::XUL bc failures. a=backout on a CLOSED TREE
Backed out changeset 95eb6ee7690b (bug 1441733)
Backed out changeset 6ba30e000664 (bug 1435912)
2018-02-28 06:17:21 +02:00
Zibi Braniecki
15d8394912 Bug 1435912 - Migrate Preferences::General XUL part to the new Localization API. r=flod,jaws
MozReview-Commit-ID: J5Rr8Gc0oCx

--HG--
extra : rebase_source : fc16a0ead225d63330100ac83bdf94b6e22d6f3b
2018-01-22 15:38:06 -08:00
Zibi Braniecki
6c6256c87c Bug 1432338 - Introduce sync-brand.ftl. r=flod
MozReview-Commit-ID: Hs48yFaCMPf

--HG--
extra : rebase_source : 5797ca2dbc123108686f48bab3579a719f532c93
2018-02-12 11:29:13 -08:00
Nick Alexander
d825eb0d47 Bug 1439742 - Allow {AB_CD} and {AB_rCD} in LOCALIZED_GENERATED_FILES. r=ted.mielczarek
There are a lot of choices and moving pieces in this commit.  I elected
to include the mechanics and the target use case in the same commit so
that readers can compare and contrast the implementation and final
expression in one review window.

- Initially, I wanted to make the {AB_CD} substitutions in
LOCALIZED_FILES and not in LOCALIZED_GENERATED_FILES.  However, I ran
into conceptual blockers doing this.  Fundamentally, LOCALIZED_FILES
is FINAL_TARGET_FILES, and my use case should _not_ be putting files
anywhere near dist/bin.  In addition, LOCALIZED_FILES
(FINAL_TARGET_FILES) is handled using manifests, which would need to
grow locale-aware functionality to handle this.  That's not desirable.
In addition, if we use manifests, then we lose the powerful locality
of |mach build mobile/android{/base}| re-generating changed
locale-dependent resources.  This is similar to how the build system
plumbs dist/idl manifest processing throughout the build: we're
repairing local workflows after moving work into a global process.
For these reasons, this doesn't support {AB_CD} in LOCALIZED_FILES.

- There is even another layer of complexity!  There are two axes
involved with these files: AB_CD controls localization and the Make
target controls destination.  For the record, it is:

regular builds - AB_CD unset
multi-locale builds - AB_CD set
single-locale repacks - AB_CD set

For the record, the existing logic (before any changes) is:

regular builds - Make target is `libs` in mobile/android/base/locales
multi-locale builds - Make target is `chrome-%` in mobile/android/base/locales
single-locale repacks - Make target is `libs` in mobile/android/base/locales

This commit adds targets for both destinations, and uses Make
chrome-%:: and libs:: magic to control what is invoked in the various
situations.  Tricky!

- I added MERGE_RELATIVE_FILES in order to be able to follow-up this
patch with more patches that will get rid of
m/a/base/locales/{moz.build,Makefile.in} altogether, and fold this work
into m/a/base.  As it stands, we're already reaching from
m/a/base/locales all the way out to
mobile/locales/.../region.properties, so the existing code doesn't
follow the layout expected between mozilla-central and
l10n-central/$(AB_CD).  But that'll impedance will get worse as we
improve the build system dependencies, not better, so we should grow
support for localized resources that aren't exactly as expected.

- I chose to follow Python's syntax for string substitutions.  I
would have preferred to mark files that should be localized with a
leading '%'... but I took that for filesystem absolute paths in
moz.build files already.  I also considered @AB_CD@ to echo the
preprocessor, but didn't want to open the door to an expecation that
_all_ preprocessor DEFINEs will work in the way {AB_CD} does.

- The generate_*py script changes required a bit of a hack to "turn
off" locale dependent resources.  This would have been nicer if we had
marked localized resources with '%'... but we didn't.  See the
--fallback flag.  The real reason this is needed is that we're doing
work which is more like the work of compare-locales (merging
locale-dependent resources) at build-time rather than repack time.  I
don't know why that's the case -- probably when we (I) implemented it,
compare-locales and the whole l10n process was entirely opaque.  It's
not worth changing it now, so we use this --fallback flag approach.

- I didn't get to tup support.  This should gently fail without
breaking tup builds: any {AB_CD} substitutions just won't be
expanded.  I haven't a clue how this should work in tup in the future
(or, more generally, how to make any sense of repacks without
declaring the full set of expected locales at configure time.)

- strings.xml can't be a LOCALIZED_PP_FILES, since we need to
customize the output location based on AB_rCD, and since we need a
little more flexibility than PP_FILES gives for our inputs.

MozReview-Commit-ID: MyfIkNSEzt

--HG--
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/en-US/localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/en-US/localized-input
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/foo-data => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/foo-data
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/generate-foo.py => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/generate-foo.py
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/en-US/localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/inner/locales/en-US/localized-input
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/moz.build => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/moz.build
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/non-localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/non-localized-input
extra : rebase_source : 816b6f220758f2bb3bdd3ec81a2cb02269c6de5b
2018-02-21 17:12:17 -08:00
Mike Shal
e43bc408dc Bug 1441275 - ignore js/src/shell OBJDIR_FILES in the tup backend; r=chmanchester
Without linking support in the tup backend, we don't produce a js
binary, so we can't copy it via OBJDIR_FILES yet.

MozReview-Commit-ID: AxqhHi84HIg

--HG--
extra : rebase_source : 1011bc6296be81646004a6bd6572193c34f367d8
2018-02-22 16:15:18 -05:00
Ralph Giles
ef7e020a97 Bug 1440449 - Remove codegen-units limit for debug builds. r=froydnj
Starting with Rust 1.24, the default codegen-units limit is 16,
with jobserver control to avoid overprovisioning. Remove our
previous fixed limit of 4 threads for debug builds.

For release, retain codegen-units=1 to make sure we get the
most complete optimization results.

Thanks to Simon Sapin for the suggestion.

MozReview-Commit-ID: FmYF4DcmBvt

--HG--
extra : rebase_source : 307ad8fad2874636adb3ce95a5cd47339e83f40c
2018-02-22 11:58:50 -08:00
Nick Alexander
5e6cdade8e Bug 1440428 - Fix: Don't install Proguard JAR in |mach bootstrap|. r=jchen
MozReview-Commit-ID: EOvKSE5z28P
2018-02-26 11:37:41 -08:00
Nick Alexander
daf2cc6ccf Bug 1440428 - Remove Proguard JAR entirely. r=jchen
The Proguard dependency is now managed by Gradle.

MozReview-Commit-ID: EOvKSE5z28P

--HG--
extra : rebase_source : 760b117f500cc639cc8c24e9c02933990f358dd7
2018-02-26 11:37:41 -08:00
Nick Alexander
665e41ac95 Bug 1440432 - Remove AAR exploding from configure. r=jchen
The moz.build Java JAR definitions are, of course, broken, but they
will be removed soon enough.

MozReview-Commit-ID: KIxqLDwd9I7

--HG--
extra : rebase_source : 8312b3f125793f73d3e835d1c0a5c7cabd4ebc0c
2018-02-23 12:16:51 -08:00
Nick Alexander
b9e726131c Bug 1440757 - Don't invoke aapt in mobile/android/base/Makefile.in. r=jchen
I choose to clean a bunch of ANDROID_* moz.build cruft here, too,
since it's just passing dependencies between moz.build and
Makefile.in.  The replacement for all of this is to just use
GENERATED_FILES in moz.build, but it'll still take some work to get to
that.  (Why does this stuff exist?  GENERATED_FILES didn't exist and
was resisted when I built this stuff.)

MozReview-Commit-ID: D3GJqJNL0Ih

--HG--
extra : rebase_source : 07351f9d3702cfc42c58bd317885d07882c45c3a
2018-02-23 11:57:28 -08:00
Nick Alexander
03710dc7d0 Bug 1440743 - Part 2: Remove most of MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE. r=jchen
This is the easy stuff -- everything but mobile/android/base/Makefile.in.

MozReview-Commit-ID: 5x2z97AHUrR

--HG--
extra : rebase_source : 531fd41d367cad071b209b85ca5b5602fd7cbf7b
2018-02-22 11:45:51 -08:00
Nick Alexander
1ff0250889 Bug 1440433 - Part 2: Remove ANDROID_APK_{NAME,PACKAGE}. r=jchen
The last APK produced using the ANDROID_APK_* moz.build/Makefile.in
mechanism was Robocop, so we can get rid of these now.

MozReview-Commit-ID: 9b08ZvvOAoC

--HG--
extra : rebase_source : ac4fea057bf6e731b0f26a1b6902f17a7362076d
2018-02-22 13:36:49 -08:00
Gregory Wlodarek
f2c2d6213b Bug 1434427 - Replace string for preferences confirmRestartPrompt to use "cancel" instead of "revert". r=flod
* Removed the revertNoRestartButton entry from the migration script as this no longer exists after this change

MozReview-Commit-ID: AGJ2OfYVPok

--HG--
extra : rebase_source : df7f383f51e4d72c493e4cc43696eff2ee0034fa
2018-02-16 13:34:18 -05:00
Sebastian Hengst
bfb77aa998 merge mozilla-central to mozilla-inbound on a CLOSED TREE 2018-02-24 03:11:04 +02:00
Coroiu Cristina
30b07a253a Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-02-23 20:05:10 +02:00
Zibi Braniecki
0270c3b8f4 Bug 1439452 - Use width instead of min-width for Find in Preferences box. r=flod
MozReview-Commit-ID: qCLLsXA9bG

--HG--
extra : rebase_source : 85c8b9275c6f151a6420cb7a3a827021f4229914
2018-02-22 22:57:36 -08:00
Ben Hearsum
0d4b578055 bug 1398799: mozharness script to create update verify configs without relying on patcher configs. r=nthomas 2018-02-23 06:00:02 -05:00
Chris Manchester
7dfc0e5eaf Bug 1436959 - Use the correct case-insensitive sorted iterator when sorting lists in generated GN moz.build files. r=dminor
MozReview-Commit-ID: 9NY4cPF1awQ

--HG--
extra : rebase_source : d57ebb30ebbc1921bea02407466fa139a4d5beb4
2018-02-22 12:04:53 -08:00
Andrew Halberstadt
2f6a0dfa63 Bug 1434974 - [mozlint] Create a SummaryFormatter to help triage paths, r=jmaher
This formatter is useful for triaging paths when enabling new linters or
expanding existing ones. It works well with the -n/--no-filter option.

For example, if I wanted to look for candidates of new directories to enable
the codespell linter on, I could run:

./mach lint -l codespell -nf summary

This will print something like:
accessible: 429
dom: 142
layout: 15
testing: 53
etc..

If desired, you can also specify a depth by setting MOZLINT_SUMMARY_DEPTH. A
depth of 2 means results will be aggregated further down, e.g:

accesible/build: 129
accesible/ipc: 300
dom/indexedDB: 100
dom/workers: 42
etc..

The depth is always relative to the common path prefix of all results, so
running:

./mach lint -l codespell -nf python/mozbuild

Would expand all the directories under python/mozbuild (not topsrdir).

MozReview-Commit-ID: OiihLTpULA

--HG--
extra : rebase_source : eaaabc1d5cdc8e3942808d01b24e22081fea752e
2018-01-29 16:37:21 -05:00
Narcis Beleuzu
2d9816273c Merge inbound to mozilla-central. a=merge 2018-02-16 11:49:59 +02:00
Ralph Giles
07d65e6e07 Bug 1430928 - mozboot: install rust 1.24. r=froydnj DONTBUILD
Have `./mach boostrap` update users to at least rust 1.24.0,
which is the current stable release.

MozReview-Commit-ID: 2sma2p3BktJ
2018-02-15 17:07:37 -08:00
Zibi Braniecki
415c5ab35f Bug 1424682 - Migrate the chrome of Preferences to the new Localization API. r=flod,jaws
MozReview-Commit-ID: ALnFUmnJMDB

--HG--
extra : rebase_source : 24c452a69b4db76db9f623122ce63a73df579fed
2017-12-18 23:19:13 -08:00
Nick Alexander
e15e1e942d Bug 1437201 - Part 2: Install llvm on macOS when bootstrapping mobile/android. r=froydnj
This was just an oversight when adding Stylo bindgen support to |mach
bootstrap| (I assume).

MozReview-Commit-ID: 89N6omXGUdy

--HG--
extra : rebase_source : bcc4fc72ce49390e1200eb5efbe6ee14fccd016c
2018-02-09 14:33:30 -08:00
Zibi Braniecki
551e153581 Bug 1424683 - Introduce brand.ftl and migrate brand-short-name to it. r=Pike
MozReview-Commit-ID: Cl0jQEkuD8q

--HG--
extra : rebase_source : 6c183503c1f4e693229aa5afface4f8a9f991ea5
2017-12-18 21:46:49 -08:00
Chris Manchester
d9c25ac16f Bug 1437182 - Take IPDL/WebIDL generated sources into account when associating object files with linkables in the emitter. r=gps
MozReview-Commit-ID: BHABdAk3Esm

--HG--
extra : rebase_source : 83e344b3b5ab792731ebc137acf24ec2b40059ee
2018-02-12 18:41:43 -08:00
Chris Manchester
d0d19d5199 Bug 1437182 - Note object files associated with linkables in the emitter. r=gps
MozReview-Commit-ID: 3IR8TolZpKs

--HG--
extra : rebase_source : 94dce395470de1c78750302892c88ab891de5103
2018-02-12 18:41:43 -08:00
Andreea Pavel
318bf3315d Backed out 2 changesets (bug 1437182) for gecko decision task failure
Backed out changeset 588efc6f3520 (bug 1437182)
Backed out changeset 19497c8c5b6f (bug 1437182)
2018-02-13 03:55:56 +02:00
Chris Manchester
afd306c52d Bug 1437182 - Take IPDL/WebIDL generated sources into account when associating object files with linkables in the emitter. r=gps
MozReview-Commit-ID: BHABdAk3Esm

--HG--
extra : rebase_source : fd2b592a3afc747a8b34bb81f7010f33bc32d055
2018-02-12 17:40:22 -08:00
Chris Manchester
fe4e66cbd1 Bug 1437182 - Note object files associated with linkables in the emitter. r=gps
MozReview-Commit-ID: 3IR8TolZpKs

--HG--
extra : rebase_source : 48063f31cec6f4ca40f699f038cfc76b3095c995
2018-02-09 14:28:02 -08:00
Tom Prince
667424786a Bug 1434365: Allow repackaging thunderbird installer with mach; r=nalexander via IRC - DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D515

--HG--
extra : source : 9f602face4f8b7e8f0f56476159cfcd90e861ecd
extra : amend_source : dfd1af2a87e3864ad1204710f673bfed92da222c
2018-01-28 13:07:00 -07:00
Tom Prince
c6da5f8b76 Backed out changeset 9f602face4f8 (bug 1434365), didn't tag the reviewer correctly.
--HG--
extra : amend_source : 95e4a54370629d174c46061a72029f9dfb527d7d
2018-02-11 16:24:07 -07:00
Tom Prince
2145d89d35 Bug 1434365: Allow repackaging thunderbird installer with mach.
Differential Revision: https://phabricator.services.mozilla.com/D515

--HG--
extra : rebase_source : 464bf67f7149a5ab7ff2076ff5969347f041acd6
2018-01-28 13:07:00 -07:00
Dorel Luca
23a5631163 Backed out 2 changesets (bug 1437201) for Android build bustage on a CLOSED TREE
Backed out changeset 1a206d390b01 (bug 1437201)
Backed out changeset 04e61046bb44 (bug 1437201)
2018-02-10 02:40:11 +02:00
Nick Alexander
98deb790f4 Bug 1437201 - Part 2: Install llvm on macOS when bootstrapping mobile/android. r=froydnj
This was just an oversight when adding Stylo bindgen support to |mach
bootstrap| (I assume).

MozReview-Commit-ID: 89N6omXGUdy

--HG--
extra : rebase_source : 8055d69eea317d83d64d481708f2d77e544db688
2018-02-09 14:33:30 -08:00
Nick Alexander
60bae57dc0 Bug 1427790 - Bootstrap caskroom/versions/java8 for macOS+brew+mobile/android. r=froydnj
Two things have changed.  One, Brew's java package became Java 9,
which doesn't work for building on Android.  Two, Brew's cask system
also changed, requiring some small updates.

In order to actually use the install java toolchain, we need to use
the --with-java-bin-path configure option, which required some small
tweaks to the suggested mozconfigs.

MozReview-Commit-ID: JlZpdqaOkp0

--HG--
extra : rebase_source : c2828139843b6e0b8d2f0c3141d4d9e5b0b83b4f
2018-02-09 11:30:28 -08:00
Andi-Bogdan Postelnicu
9ca255c241 Bug 1405554 - Merge clang-format with clang-tidy under the same package from toolchains. r=gps
MozReview-Commit-ID: 1XokTUVmVPL

--HG--
extra : rebase_source : bd52ecd720eb3a0a145660c3c5b55922f571f9fb
2018-02-09 09:01:17 +02:00
Margareta Eliza Balazs
9ab2f0f44f Backed out changeset 773a25b97a66 (bug 1405554) for f8 lint failure in /builds/worker/checkouts/gecko/tools/mach_commands.py on a CLOSED TREE 2018-02-08 19:36:21 +02:00
Andi-Bogdan Postelnicu
51fc404396 Bug 1405554 - Merge clang-format with clang-tidy under the same package from toolchains. r=gps
MozReview-Commit-ID: 1XokTUVmVPL

--HG--
extra : rebase_source : 13cab9c90d98da10dcafbe788c4e8b67fcd56803
2018-01-31 11:02:23 +02:00
Mike Hommey
934828f009 Bug 1434765 - Properly reject invalid variables in #if{,n}def. r=froydnj,nalexander
The invalid variable test for #if{,n}def was only checking that the
first character in the variable was alphanumeric or underscore, not
the other characters.

More generally, preprocessor instructions were also cut out such that
whitespaces before and after arguments were part of the arguments.
Subtly, some legitimate strings end with what, in ISO-8859-1, is
considered as whitespaces, and because the preprocessor largely works
on byte strings (str), and because the regexps are using re.U, those
characters (e.g. 0xa0) that can legitimately appear in byte strings of
UTF-8 encoding, are treated as whitespaces. So we remove the re.U from
the instruction regexp, so that only plain ascii whitespaces only are
stripped out.

There's one place in layout/tools/reftest/manifest.jsm that was using
a broken pattern, making the test never true, which, once fixed, unveils
broken tests, so the branch that was never used is removed.

--HG--
extra : rebase_source : b695dec025c55aee0e50f2a0047278fe9c849c9e
2018-02-01 10:40:59 +09:00
Botond Ballo
494c0aa4db Bug 1325490 - Give a helpful error message if eclipse project generation is invoked and 'eclipse' is not in the PATH. r=nalexander
MozReview-Commit-ID: B9CfN3WHZZO

--HG--
extra : rebase_source : 034a33ecd64a376e536a3f31d7e221a9bfb763b9
2018-02-07 15:22:43 -05:00
Manish Goregaokar
72ed6d355d Bug 1436251 - Set codegen-units=1 in --enable-release; r=glandium
MozReview-Commit-ID: 8kGTFAXfB2i

--HG--
extra : rebase_source : bc1860366646e629deef3c819576d208b1b6cd73
2018-02-06 19:06:03 -08:00
Narcis Beleuzu
84cea84b12 Merge inbound to mozilla-central. a=merge 2018-02-06 11:54:42 +02:00
Andrew Halberstadt
eb84bf741c Bug 1429457 - [mozlint] Create formal 'setup' mechanism for bootstrapping lint dependencies, r=gbrown
This allows linters to define a 'setup' method which will automatically be
called by |mach lint| before running the linter. Users can also explicitly run
these methods (without doing any actual linting) by running |mach lint --setup|.

MozReview-Commit-ID: 74aY1pfsaX1

--HG--
extra : rebase_source : e6a7d769ba14c996c7a77316928063fa46358c5a
2018-01-25 13:40:02 -05:00
J. Ryan Stinnett
f69b532a8e Bug 1408643 - Fix up Proguard install command from configure. r=nalexander
MozReview-Commit-ID: nvUvoUzFLy

--HG--
extra : rebase_source : 7df5e8828e044037ba49255f04dfe38ed1cc0ca2
2018-02-02 09:43:18 -05:00
Andreea Pavel
3cb61b9976 Backed out changeset 3b7ef7afd156 (bug 1408643) for failing flake8 at /builds/worker/checkouts/gecko/build/moz.configure/java.configure:98:100 on a CLOSED TREE 2018-02-03 00:20:25 +02:00
J. Ryan Stinnett
4be102b212 Bug 1408643 - Fix up Proguard install command from configure. r=nalexander
MozReview-Commit-ID: nvUvoUzFLy

--HG--
extra : rebase_source : acc1ec9e3c0a3b9e933d3a9ee354b12d69778bd3
2018-02-02 09:43:18 -05:00
Andrew Halberstadt
f354075c7a Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood
This is a new issue that gets linted with flake8 3.5.0. Basically you should
never use a blank except: statement.

This will catch all exceptions, including KeyboardInterrupt and SystemExit
(which is likely not intended). If a catch all is needed, use
`except: Exception`.  If you *really* mean to also catch KeyboardInterrupt et
al, use `except: BaseException`.

Of course, being specific is often better than a catch all.

MozReview-Commit-ID: FKx80MLO4RN

--HG--
extra : rebase_source : 7c74a7d0d81f2c984b47aff3a0ee3448b791177b
2018-01-31 14:32:08 -05:00
Marco Castelluccio
ae9550604c Bug 1434938 - Fix printing warning when there are no valid records in the JSVM info files. r=chmanchester
--HG--
extra : rebase_source : f592afb6f73ce2afabe4faf141401cb857b4ddb6
2018-02-01 16:42:35 +01:00
Sebastian Hengst
0d4ebdcd4e Backed out changeset d4582a286d6a (bug 1434765) for breaking build of Catalan language pack due to altered output. a=backout 2018-02-01 23:04:25 +02:00
Nathan Froyd
a65d0b5a21 Bug 1412006 - part 2 - add an --ndk-only option to mozboot/android.py; r=nalexander
This option will be useful for our NDK repackaging task.
2018-02-01 09:59:23 -05:00
Nathan Froyd
900fb3a463 Bug 1412006 - part 1 - have a single point of truth for the NDK version; r=nalexander
...at least in mozboot/android.py.
2018-02-01 09:59:23 -05:00
Nathan Froyd
d651932496 Bug 1435712 - make locating libstdc++ for the target/host smarter; r=nalexander
Depending on the compiler you use when --enable-stdcxx-compat, the
compiler can know about different libstdc++.so libraries that are not
suitable for your target.  This will manifest as an assertion in the
current libstdcxx.py file.  And then, when you change the assertion to
actually print out useful information, you will see things like:

/bin/ld: skipping incompatible /builds/worker/workspace/build/src/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.4/../../../libstdc++.so when searching for -lstdc++
/bin/ld: skipping incompatible /builds/worker/workspace/build/src/clang/bin/../lib/libstdc++.so when searching for -lstdc++

which libstdcxx.py misinterprets as candidates for libstdc++.so.

This patch attempts to remedy both situations by providing a more
informative error message when things go sideways and also filtering out
error messages from the linker.  You could argue that perhaps
--enable-stdcxx-compat shouldn't be getting set for such builds, but
this change seems reasonable enough on its own.
2018-02-05 16:07:16 -05:00
Mike Hommey
355ab37a8f Bug 1434765 - Properly reject invalid variables in #if{,n}def. r=froydnj
The invalid variable test for #if{,n}def was only checking that the
first character in the variable was alphanumeric or underscore, not
the other characters.

More generally, preprocessor instructions were also cut out such that
whitespaces before and after arguments were part of the arguments.

There's one place in layout/tools/reftest/manifest.jsm that was using
a broken pattern, making the test never true, which, once fixed, unveils
broken tests, so the branch that was never used is removed.

--HG--
extra : rebase_source : d1fe8a299203a29c0906ff99054c326acd135000
2018-02-01 10:40:59 +09:00
Nick Alexander
4bc7052253 Bug 1386040 - Write .purgecaches sentinels during |mach watch|. r=gps
Right now, the "restart flow" that combines |mach watch| with the
Quick-Restart Firefox for Desktop shortcut key is frustrated by
inconsistencies writing the .purgecaches sentinels for the
application.  This commit uses recent work from
https://bugzilla.mozilla.org/show_bug.cgi?id=1368699 to write the
sentinels each time |mach watch| updates the object directory.

MozReview-Commit-ID: 62Aa85oT1SE

--HG--
extra : rebase_source : 746bbe5c6f1555e8b729cbbbc1f8ca57110ae9ba
2018-01-19 14:40:51 -08:00
Nick Alexander
edf219ba3b Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu
New Android-Gradle plugins pin the build-tools version, and we want to
be consistent between Gradle and moz.build.

MozReview-Commit-ID: ApWS4rHzPuH

--HG--
extra : rebase_source : 22008e9333b15c594ce26c2a52f67396d6e3ab84
extra : source : f918500d9cf5112b70bc8e0a120df435b02252b7
2017-10-26 11:00:36 -07:00
Nick Alexander
c1ae449401 Bug 1411654 - Pre: Gradle is no longer experimental; IntelliJ not supported. r=maliu
IntelliJ should still work, but we're committed to Android Studio at
this point.

MozReview-Commit-ID: 3BaXB4dh4vA

--HG--
extra : rebase_source : 0bf39a7d8daddc9a5c74182cf266f5d01d17acc8
extra : source : 901b304603d9d4816856d560c61387501efceadc
2017-11-15 13:36:02 -08:00
Nick Alexander
4161679514 Bug 1368699 - Write .purgecaches sentinels every |mach build|. r=gps
This adds a new `post_build` step to each `BuildBackend`
implementation, and uses it to write .purgecaches after every |mach
build| invocation -- including after |mach build TARGET| invocations.
This approach should be more robust than the existing recursive-Make
based solution, which seems to not write the .purgecaches files in
some situations.

In addition, the recursive-Make solution does not generalize to other
backends, in particular Tup.  It is possible that the Tup backend will
handle writing the .purgecaches sentinel as part of its regular build
process, but discussions with mshal suggest that there's no convenient
way for Tup to write .purgecaches only when something *changes* during
the build.  That is, Tup can achieve the behaviour implemented by this
patch, but it's not easier to do better by not writing .purgecaches
when the caches do not in fact need to be purged.

I elected to bake in the special knowledge of
--enable-application=browser and macOS here since this whole process
is special.  If we need to generalize, we could add a moz.configure
option specifying the purgecaches directories, but it doesn't seem
worth it right now.

The ideal approach would be to determine FINAL_TARGET from the
application directory, but that is determined by DIST_SUBDIR.  In
addition, it's not clear how to present that information to the
post-build step in a build-backend agnostic manner.

This will require tweaking as we migrate the macOS bundle handling to
moz.build, especially in browser/app.  See
https://bugzilla.mozilla.org/show_bug.cgi?id=1223748, which could
improve this significantly.

MozReview-Commit-ID: 63KZy18D23i

--HG--
extra : rebase_source : e973d065cd91e965f4103ed2732858e2e7a9c546
2018-01-31 09:25:12 -08:00
Bogdan Tara
1f15df5f24 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-01-31 12:11:39 +02:00
Marco Castelluccio
8a2bdd59ec Bug 1431388 - Rewrite LCOV files on test machines. r=chmanchester,jmaher 2018-01-24 22:58:22 +01:00
Marco Castelluccio
c15234e886 Bug 1431379 - Disable assertion that checks that rewritten source files exist. r=chmanchester 2018-01-29 20:01:26 +01:00
Marco Castelluccio
94bc709ac5 Bug 1431379 - Move ChromeManifestHandler class in a separate file. r=chmanchester 2018-01-25 15:52:34 +01:00
Marco Castelluccio
978b39e16d Bug 1431379 - Package lcov rewriter and its dependencies in the common test archive. r=chmanchester 2018-01-24 22:48:50 +01:00
Coroiu Cristina
04dc0e7243 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-01-31 02:14:54 +02:00
Coroiu Cristina
4854a65d8c Backed out 3 changesets (bug 1368699) for bustage on Android L10n nightlies a=backout
Backed out changeset e16fc8abd345 (bug 1368699)
Backed out changeset 35a5db01b6ae (bug 1368699)
Backed out changeset 7297a1e8c4ff (bug 1368699)
2018-01-31 01:59:23 +02:00
Nick Alexander
e30619cc86 Bug 1368699 - Write .purgecaches sentinels every |mach build|. r=gps
This adds a new `post_build` step to each `BuildBackend`
implementation, and uses it to write .purgecaches after every |mach
build| invocation -- including after |mach build TARGET| invocations.
This approach should be more robust than the existing recursive-Make
based solution, which seems to not write the .purgecaches files in
some situations.

In addition, the recursive-Make solution does not generalize to other
backends, in particular Tup.  It is possible that the Tup backend will
handle writing the .purgecaches sentinel as part of its regular build
process, but discussions with mshal suggest that there's no convenient
way for Tup to write .purgecaches only when something *changes* during
the build.  That is, Tup can achieve the behaviour implemented by this
patch, but it's not easier to do better by not writing .purgecaches
when the caches do not in fact need to be purged.

I elected to bake in the special knowledge of
--enable-application=browser and macOS here since this whole process
is special.  If we need to generalize, we could add a moz.configure
option specifying the purgecaches directories, but it doesn't seem
worth it right now.

The ideal approach would be to determine FINAL_TARGET from the
application directory, but that is determined by DIST_SUBDIR.  In
addition, it's not clear how to present that information to the
post-build step in a build-backend agnostic manner.

This will require tweaking as we migrate the macOS bundle handling to
moz.build, especially in browser/app.  See
https://bugzilla.mozilla.org/show_bug.cgi?id=1223748, which could
improve this significantly.

MozReview-Commit-ID: 63KZy18D23i

--HG--
extra : rebase_source : c5f75192f1b77f08611662f51caa92dcb1ca802f
2018-01-23 19:18:16 -08:00
Nick Alexander
b8d28049fd Bug 1433285: Extract classes*.dex from .ap_ --with-gradle. r=gps,snorp
Right now, we only expect classes.dex, and even --with-gradle we copy
it out of $topobjdir/mobile/android/base.  This commit changes that
for --with-gradle: we only take classes.dex from the given .ap_ file,
and we also handle multiple classesN.dex files (for future multi-dex
support).  The moz.build system stays the same.

This avoids an issue with newer Android-Gradle plugins, where the
classes.dex produced could be either in dex/ or in dexMerger/,
depending on whether any external libraries needed merging.  By
extracting classes.dex from the .ap_ file, we don't need to know what
Gradle build steps actually occur.

The classes.dex in the package-manifest.in has been irrelevant since
Bug 1260241.

MozReview-Commit-ID: FozKwjTcMzU

--HG--
extra : rebase_source : 62b18c7ffe596be73cec4c9565333eac222b018e
2018-01-24 22:09:48 -08:00
Nick Alexander
00bbcb11bb Bug 1429815 - Fix InstallManifest::add_entries_from with non-trivial base. r=gps
There's a bug in InstallManifest::add_entries_from: some of the
manifest entries bake their destination into both the manifest key and
the manifest value, and add_entries_from with a non-empty "base"
parameter to prepend to the destination only updates the manifest key
and not the value.

This bug causes |mach watch| to fail to _read_ the unified manifest
that aggregates all of the build manifests relevant to |mach watch|
that |mach build-backend -b FasterMake| successfully _wrote_, because
the manifest keys are validated against the manifest values written to
disk.

I see no way to address this other than to manually reach into the
manifest values and patch the internal destination parameter, which
this patch does.

MozReview-Commit-ID: FVyRB41NnHa

--HG--
extra : rebase_source : 23eb18ddc0452955539ce2e7a6d7bbfd083c940c
2018-01-18 16:58:07 -08:00
Chris Manchester
e6de0d9e04 Bug 1434125 - Add xpidl + rust command line arguments and output dependencies to the tup backend. r=mshal
MozReview-Commit-ID: 9DsymfiOB8N

--HG--
extra : rebase_source : 225607b6dc99cc22f50b0db8a1f8b6bbf46d64ea
2018-01-29 15:44:58 -08:00
Andrew Halberstadt
3684054b5d Bug 1433974 - Update BUG_COMPONENT for some of the new Testing components, r=jmaher
MozReview-Commit-ID: 7jQnnAhOzEr

--HG--
extra : rebase_source : af1c9dca779c6089b5cc062eea81ef9945133d48
2018-01-29 12:57:54 -05:00
Andrew Halberstadt
a8b5fc493f Bug 1433912 - [lint] Only run codespell linter on python/mozlint and tools/lint for now, r=sylvestre
This is a bustage fix that needs to get out quickly. Once landed we can take
the time to enable it on more directories, or preferably change it to a
blacklist.

MozReview-Commit-ID: Gbf7q2L0tg3

--HG--
extra : rebase_source : a58ae64c655b24e686710a663d4538b4cfe020f7
2018-01-29 10:25:54 -05:00
Sylvestre Ledru
61536137bd Bug 1432892 - Comment the npm package dependency until Debian brings it back r=standard8
MozReview-Commit-ID: BeWtC943jw7

--HG--
extra : rebase_source : 5bb8b3315674b5c63e22c8ebbb486bc04b6267ed
2018-01-26 13:53:19 +01:00
Jan Beich
9f9d8720a3 Bug 1433395 - FreeBSD bootstrap: install LLVM as Mesa dependency. r=froydnj
Firefox generally supports the same range of LLVM versions as Mesa.
Instead of regularly updating it just pull Mesa drivers which will
be required by WebRender, anyway.

MozReview-Commit-ID: DiK4TD9tWe0

--HG--
extra : rebase_source : 5dd9c8c46ae79deee8f2fd887b27fddbc30fc22d
2018-01-25 10:27:51 +00:00
Chris Manchester
94906d6110 Bug 1432643 - Store gn gen output in the objdir per project. r=nalexander
MozReview-Commit-ID: 5yPGlwqfhho

--HG--
extra : rebase_source : 16b82d0d17347ec891089eefb5b9bfa07634a53b
2018-01-23 14:55:11 -08:00
Botond Ballo
de0cdedea7 Bug 1432919 - Configure generated eclipse projects to remove trailing whitespace in edited lines. r=jwatt
MozReview-Commit-ID: 6naw8sbWqKT

--HG--
extra : rebase_source : 435e24fd33e51fcf84ac8ad64a63c59a7827907b
2018-01-24 19:03:33 -05:00
Andrew Halberstadt
529aad2e2c Bug 1430825 - [mozlint] Split work up by paths instead of by linters, r=standard8
The initial motivation for this patch, was to prevent command lines that are
too long on Windows. To that end, there is a cap to the number of paths that
can be run per job. For now that cap is set to 50. This will allow for an
average path length of 160 characters, which should be sufficient with room to
spare.

But another big benefit of this patch is that we are running more things in
parallel. Previously, mozlint ran each linter in its own subprocess, but that's
it. If running eslint is 90% of the work, it'll still only get a single
process. This means we are wasting cores as soon as the other linters are
finished.

This patch chunks the number of specified paths such that there will be N*L
jobs where 'N' is the number of cores and 'L' is the number of linters.  This
means even when there's a dominant linter, we'll be making better use of our
resources. This isn't perfect of course, as some paths might contain a small
number of files, and some will contain a very large number of files.  But it's
a start

A limitation to this approach is that if there are fewer paths specified than
there are cores, we won't schedule enough jobs per linter to use those extra
cores. One idea might be to expand specified directories and individually list
all the paths under the directory. But this has some hairy edge cases that
would be tough to catch. Doing this in a non-hacky way would also require a
medium scale refactor.

So I propose further parallelization efforts be destined for follow-ups.

MozReview-Commit-ID: JRRu13AFaii

--HG--
extra : rebase_source : 242fb71fe0af8bd2a981bd10a7216bb897fe00ac
2018-01-16 16:01:20 -05:00
Jan Beich
d3df765835 Bug 1433036 - OpenBSD bootstrap: node-devel package doesn't exist. r=froydnj,gaston
lang/node aka node package is what actually installs node and npm executables.
https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/lang/node/pkg/PLIST?rev=HEAD

MozReview-Commit-ID: H9lZGcHmEuR

--HG--
extra : rebase_source : 31a6259c3c6890f77f3f65054c21a13af2d3aff2
2018-01-25 07:05:22 +00:00
Jan Beich
0a1567442d Bug 1433036 - FreeBSD bootstrap: add npm for linting after bug 1433036. r=froydnj
Downstream npm package already depends node package, no need to
specify it explicitly. Also, node package refers to the latest NodeJS
but npm package can be built against an older version.

MozReview-Commit-ID: KeuSFEKeStw

--HG--
extra : rebase_source : ac3ab14519f4edd8bcb5b77cad64eeaed16d2751
2018-01-25 07:02:44 +00:00
Ralph Giles
0f7ccae18e Bug 1430934 - mozboot: Update to rust 1.23.0. r=nalexander
Have `./mach boostrap` update users to at least rust 1.23.0,
which is the current stable release.

MozReview-Commit-ID: 7ukx7shu07e

--HG--
extra : rebase_source : 82ea7fd65901f0e9e00e961d157cf113d82b1d4e
2018-01-16 15:07:14 -08:00
Kartikaya Gupta
d4c9e4740d Bug 1432223 - Add an --all-crates option to mach cargo check, to check all the crates. r=froydnj
MozReview-Commit-ID: 2nst2ctsI6s

--HG--
extra : rebase_source : 92212248ae645098b0bd75254d9ba5075c076a90
2018-01-22 12:46:29 -05:00
Gabriele Svelto
2981b63774 Bug 1432954 - Make |mach bootstrap| use the latest version of Oracle's JDK when bootstrapping Fennec on Gentoo; r=nalexander
MozReview-Commit-ID: 40xYQqpMy9O

--HG--
extra : rebase_source : 84b3f8832b5f393a25357354d94ec94c9d7e53ed
2018-01-24 22:56:36 +01:00
Cosmin Sabou
7e6e71746a Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-01-25 00:04:12 +02:00
Chris Manchester
83f62e19ad Bug 1431229 - Populate IPDLCollection from the emitter rather than the common backend. r=mshal
MozReview-Commit-ID: LSRypNDr7G8

--HG--
extra : rebase_source : 64c805abd9899ea5edb2681b7c497ed5ae3d5539
2018-01-24 13:55:06 -08:00
Chris Manchester
8eb10b3d45 Bug 1431229 - Populate WebIDLCollection from the emitter rather than the common backend. r=mshal
MozReview-Commit-ID: JVaoPF53rhY

--HG--
extra : rebase_source : 91fb470d5e1cc616a19a839542f499aa58dbfd4d
2018-01-24 13:55:06 -08:00
Chris Manchester
dc3756ba9d Bug 1431879 - Use sorted iterators when generating moz.build files from gn to make the output deterministic. r=froydnj
MozReview-Commit-ID: BrijC37ErCP

--HG--
extra : rebase_source : a96a4aaadc6f6ee75a0de534cad8a9e87a9f4dbb
2018-01-23 19:33:08 -08:00
Marco Castelluccio
47b9708b4a Bug 1431349 - Add additional tests for UrlFinder and chrome_map preprocessor info generation. r=chmanchester
--HG--
extra : rebase_source : 838a6b114e433f9179a1e3294ab53d730b672073
2018-01-23 16:00:58 +01:00
Marco Castelluccio
99049e0dcd Bug 1431349 - Fix lcov rewriter tests with the new LcovFileRewriter and UrlFinder constructors. r=chmanchester
--HG--
extra : rebase_source : 27ef8000d97152c6b27f35b9ec1a065dc0c27088
2018-01-19 11:02:05 +01:00
Marco Castelluccio
8ee287cc7c Bug 1431349 - Store some information about build configuration in chrome-map.json, so that the lcov rewriter doesn't need to import buildconfig. r=chmanchester
--HG--
extra : rebase_source : b84ea5953a64b367cb31c253a30842e698118e81
2018-01-18 12:52:48 +01:00
Marco Castelluccio
6ae73dfbcf Bug 1431723 - Actually use URL overrides in the LCOV rewriter. r=chmanchester
--HG--
extra : rebase_source : cb31f4f193a7fcda9db6c6be7376c01554013c87
2018-01-19 12:46:43 +01:00
Marco Castelluccio
a69b08ec8f Bug 1402539 - Ignore query parameters when rewriting URLs. r=chmanchester
--HG--
extra : rebase_source : 3f1c8c38955b370d36410da1254fc80a19ef932f
2018-01-23 16:00:47 +01:00
Marco Castelluccio
8073360e69 Bug 1402539 - Update test_lcov_rewrite to use new generate_pp_info function. r=chmanchester
--HG--
extra : rebase_source : 870e007546e5a958d964f8c4054db77e54408c8c
2018-01-19 10:51:21 +01:00
Marco Castelluccio
7930ff0189 Bug 1402539 - Parse install manifest when generating the chrome-map file. r=chmanchester
--HG--
extra : rebase_source : 0f519d15470c88f792a93366e5481e76ff4d96f0
2018-01-18 13:36:28 +01:00
Marco Castelluccio
6b44872a27 Bug 1402539 - Don't check for the existence of the files, check if they are in the install info. r=chmanchester
--HG--
extra : rebase_source : 03d823fee0a286b8c17f380f9b15584d920f74c4
2018-01-18 11:51:48 +01:00
Marco Castelluccio
16f4891262 Bug 1402539 - Store relative paths in the chrome-map.json file. r=chmanchester
--HG--
extra : rebase_source : 5b8237855bcbfcd0a46cbb792123b1343f074052
2018-01-18 11:17:31 +01:00
Marco Castelluccio
a12e141983 Bug 1402539 - Generate preprocessor information for lcov rewriting at build time. r=chmanchester
--HG--
extra : rebase_source : bad1d80838a930bd66aa88394065f9ea955ab237
2018-01-18 11:12:28 +01:00
Nika Layzell
a8351a819f Bug 1293362 - Part 5: Allow implementing xpcom interfaces from rust code with a custom derive, r=froydnj
MozReview-Commit-ID: 90Yv3H40jZW
2018-01-23 17:27:28 -05:00
Nika Layzell
c33284aec0 Bug 1293362 - Part 4: Generate runtime bindings for calling xpcom methods from rust, r=froydnj
MozReview-Commit-ID: K37KyHkKsSl
2018-01-23 17:27:26 -05:00
Kartikaya Gupta
a2063aef65 Bug 1432222 - Actually default cargo check to gkrust when invoked without any crate arguments. r=froydnj
MozReview-Commit-ID: JIgippNiBP

--HG--
extra : rebase_source : 256682c3664ac14ddb7a7cf5cf0089e8612ac022
2018-01-22 12:40:28 -05:00
Mike Hommey
a9e5e80cfd Bug 1431193 - Use taskgraph.parameters.load_parameters_file in mach artifact toolchain. r=dustin
Back when the mach artifact toolchain code was written, there was no
official way to get a default set of parameters for taskgraph
generation. As of bug 1401199, that is not true anymore, so we can now
use that instead of manually set parameters and hope that doesn't break,
which happened with bug 1430823. This change should make things more
future proof.

This also reverts the changes from changeset 3a8491857651, which fixed
the same issue in a slightly different way.

--HG--
extra : rebase_source : 188446bf254551b9e7b98d51735e3026b835e76d
2018-01-18 16:24:19 +09:00
Dorel Luca
a066bff27d Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-18 11:43:47 +02:00
Mike Hommey
dbd4c4810a Bug 1428608 - Forbid / or !/ in LOCAL_INCLUDES. r=froydnj
And remove the two cases that currently set that, without actually using
it. The webrtc gtest one never relied on it, and the gfx one was added
in bug 1427668 for a single header, and the corresponding #includes were
changed in bug 1428678.

--HG--
extra : rebase_source : ebb3aed6ff8e3438d4a2f011725cf1a15986fee6
2018-01-17 17:10:20 +09:00
Gregory Szorc
e9cbe9727b Bug 1431226 - Reference proper function and allow loading hgrc; r=nalexander
This fixes a regression in 195e88aab631 (bug 1429094).

When I reviewed that changeset, I didn't realize there were callers
of the renamed function outside the file.

The other caller (changed in this commit) needs to interact with the
repository. This may require loading extensions. So we can no longer
unconditionally disable the loading of hgrc. We add an argument to
control the loading of hgrc to support this.

MozReview-Commit-ID: 8AkPhvtC1VH

--HG--
extra : rebase_source : b2bf3dcc52ac6bdeb86ea56923b9eaea0771739e
2018-01-17 14:29:13 -08:00
Tiberius Oros
0f3b1d6ace Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-18 00:28:57 +02:00
Tiberius Oros
92e228aa49 Merge inbound to mozilla-central. a=merge 2018-01-17 23:48:10 +02:00
Tiberius Oros
25b2d642db Merge autoland to mozilla-central. a=merge 2018-01-17 23:46:17 +02:00