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

5124 Коммитов

Автор SHA1 Сообщение Дата
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
Gregory Szorc 6e1b34b341 Bug 1390693 - Move S3 upload logic to standalone module; r=dustin
We try to keep mach_commands.py files as minimal as possible.

MozReview-Commit-ID: I4kvZtDjqGd

--HG--
extra : rebase_source : 7b0af45661fc2a8b0b906a569aa95df7d3e0513b
2017-08-24 10:49:28 -07:00
Gregory Szorc 4b1e2d4a2e Bug 1390693 - Generate docs archive within mach command; r=dustin
By using mozpack, we get deterministic archives. This also makes the
task command simpler.

MozReview-Commit-ID: EPI7tuGQuso

--HG--
extra : rebase_source : babcbf3d5607480321106b40eaa4598c0faee188
2017-08-24 10:37:53 -07:00
Gregory Szorc 4b8b2afa13 Bug 1390693 - Use separate variable for the base output directory; r=dustin
An upcoming commit will want to put something outside the
format-specific output directory.

MozReview-Commit-ID: 2kYDREddpN

--HG--
extra : rebase_source : 28454f71b3abbd094048edb568b4f5e8d50881d8
2017-08-24 10:31:41 -07:00
Gregory Szorc cb3bd6045c Bug 1390693 - Indent code to make linter happy; r=dustin
I didn't fix all violations in this file. Something is better than
nothing.

MozReview-Commit-ID: BDdWhJfkPVk

--HG--
extra : rebase_source : caa0a5908c2cb37b8cbb1c5ee004d43e3a0b883a
2017-08-24 10:11:55 -07:00
Wes Kocher 7ea5ed6e6a Merge m-c to autoland, a=merge
MozReview-Commit-ID: LEKykpTAKjv
2017-08-25 17:32:33 -07:00
Wes Kocher 68149d6a59 Merge inbound to central, a=merge
MozReview-Commit-ID: 3N9jinnrmjb
2017-08-25 16:21:57 -07:00
Zibi Braniecki c5a354a1d6 Bug 1393928 - Expose intl/l10n .jsm APIs explicitly. r=mossop
MozReview-Commit-ID: Z57nlQJnQT

--HG--
extra : rebase_source : 5b6e5e804a14eef7847dfa1aada4588d401a43f6
2017-08-25 12:59:18 -07:00
Bill McCloskey f90a87caa9 Bug 1350432 - Initial Quantum DOM scheduler implementation, disabled by default (r=froydnj)
MozReview-Commit-ID: JWBxz3bwgwD
2017-08-25 10:28:23 -07:00
Axel Hecht 0951bf52a9 bug 1385227, generate full update from l10n-stage directly, r=rail
For regular builds, we build the mar from an unpackaged exe on windows.
For repacks, we just built that from our l10n-stage directory,
don't unpack again.

MozReview-Commit-ID: 8gQ9G23RgzB

--HG--
extra : rebase_source : 3d9289cee054737c136b304682563d59aeaecb6a
2017-08-22 15:27:51 +02:00
Dan Banner f1eb5aaa84 Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8
MozReview-Commit-ID: JOC1330iFnh

--HG--
extra : rebase_source : 2afcb219d4a0d78f996bdc2c841456d2dccff605
2017-08-23 13:38:24 +01:00
Andrew Halberstadt f3a31869bb Bug 1393509 - Fix artifact builds on windows with |mach try fuzzy|, r=dustin
MozReview-Commit-ID: Fo3WzFEdLUF

--HG--
extra : rebase_source : f52c2e19bdad6e28ded106cfcdc64f3464281d54
2017-08-24 12:30:40 -04:00
Markus Stange 88bdb191e3 Bug 1393123 - Don't attempt to dispatch a runnable before the main thread is known to the thread manager. r=billm
MozReview-Commit-ID: FO2tDQJBGAl

--HG--
extra : rebase_source : 7bb73064a706b4c42263bfe62dc4738fe2f176fc
2017-08-23 13:36:42 -04:00
Wes Kocher e8f7cc0bb3 Backed out 2 changesets (bug 1392787) for build bustage a=backout CLOSED TREE
Backed out changeset 2ce8a387fa80 (bug 1392787)
Backed out changeset bf5a6ff97a8f (bug 1392787)

MozReview-Commit-ID: 2cA5bdnNDIe
2017-08-24 14:00:42 -07:00
Andrew Halberstadt b24f01064e Bug 1392787 - Add a linter to prevent comment-disabling tests in manifestparser manifests, r=jmaher
MozReview-Commit-ID: LG47ASBMA17

--HG--
extra : rebase_source : df925b5d234a889bfb472eb33a3204465aa64f79
2017-08-23 09:33:18 -04:00
Andrew Halberstadt 8c19582e1b Bug 1390969 - [tryselect] Add ability to save and load presets to |mach try fuzzy| r=jgraham
This also prints the last known query used in the commit message. This won't be accurate as
users can delete + enter multiple queries in a single session, but will give users a slightly
better idea of what was scheduled by glancing at the commit message.

MozReview-Commit-ID: 93FbEmMvd9t

--HG--
extra : rebase_source : fc09dd145a5e88e5bb77e4e483552b579e90f3ca
2017-08-24 11:04:56 -04:00
Andrew Halberstadt 9e440c1a44 Bug 1390969 - [tryselect] Pull presets handling out of the 'syntax' selector r=jgraham
MozReview-Commit-ID: KmXRj8TBvYK

--HG--
extra : rebase_source : 68974fcc3216aeb481690de1a6ee905735a3b3b7
2017-08-17 11:14:07 -04:00
Wes Kocher fb8abb94c7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07:00
Eric Rahm a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
Mark Banner a53020d022 Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop
MozReview-Commit-ID: 35MaseieNUk

--HG--
extra : rebase_source : 98eaec6a67fd3b30ea6b0be641f26c3911012fab
2017-08-20 18:52:05 +01:00
Mark Banner a9005029b6 Bug 1392098 - Add an ESLint rule to avoid unnecessary run_test() functions. r=mossop
MozReview-Commit-ID: pbXjamX4bk

--HG--
extra : rebase_source : cc506d08e7d47e75464ca7f07bd3ef323184270d
2017-08-18 21:49:44 +01:00
Rok Garbas f3a3affcf2 Bug 1284475 - migrate ToolTool blueprint to new codebase of relengapi r=KWierso
UPGRADE_NSS_RELEASE a=kaie
MozReview-Commit-ID: 7CB1VYb8OJP

--HG--
extra : rebase_source : 04751620add813cd1780898d109d9f7fa89d7b2d
2017-08-08 10:55:52 +02:00
Andrew Halberstadt a4a6ffdd99 Bug 1391675 - [tryselect] Add a test for 'mach try fuzzy' and associated task, r=gps
Basic test to get the ground work laid out.

MozReview-Commit-ID: LmjA3Kq7xKN

--HG--
extra : rebase_source : c32e1954b6b5b88c825075c64c8b9993be3035c6
2017-08-21 11:52:28 -04:00
Andrew Halberstadt dd95aa68cc Bug 1391675 - [tryselect] Move --no-push into common arguments, r=armenzg
The main motivation behind this change is to make testing easier, so e.g:
./mach try fuzzy --no-push
and
./mach try syntax --no-push

both work the same way.

MozReview-Commit-ID: LmjA3Kq7xKN

--HG--
extra : rebase_source : 49beb7e1ae0f7502966ebadc4d9c37cae4357df4
2017-08-21 13:14:31 -04:00
Andrew Halberstadt 60a3f8a31c Bug 1391675 - [tryselect] Make main command and all subcommands use the same argument parser, r=armenzg
This will give us a good way to share arguments between subcommands.

MozReview-Commit-ID: KmXRj8TBvYK

--HG--
extra : rebase_source : 9ff275af226cfe65697b980d1b19f9ca9e1dad5f
2017-08-17 11:13:50 -04:00
Gregory Szorc ad141eef1b Bug 1392886 - Expose repository type as an instance property; r=mshal
This will remove the need to sniff class types. The 1 in-tree
consumer doing this has been converted.

MozReview-Commit-ID: I8cUa8J54VE

--HG--
extra : rebase_source : 4c24adaf7eb9d62678ac78604e819a7376d4073b
2017-08-22 20:04:55 -07:00
Kris Maglione b744ab0807 Bug 1384714: Use subscript loader to load browser.xul scripts. r=Mossop
There's a lot of overhead to loading scripts from <script> tags in
browser.xul. They're loaded asynchronously, and can't begin loading until
after we begin loading browser.xul. They're loaded using off-main-thread
compilation, which means we need to create and merge a new JS zone for each
script we load that way. They don't benefit from the startup cache at all.

If we load those scripts using the subscript loader, they're loaded from the
preloader cache, and begin loading as early as possible. And they're all
loaded into a single off-thread zone, which means there are less zones to
create and merge. From a quick test, this seems to save about 20-40ms on
Windows ts_paint talos runs.

The main downside is that subscript loader scripts don't benefit from lazy
parsing, so we might wind up increasing memory usage if most of the functions
in those scripts aren't used very often. But we should hopefully be able to
fix that by migrating more browser JS to lazy loading.

MozReview-Commit-ID: Lozb0d0QweC

--HG--
extra : rebase_source : 069a003dfd1d6d66540da814a1fd19742c4fca26
extra : amend_source : b93e0ef7b320c99f4a27ddf6e8af6a681b6dba0f
2017-07-25 20:56:37 -07:00
Sebastian Hengst de6f7dc3a1 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-08-25 13:21:40 +02:00
Andrew Halberstadt 115f346cd8 Bug 1392795 - [yamllint] Group paths to lint by their closest config and run each config group separately, r=dustin
This makes configuration files for yamllint work a bit better. It's still not perfect, but it's an improvement
on the current situation.

MozReview-Commit-ID: IKxgQm1a7bP

--HG--
extra : rebase_source : 051fafe21337f0557ee39ec71c90e74fd61d3da7
2017-08-23 11:28:28 -04:00
Andrew Swan 0d04113341 Bug 1393162 Re-sign quitter.xpi as privileged r=ryanvm
MozReview-Commit-ID: 8u2Ebi4VhAf
2017-08-24 22:34:02 -07:00