Граф коммитов

5153 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot f2bfc94341 Bug 1399449 - Convert devtools/client/responsivedesign/responsivedesign.jsm to a commonjs module. r=jryans
MozReview-Commit-ID: Jl6OGUWnbHN

--HG--
rename : devtools/client/responsivedesign/responsivedesign.jsm => devtools/client/responsivedesign/responsivedesign.js
extra : rebase_source : 329c364fc4c256273b0d02a8119637aed428134c
2017-09-13 14:33:58 +02:00
Steve Armand 5934392346 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J

--HG--
extra : rebase_source : 53658c33432927f72ddce0999f18c2b7df261f6d
2017-09-07 21:15:35 -04:00
Sebastian Hengst be553422dd merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Sebastian Hengst 1fbe7771e8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GUc4LEY8qp4
2017-09-13 11:27:47 +02:00
Andi-Bogdan Postelnicu e0cb8d320b Bug 1398785 - Kill structurally dead code in NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_THIS_BEGIN generated by Coverity. r=sylvestre
MozReview-Commit-ID: AB3DLFft5aw

--HG--
extra : rebase_source : 6d51c98df43e750d8b21aa8d5de62ab1632afaba
2017-09-12 10:30:17 +03:00
Andrew Halberstadt a5c7e81ae6 Bug 1398765 - Fix directory exclusion bug in py-compat linters, r=gps
The excluded directories aren't being properly handled in the py2/py3 compat
linters. In order for FileFinder to apply the exclusions properly they need
to either be relative to or contained by the base.

This means that currently the following will work:
./mach lint -l py2 <topsrcdir>
./mach lint -l py2 testing/mochitest

But this is broken:
./mach lint -l py2 testing

This change fixes the compat linters so exclude paths will be made relative
to the FileFinder base before passing them in. Any exclude not contained by
the base is simply discarded as it won't be relevant to that FileFinder
instance anyway.

MozReview-Commit-ID: LJx97TvKlSa

--HG--
extra : rebase_source : b8f0cb20ec5a88a33c26ace699ed9216b070f443
2017-09-11 09:03:53 -04:00
Sebastian Hengst 69de1aac47 Backed out changeset ec61b7a902c2 (bug 1397855) for XPCshell bustage, at least on Android. r=backout on a CLOSED TREE 2017-09-12 21:42:12 +02:00
Steve Armand d4bfc7402c Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J

--HG--
extra : rebase_source : 1cdb7a848813a4a4872005095550b74c13ebecdf
2017-09-07 21:15:35 -04:00
Wes Kocher 05c4aba599 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 2dRRh6JLTIL
2017-09-11 15:21:36 -07:00
Wes Kocher e376f14721 Merge inbound to central, a=merge
MozReview-Commit-ID: GDeX9aPb7Fn
2017-09-11 14:41:45 -07:00
Andi-Bogdan Postelnicu 7c7699bdeb Bug 1398767 - Reformat modelling file according to Mozilla coding style. r=sylvestre
MozReview-Commit-ID: DBaSlW9kVsS

--HG--
extra : rebase_source : b2c76bec93c69e3f321e2cc9e4e5dac7f9e5171a
2017-09-11 16:48:25 +03:00
Andi-Bogdan Postelnicu 0adcdd620d Bug 1398781 - Add sanitisation for taint data in the modelling file. r=sylvestre
MozReview-Commit-ID: 9Ssqi3JNXCw

--HG--
extra : rebase_source : 0e0e7857f66a726c0f2dbe0436819fa5ca225fbd
2017-09-12 10:31:48 +03:00
Andi-Bogdan Postelnicu 1b0275dddd Bug 1398712 - update Coverity modelling file in order to support NS_PRECONDITION. r=sylvestre
MozReview-Commit-ID: 3CzHJkjrikI

--HG--
extra : rebase_source : d475beed1b2859110a23c01fced78a2a20493e48
2017-09-11 14:55:37 +03:00
Sylvestre Ledru 10aea37400 Bug 1397457 - Update mach to download clang-format 5.0 - Remove the deprecated comment r=trivial DONTBUILD 2017-09-11 10:07:50 +02:00
Kris Maglione e99cced382 Bug 1371065: Part 1 - Remove external references to the add-on SDK. r=Mossop,glandium
MozReview-Commit-ID: D5KyHcg8Ujk

--HG--
extra : rebase_source : 1a74ccb2963f2946a49c8bf720af595151b48fd1
2017-09-12 11:54:47 -07:00
Ionut Goldan f3028165fe Bug 1396217 - resolve py2 and py3 lint errors r=jmaher
MozReview-Commit-ID: LG332HzJKcw

--HG--
extra : rebase_source : b82da0cceac18f310cadf945578464c2fb4704c4
2017-09-08 11:27:26 +03:00
Chris Manchester c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Sylvestre Ledru 5c735fdea1 Bug 1397457 - Update mach to download clang-format 5.0 r=andi
MozReview-Commit-ID: EF3thvpxg6G

--HG--
extra : rebase_source : e5db9ed4ff526973eea091e3af79cd8aff2fc427
2017-09-06 23:56:34 +02:00
Sebastian Hengst ec5336561d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 3DvwIgw2ORU
2017-09-07 23:59:58 +02:00
Steve Armand 08d5fcd935 Bug 1397423 - Enable py2 linter on python/mozlint. r=ahal
MozReview-Commit-ID: 6QX7YCmfjdJ

--HG--
extra : rebase_source : 0610d67f376c462b0f103a6510f21459fc39f940
2017-09-06 22:52:46 -04:00
Sebastian Hengst 8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
Dustin J. Mitchell d7b6f0148a Bug 1397318: mozlint -l py2 for taskcluster/; r=ahal
MozReview-Commit-ID: 1ZUOrIfxQef

--HG--
extra : rebase_source : c398af2faa83812a70213679d5cb4ad0024d8f7d
2017-09-06 17:29:32 +00:00
Sebastian Hengst 9c8a09d458 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: KLssMPhSQ0O
2017-09-06 11:26:13 +02:00
Sebastian Hengst b278f15c7f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-06 00:00:04 +02:00
Cosm 917335fa1c Bug 1395956 - Update gecko.readthedocs links to the new firefox-source-docs.mozilla.org location. r=chutten 2017-09-02 22:11:02 +05:30
Mark Hammond 27afdd11e1 Bug 1396544 - don't schedule syncs when Sync isn't configured. r=rnewman
MozReview-Commit-ID: AM0G43vFyty

--HG--
extra : rebase_source : 9888cfd079f4761debb710d1bbe064956aec1093
2017-09-05 12:40:53 +10:00
Steve Armand e46ff00709 Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR

--HG--
extra : rebase_source : 5f692e474e1d7d173fcb4c9c08617f0fe489e443
2017-09-04 00:49:32 -04:00
Ralph Giles 4fa6c9dd7a Bug 1396158 - Remove pocketsphinx references from the build system. r=chmanchester
These were used by b2g and are no longer needed.

MozReview-Commit-ID: DQontDwwlJ5
2017-09-06 08:37:00 -07:00
Marco Castelluccio ebceaf00d0 Bug 1397505 - Only support dumping/resetting coverage counters with GCC builds. r=froydnj
--HG--
extra : rebase_source : c6f8662eaac48a5d6941db5e582686ce5c6b8a47
2017-09-07 00:31:03 +02:00
Markus Stange a394514101 Bug 1395524 - Use AppendFloat when converting the float interval to the env var string. r=njn
MozReview-Commit-ID: GsW9W3aJZTg

--HG--
extra : rebase_source : b283e496453f60721570a39c614b61bdeba20e79
2017-08-31 13:36:44 +02:00
Markus Stange 42a2e8caed Bug 1395524 - Add profiler log messages for invalid startup profiling env vars. r=njn
MozReview-Commit-ID: ipWVT6Jh3j

--HG--
extra : rebase_source : 6d8a32ec6770c730a11086ac4701618850c450d7
2017-08-31 13:34:51 +02:00
Mark Hammond 2dad858a21 Bug 1375635 - Add telemetry for how often and long users are in bad authentication states. r=Dexter,rweiss+418169,tcsc
MozReview-Commit-ID: BW8ixM3wmxJ

--HG--
extra : rebase_source : 6872e86fbd6ff00c4ab65ef4bf8c6195e06de54b
2017-07-27 11:59:24 +10:00
Andrew Halberstadt 3411e8b3d4 Bug 1391019 - Add py2 and py3 compatability linters, r=gps
check_compat.py was adapted from gps' check-py3-compat.py in mercurial:
https://www.mercurial-scm.org/repo/hg/file/tip/contrib/check-py3-compat.py

The py3 linter simply runs ast.parse(f) for each file being linted. Any syntax errors
are formatted as mozlint results and dumped to stdout as json. I looked into also
importing the file (using 3.5+'s importlib.util.spec_from_file_location), but there
were too many problems:

1. Lots of false positives (e.g module not found)
2. Some files seemed to run indefinitely on import

I decided to punt on importing for now, we can always investigate in a follow-up.

The py2 linter runs ast.parse(f), and also checks that the file has:
from __future__ import absolute_import, print_function

Initially every python file in the tree is excluded from the py2 check, though
at least this makes it easy to find+fix, and new files in un-excluded
directories will automatically be linted.

MozReview-Commit-ID: ABtq9dnPo9T

--HG--
extra : rebase_source : 60762937284d498514cd020b90cbfd2ba23f0b70
2017-08-31 10:12:02 -04:00
Andrew Halberstadt 3c2a0965ed Bug 1391019 - Move tools/lint/flake_/__init__.py to tools/lint/python/flake8.py, r=gps
This will allow us keep python related linting files in the same place.

MozReview-Commit-ID: ABtq9dnPo9T

--HG--
rename : tools/lint/flake8_/__init__.py => tools/lint/python/__init__.py
rename : tools/lint/flake8_/__init__.py => tools/lint/python/flake8.py
rename : tools/lint/flake8_/flake8_requirements.txt => tools/lint/python/flake8_requirements.txt
extra : rebase_source : 2568bc0bf8f4adbf8e0be73a54d5da068a8d81b0
2017-08-31 10:06:08 -04:00
Andrew Halberstadt 74afe80557 Bug 1339178 - Add python/mach_commands.py and config/mozunit.py to flake8 linter, r=davehunt
MozReview-Commit-ID: Gcsz6z8MeOi

--HG--
extra : rebase_source : 121c9007d336cecbd068075dc54d66cc06e8334e
2017-08-29 14:41:38 -04:00
Markus Stange b603ba75ee Bug 1393046 - Enable JS sampling on the main thread as soon as possible after the profiler has started. r=njn
MozReview-Commit-ID: CIj3GGI3TQo

--HG--
extra : rebase_source : 5fe72df1f0433313aefa5870a63423656005cbe8
2017-08-29 19:13:57 +02:00
Andrew Halberstadt c451dcfe84 Bug 1391075 - Add template to modify task env from |mach try fuzzy|, r=dustin
This adds a new morph template for modifying a task's env and the corresponding glue
to specify it from |mach try fuzzy|. It can be used like:

./mach try fuzzy --env FOO=1 --env BAR=baz

This will simply set those environment variables in *all* tasks. We could add the
ability to only specify it for a subset of tasks in the future, but that seems like
a hard problem that probably isn't worth it.

MozReview-Commit-ID: C4sokv886PU

--HG--
extra : rebase_source : 64c9105848e6becd33fae63aeabc3423cfda3bdf
2017-08-25 15:24:22 -04:00
Andrew Halberstadt e4dbc67d72 Bug 1395267 - [tryselect] Make default try selector used when running |mach try| without subcommands configurable, r=armenzg
To use this, create a ~/.mozbuild/machrc file and add:
[try]
default = fuzzy

Now, running |mach try| without a subcommand will default to the fuzzy selector. The syntax selector can still be
run with |mach try syntax|.

MozReview-Commit-ID: Ai6f8cW3Swq

--HG--
extra : rebase_source : 6a107478f7fbd7d8deb4882f0892963fed755b33
2017-08-30 14:45:46 -04:00
Andrew Halberstadt 2255a9eed7 Bug 1395126 - Support cascading configuration for flake8, r=bc
This allows .flake8 files to override one another, and fixes a pretty bad known
bug with our flake8 implementation. For example, say we have a .flake8 file at:
/foo/.flake8

Before this patch, if we ran |mach lint foo/bar|, the configuration defined in
that .flake8 file wouldn't get picked up. It would only work if running the
specific directory that contains it, e.g |mach lint foo|.

This change additionally allows multiple .flake8 files to be used. So if
there's one defined at both:
/.flake8
/foo/.flake8

Then running |mach lint foo/bar| will first apply the root .flake8, then the
one under /foo (overriding earlier configuration).

This bug still doesn't make flake8 configuration perfect though. Any directory
containing a .flake8 file still needs to be explicitly listed in the "include"
section of /tools/lint/flake8.yml. Otherwise in the example above, if running
|mach lint /|, it wouldn't be able to find /foo/.flake8. This is a hard problem
and is likely best solved by fixing flake8's upstream configuration handling.

Unfortunately this means we still can't switch from a whitelist to a blacklist.

MozReview-Commit-ID: 3DZAi1QHYYo

--HG--
extra : rebase_source : 51298c5847f6c2792581d9b312c87b70fa716ee1
2017-08-29 17:32:31 -04:00
Andrew Halberstadt 6cd4e21e4b Bug 1394391 - [tryselect] Split hg implementation of files_changed to a list, r=jhford
This fixes a regression from bug 1384593. I was going to add a test for this, but it would be
a better use of time to fix bug 1185599 and add a test there. We already have vcs tests in other
parts of the tree so consolidating them into a single module is likely easier than standing up
another one-off vcs tester.

MozReview-Commit-ID: E51Tb1qC9Wb

--HG--
extra : rebase_source : f957b1857d162fd229dcef0e87668dd270512cf7
2017-08-28 09:13:46 -04:00
Sylvestre Ledru d5210f24bb Bug 1389456 - Add ppapi/ to the thirdparty list r=peterv
MozReview-Commit-ID: KIcJ64Y0207

--HG--
extra : rebase_source : 57fc47deb7f056e66663bc1b7819671ff4d9a706
2017-08-11 14:03:32 +02:00
Xavier ALT f8d3bcf27f Bug 1392012 - ./clang-format with git should exclude files from .clang-format-ignore r=sylvestre
MozReview-Commit-ID: KsgPnN9aDTC

--HG--
extra : rebase_source : c7d245eae583b2c29b07f130d311a864606219a0
2017-08-24 23:41:44 +02:00
Xavier ALT 7e2ea48a18 Bug 1389956 - extract clang format diff command generation into its own method r=sylvestre
MozReview-Commit-ID: 8kbZcfMBe4J

--HG--
extra : rebase_source : 77a38c8812075c0d8258d427eb11827be51bfac1
2017-08-23 00:24:23 +02:00
Phil Ringnalda f144cb08b9 Merge m-i to m-c, a=merge
MozReview-Commit-ID: AX10UmzAEqg
2017-08-27 17:31:55 -07:00
Phil Ringnalda 5e0cb1d330 Merge m-c to m-i
MozReview-Commit-ID: 3TTO51aTTST
2017-08-26 18:20:19 -07:00
Tom Ritter ebe52d9acc Bug 1393808 Include immintrin.h under MinGW for _mm_pause() r=njn
MozReview-Commit-ID: H8dxhqk4Uai

--HG--
extra : rebase_source : a51a63709dbda9d932ed2fce36964ec26d90c4b1
2017-08-25 11:55:57 -05:00
Gregory Szorc 3bc8ec26f0 Bug 1390693 - Use thread pool for S3 uploads; r=dustin
This reduces the time taken to upload the Firefox docs from ~30s to
~5s (per invocation).

MozReview-Commit-ID: DxOrvxvVn42

--HG--
extra : rebase_source : b170fb728267c43484573e0a57ebc96512eb0e7c
2017-08-24 12:38:01 -07:00
Gregory Szorc 10773f0d43 Bug 1390693 - Upload docs to project and version specific locations; r=dustin
Previously, we uploaded the main Firefox tree docs to /.

In reality, there are multiple Sphinx projects in the repo. In
addition, it is sometimes desirable to access docs for an older
version of Firefox.

In this commit, we add support for specifying the S3 key prefix
for uploads. Then we change the upload code to upload to multiple
locations:

* <project>/latest (always)
* <project>/<version> (if a version is defined in the Sphinx config)
* / (for the main Sphinx docs project)

For the Firefox docs, ``version`` corresponds to a sanitized value from
``milestone.txt``. Currently, it resolves to ``57.0``.

While we're here, we add support for declaring an alternate project
name in the Sphinx conf.py file. If ``moz_project_name`` is defined,
we use that as the project name. For Firefox, we set it to ``main``.
This means our paths (local and uploaded) are now ``main`` instead of
``Mozilla_Source_Tree_Docs``. That's much more pleasant.

MozReview-Commit-ID: 8Gl6l2m6uU4

--HG--
extra : rebase_source : e56885092c12eb8cc76e5e7300f938be566e3e5a
extra : intermediate-source : 8509af1e135177a93460270b27f263c10a62d996
extra : source : 71b4f32caf209fe9dffc340c0b8ccb51ac79c7de
2017-08-24 11:12:21 -07:00
Gregory Szorc 17296bc970 Bug 1390693 - Fold `mach doc-upload` into `mach doc`; r=dustin
We now have an --upload flag to control whether upload is performed.

We don't inline it because we want to maintain a "firewall" between
regular docs and all the extra packages and imports needed for S3.

MozReview-Commit-ID: DVKhsS545gp

--HG--
extra : rebase_source : 7fee832145189be882db0f0ca057eda6158e0492
2017-08-24 11:31:54 -07:00
Gregory Szorc fe9d8f05f7 Bug 1390693 - Use distribution_files() for finding files to upload; r=dustin
Instead of doing the file finding inside s3_upload(), the function now
takes the output of distribution_files().

The new code is much simpler.

MozReview-Commit-ID: 43i2Alvyu5i

--HG--
extra : rebase_source : 29d840c65acec794749edfda0e47193806f387f4
extra : source : 5a758defcf2f1a17de851e703388469300789ac5
2017-08-24 11:07:10 -07:00