Commit Graph
3669 Commits
Author SHA1 Message Date
arthur.iakab f69e2b40f6 Merge mozilla-central to inbound 2018-04-11 01:17:20 +03:00
Nika Layzell ab1b7d51dc 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 843342adc9 Bug 1447057 - Document policies for using third-party Python packages; r=gps
MozReview-Commit-ID: 8eJt84pEKlv
2018-03-19 17:53:33 +00:00
Chris Manchester d97f5518c8 Bug 1451521 - Generate built_in_addons.json in the Tup backend. r=mshal
MozReview-Commit-ID: LdYtRMopfJM
2018-04-06 14:38:05 -07:00
Chris Manchester 0a335f34d0 Bug 1451529 - Install shared libs in the Tup backend. r=mshal
MozReview-Commit-ID: Jn9Uk5XmFxJ
2018-04-04 15:28:39 -07:00
Andrew Halberstadt 1caf5b4687 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
2018-02-16 17:46:04 -05:00
Andrew Halberstadt f297ed8c8f 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
2018-03-29 14:50:17 -04:00
David Teller e959dd0d90 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
2018-04-05 15:21:17 +02:00
Andrew Halberstadt cee532cf3f Bug 1451501 - Fix error trying to run python-tests via |mach test|, r=gps,whimboo
MozReview-Commit-ID: LNedxcqQ1NC
2018-04-04 17:30:22 -04:00
Zibi Braniecki 4389d932b4 Bug 1445694 - Migrate the "Sync" section of Preferences to the new Localization API. r=flod,markh,stas
MozReview-Commit-ID: EeLV9dJ5cc5
2018-03-14 12:21:14 -07:00
Mike Shal 324addb0be 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
2018-04-03 11:30:11 -04:00
Chris AtLee b0a4906e46 Bug 1442330: Remove android old-id builds r=jlorenzo
MozReview-Commit-ID: 9o3iXM5oHQM
2018-03-29 17:19:33 -04:00
Andrew McCreight 0203f28a01 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
2018-03-05 14:27:29 -08:00
Jeff Gilbert 7cce7a6026 Bug 1444274 - Require GCC 6.1+. - r=glandium
MozReview-Commit-ID: 7alNSIhhbLI
2018-04-02 17:05:43 -07:00
Chris Manchester d12138f326 Bug 1450077 - Download rust 1.25 in mach bootstrap. r=mshal
MozReview-Commit-ID: IrU4Pzn9Iz
2018-03-30 10:16:09 -07:00
Francesco Lodolo (:flod) 5139846843 Bug 1450693 - Fix migration for containers-window-update in containers.ftl r=gandalf
MozReview-Commit-ID: L40niDNlG7D
2018-04-02 18:31:51 +02:00
Zibi Braniecki 71e0d6d34c Bug 1446180 - Migrate the "Privacy" section of Preferences to the new Localization API. r=flod,jaws
MozReview-Commit-ID: 2Hp6ZNry6dK
2018-03-15 14:57:55 -07:00
Jeff Gilbert eeed22b9af Bug 1428214 - Prune unnecessary packages from mozboot bootstrappers. - r=gps
MozReview-Commit-ID: GwNfUFFwkBQ
2018-01-04 15:51:45 -08:00
Justin Wood 08d579ba8c 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
2018-03-29 14:10:47 -04:00
Mike Shal 03e07a710a Bug 1449623 - Export MOZ_BUILD_DATE for buildid.h; r=chmanchester
MozReview-Commit-ID: HnlTcIKQwJC
2018-03-28 14:30:02 -04:00
Mike Shal 1e7d12fb46 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
2018-03-27 17:26:56 -04:00
Chris Manchester 586625c767 Bug 1382982 - Accept artifacts from autoland when performing an artifact build in automation. r=nalexander
MozReview-Commit-ID: cVd8GqSuAn
2018-03-28 11:22:34 -07:00
Geoff Lankow 4271ceff07 Bug 1444219 - Remove unnecessary call to MozbuildObject.from_environment r=froydnj
MozReview-Commit-ID: 4KP2H9HVQbG
2018-03-11 21:55:45 +13:00
Chris Manchester 2ba95a7c00 Bug 1419892 - Link programs and libraries in the tup backend. r=mshal
MozReview-Commit-ID: 26Yb0QdCn5H
2018-03-26 15:29:51 -07:00
Andi-Bogdan Postelnicu f17bff164e Bug 1447817 - correlate mach static-analysis documentation with configuration file. r=sylvestre
MozReview-Commit-ID: FB296IBeKOk
2018-03-24 13:01:04 +02:00
Chris Manchester f202da9b6b Bug 1445398 - Do not re-generate buildid.h for every Tup build. r=mshal
MozReview-Commit-ID: ErkTDOU8lYH
2018-03-22 16:03:12 -07:00
Noemi Erli 3472f3c066 Merge inbound to mozilla-central. a=merge 2018-03-23 00:53:07 +02:00
Francesco Lodolo (:flod) 79c259b5f5 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
2018-03-22 19:00:40 +01:00
David Major 3ba4f32e0b Bug 1447728 Part 1: Add CC_TYPE to mozinfo. r=ted 2018-03-22 11:40:00 -04:00
David Major f5178cb7eb Bug 1447750 - Point MACH_ERROR's URL at the new Bugzilla component r=nalexander 2018-03-21 11:09:00 +02:00
arthur.iakab 7b2ca1e285 Merge mozilla-central to autoland 2018-03-22 02:00:17 +02:00
arthur.iakab 0755cf3c0d Merge inbound to mozilla-central. a=merge 2018-03-22 01:46:39 +02:00
arthur.iakab 0911dedf1a Merge mozilla-central to inbound 2018-03-21 22:27:21 +02:00
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