Commit Graph

3686 Commits

Author SHA1 Message Date
Zibi Braniecki
196f0dfb7d Bug 1419547 - Migrate the "Containers" section of Preferences to the new Localization API. r=flod,Gijs
MozReview-Commit-ID: IA3GFardEHs
2018-03-12 18:08:24 -07:00
Mike Shal
2081373b50 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
2018-03-19 20:20:24 -04:00
Nick Alexander
85cde6931f 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
2018-03-08 16:04:06 -08:00
Emilio Cobos Álvarez
1980d9800b 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
96a3c6af7f 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
365f932cec 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é
493d44cf19 Bug 1401879 - sort mach-commands output - r=gps
MozReview-Commit-ID: KgocEmTy4wR
2018-03-21 20:27:42 +01:00
Emilio Cobos Álvarez
32772a86a4 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Ted Mielczarek
982d6e6175 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
afe357106e Bug 1447632 - Make sure that TLB files are included in Windows artifact builds, r=ted.mielczarek
MozReview-Commit-ID: 6hdEqaJvuZl
2018-03-21 14:17:50 -04:00
Chris Manchester
caaa4d337f Bug 1429875 - Implement OBJ_SUFFIX overriding for the profile generation phase on linux in mozbuild. r=glandium
MozReview-Commit-ID: 8PtgxfbxuE
2018-03-20 16:44:12 -07:00
Chris Manchester
17dc4465f7 Bug 1429875 - Remove expandlibs and instead generate list files in the mozbuild backend. r=glandium
MozReview-Commit-ID: 5eLwnh1HHGj
2018-03-20 16:31:05 -07:00
Chris Manchester
074314c604 Bug 1429875 - Add a unit test for linkage variables in the make backend. r=glandium
MozReview-Commit-ID: HREobMhWTwg
2018-03-20 16:31:05 -07:00
Chris Manchester
1e094a3511 Bug 1429875 - Add a "name" property to Library and Program objects that corresponds to the output basename. r=glandium
MozReview-Commit-ID: J4gt1fGUzOa
2018-03-20 16:31:05 -07:00
Ted Mielczarek
44a6436fb8 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
589049ea6c 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
2018-02-23 08:55:06 -05:00
Andrew Halberstadt
5b723dd152 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
2018-02-23 09:02:16 -05:00
Gregory Szorc
cb9bff46a3 Bug 1446471 - Remove unused import; r=nalexander
MozReview-Commit-ID: JviugCf0TTE
2018-03-06 19:15:42 -08:00
Gregory Szorc
2f953786fe 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
2018-03-06 19:04:04 -08:00
Gregory Szorc
3a4729b3d7 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
2018-03-06 19:02:01 -08:00
Zibi Braniecki
c65f393e26 Bug 1445084 - Migrate search results pane of Preferences to Fluent. r=flod,Gijs
MozReview-Commit-ID: BNeocrSY5Fa
2018-03-12 16:27:32 -07:00
Sebastian Hengst
9aa364dc2b Bug 1445763 - Update moz.build meta data with "Firefox Build System". r=froydnj
MozReview-Commit-ID: 3FrWJ6441pe
2018-03-14 21:44:46 +01:00
Csoregi Natalia
b28ed14fe0 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
84851f7768 Bug 1415733 - Migrate the "Search" section of Preferences to the new Localization API. r=flod,Gijs a=reland
MozReview-Commit-ID: ltXNOkdnOV
2018-03-12 17:17:13 -07:00
Csoregi Natalia
5c008bfe39 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
43f71f91b6 Bug 1415733 - Migrate the "Search" section of Preferences to the new Localization API. r=flod,Gijs
MozReview-Commit-ID: ltXNOkdnOV
2018-03-12 17:17:13 -07:00
Zibi Braniecki
eaa72923c7 Bug 1445084 - Migrate search results pane of Preferences to Fluent. r=flod,Gijs
MozReview-Commit-ID: BNeocrSY5Fa
2018-03-12 16:27:32 -07:00
Jan Beich
35f6a44b65 Bug 1445193 - Use notify-send on Tier3 platforms as well. r=gps
MozReview-Commit-ID: 4ONdrhqc6zf
2018-03-13 10:29:11 +00:00
Ryan VanderMeulen
a9bb5e984f Bug 1424281 - Require Visual Studio 2017 15.6.0 and Win SDK 10.0.15063.0 to build on Windows. r=froydnj 2018-03-12 19:24:44 -04:00
Ryan VanderMeulen
39911debab Bug 1424281 - Use Visual Studio 2017 15.6.0 for Windows builds. r=froydnj 2018-03-12 19:24:44 -04:00
Nick Alexander
2c06a81614 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
2018-03-08 14:12:44 -08:00
Francesco Lodolo (:flod)
631e638d14 Bug 1444969 - Fix Fluent migration code for home-page-header r=gandalf
MozReview-Commit-ID: 4jpOLumAiRL
2018-03-12 19:45:06 +01:00
Gabriele Svelto
9a5125b73b Bug 1444881 - Make |mach bootstrap| use the latest version of Oracle's JDK when bootstrapping Fennec on Gentoo; r=nalexander
MozReview-Commit-ID: BnRJC95sSEr
2018-03-12 14:31:05 +01:00
Matt Brubeck
3b4d2a1b54 Bug 1443271 - Remove outdated comment from vendor_rust.py. r=ted
MozReview-Commit-ID: s9CnYvQcJP
2018-03-05 12:03:15 -08:00
Nick Alexander
7babbdbaf4 Bug 1443204 - Pre: Clean-up unused Android data structures in mozbuild frontend. r=chmanchester
MozReview-Commit-ID: 5ympxk0jSJq
2018-03-06 14:53:04 -08:00
Gregory Szorc
b57d898512 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
2018-03-07 15:06:21 -08:00
Gregory Szorc
1730c7016e Bug 1439727 - Add a docstring for mach clobber; r=nalexander
This makes `mach help clobber` more useful.

MozReview-Commit-ID: GsIUqhUzVGP
2018-03-07 08:49:13 -08:00
Gregory Szorc
37de93fdf1 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
2018-03-07 08:44:18 -08:00
Cosmin Sabou
cd6683bbea 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
6d97791329 Bug 1443204 - Pre: Clean-up unused Android data structures in mozbuild frontend. r=chmanchester
MozReview-Commit-ID: 5ympxk0jSJq
2018-03-06 14:53:04 -08:00
Dorel Luca
55e093dc08 Backed out changeset 5ceb1365ae75 (bug 1421734) for build Bustage on MinGW 2018-03-07 05:45:52 +02:00
Chris AtLee
66af847fa0 Bug 1421734 - Download and unpack toolchain artifacts in parallel; r=nalexander
MozReview-Commit-ID: BMe6zqIqNHP
2018-02-12 15:07:36 -05:00
Nick Alexander
fb2b5d6461 Bug 1443222 - Remove python/mozbuild/mozbuild/backend/templates. r=froydnj
MozReview-Commit-ID: FXqLPrAQpNF
2018-03-05 10:26:29 -08:00
Matt Brubeck
c2754a98c0 Bug 1381576 - Use a Cargo workspace for rust crates. r=ted
MozReview-Commit-ID: K6B9SifddXu
2018-03-01 14:33:35 -08:00
shindli
ac7d5da2a8 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
b8a0367eed Bug 1381576 - Use a Cargo workspace for rust crates. r=ted
MozReview-Commit-ID: K6B9SifddXu
2018-03-01 14:33:35 -08:00
Kevin Brosnan
94a45a26bc Kevin Brosnan - Bug 1441579 - Install ncurses-compat-libs for Fedora as part of mach bootstrap r=nalexander
MozReview-Commit-ID: 6TsufMMzjIc
2018-02-28 08:23:39 -08:00
Zibi Braniecki
3b33c316a1 Bug 1435912 - Migrate Preferences::General XUL part to the new Localization API. r=flod,jaws
MozReview-Commit-ID: J5Rr8Gc0oCx
2018-02-27 21:20:54 -08:00
Ciure Andrei
f02825885f 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
7343f0456c Bug 1435912 - Migrate Preferences::General XUL part to the new Localization API. r=flod,jaws
MozReview-Commit-ID: J5Rr8Gc0oCx
2018-01-22 15:38:06 -08:00