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

107 Коммитов

Автор SHA1 Сообщение Дата
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
Gregory Szorc de71bdab2d Bug 1397406 - Use BuildReader helper in `mach test`; r=dustin
Now that we have a helper function to obtain a BuildReader, let's
put it to use.

MozReview-Commit-ID: 7V3RsWs5TPu

--HG--
extra : rebase_source : 23193a1482ebb2fc4d1bdc588d8cd31c4d458645
2017-09-06 12:26:15 -07:00
Andrew Halberstadt d3806e8077 Bug 1289444 - Forward extra arguments in |mach test| to the underlying test commands, r=chmanchester
MozReview-Commit-ID: 631K2n0wB1a

--HG--
extra : rebase_source : d5aa8c59e16e811915ff24100fd1fe7a49604304
2017-08-29 16:20:47 -04:00
Andrew Halberstadt 67e137395b Bug 1311991 - Add a basic cramtest mach command, r=gps
This is a pretty bad runner. My goal for now is to get something really
basic working and then improve it over time as more tests get added.

Run tests with:
./mach cramtest path/to/dir

Any extra args will be forwarded to the cram binary, e.g:
./mach cramtest -i path/to/dir

Cram help can be seen with:
./mach python -m cram -- -h

MozReview-Commit-ID: 67jYHfYQjWu

--HG--
extra : rebase_source : 1ee1dc5ddcdc4559402be019996bd757afe824ab
2017-01-20 11:15:25 -05:00
Andrew Halberstadt 57303dc36f Bug 1311991 - Add testing/mach_commands.py to flake8 linter, r=gps
This was mostly generated with autopep8 v1.3.2. A few left over errors
were fixed by hand.

MozReview-Commit-ID: 5crfUz0xj3O

--HG--
extra : rebase_source : 1fa9f550dbdca35ce4f2d8f9848dc3061b7fe01b
2017-08-17 15:50:39 -04:00
Gregory Szorc a9bab5de7c Bug 1384665 - Use virtualenv Python in `mach check-spidermonkey`; r=jimb
Recent changes in bug 1377216 introduced some new Python imports
to some SpiderMonkey test scripts. These modules likely won't be on
sys.path by default.

To ensure these Python processes always work, this commit changes
them to be executed with the Python binary from the build system's
virtualenv.

In the case of jit_test.py and jstests.py, we switch from relying on
the shebang Python (`/usr/bin/env python`). In other cases, we switch
from mach's python (essentially `which python2.7` or `python`).
Previously, some clients may have been using Python 3 via shebang
discovery. This change will force them to Python 2. This might be
unfortunate. But proper Python 3 support in mach and the build system
is a bit of a mess right now. I'd rather we just consistently use
the virtualenv Python because it is more well-defined and it
eliminates a class of bugs around the Python environment being
undefined.

MozReview-Commit-ID: 4NHzWisIgDC

--HG--
extra : rebase_source : cb79fe457daf7780aabcef902718429fdd5072a5
2017-07-26 18:02:51 -07:00
Andrew Halberstadt 88348cfd21 Bug 1382775 - Move testing/tools/autotry to tools/tryselect/selectors/syntax.py, r=chmanchester
The |mach try| implementation isn't really testing specific so figured while doing this refactor
anyway we could take the opportunity to move it to /tools. This renames the "autotry" module to
"syntax" as one of the 'selectors' under the newly created tryselect module.

MozReview-Commit-ID: DmnGU5sKuCk

--HG--
rename : testing/tools/autotry/autotry.py => tools/tryselect/selectors/syntax.py
extra : rebase_source : 52f2a61d97107b8d50e3894ea0f5cd9c24d4108d
2017-07-17 21:36:23 -04:00
Geoff Brown adeec452ba Bug 1371833 - In 'mach test-info', use posix paths for queries; r=jmaher 2017-06-21 13:59:28 -06:00
Andrew Halberstadt a3a1865e5a Bug 1368438 - Add -j to mach try, r=chmanchester
The -j try syntax specifies a "job" task. Job tasks are different from
unittests in that they typically don't require a build and run from the
source tree. Examples include linters (eslint, flake8, etc), python tests
(mozbase, mochitest, etc) and misc things like doc generation.

Sometimes, developers might only want to run a specific "job" task with a
syntax like "./mach try -j mozbase".

This means a few assumptions need to be broken in |mach try|. Platforms
and unittests should no longer be required if -j was specified. Most of
the changes in this patch revolve around dealing with those broken
assumptions.

MozReview-Commit-ID: O0y6V2Wwej

--HG--
extra : rebase_source : d003380317cbb688fcc7113c454a5c0543ade40c
2017-06-15 08:14:22 -04:00
Andrew Halberstadt 556a61bdeb Bug 1368438 - Make it possible to only schedule builds with |mach try|, r=chmanchester
Currently if no unittests, paths or tags are specified it will error out.

MozReview-Commit-ID: O0y6V2Wwej

--HG--
extra : rebase_source : e7a438aa1131e3d473459c46fbe9f23c3c06bae1
2017-06-15 08:14:17 -04:00
Geoff Brown 04a5ab1720 Bug 1365621 - Allow specification of info categories for |mach test-info|; r=jmaher 2017-05-17 10:30:37 -06:00
Geoff Brown d3531a3682 Bug 1365621 - Display manifest info in |mach test-info|; r=jmaher 2017-05-17 10:30:36 -06:00
Geoff Brown 2006363898 Bug 1365621 - Allow multiple test arguments for |mach test-info|; r=jmaher 2017-05-17 10:30:34 -06:00
Geoff Brown df122d5bfa Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or used; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and test harness options like --dm_trans are eliminated.
2017-03-21 12:20:01 -06:00
Geoff Brown 54d1066977 Bug 1345572 - Enhance 'mach test-info' with total and worst failure rates; r=jmaher 2017-03-08 16:01:44 -07:00
Chris Manchester 2ef1eb0c60 Bug 1344281 - Don't accidentally require config.status when running |./mach try|. r=nalexander
MozReview-Commit-ID: Ez8GI46kv7z

--HG--
extra : rebase_source : eb1a038e57dd40940d6bd648728942e26919a5cb
2017-03-03 11:17:11 -08:00
Chris Manchester b8149e55c0 Bug 1344117 - Always print a message when adding `--artifact` to a try push automatically. r=nalexander
MozReview-Commit-ID: 7pVIG4v7DHq

--HG--
extra : rebase_source : c966d73c3d7c6f97a235ec8597076fc2ea4d95bb
2017-03-02 21:21:52 -08:00
Nick Alexander b331a50e0f Bug 1315032 - Make |mach try| set --artifact flag when --enable-artifact-builds is set. r=chmanchester
Tri-state flags: I hate them.  I don't want to default "--artifact" in
the autotry parser, since not all consumers of that code have a
mozconfig.  However, we also can't overwrite the `artifact` value from
a "--no-artifact" flag without knowing if we're changing anything.
Therefore, we add a new "--no-artifact" flag and manage the tri-state
ourselves.

MozReview-Commit-ID: 19gl3mM4YO0

--HG--
extra : rebase_source : a92e6e85f37c83402cac2d9b3327fc536553b7a9
2016-11-20 14:31:52 -08:00
Andrew Halberstadt f1ceb4a895 Bug 1342937 - Error out of |mach try| when using test paths and no build config is detected, r=chmanchester
MozReview-Commit-ID: 2RE3vc1Kxvc

--HG--
extra : rebase_source : 420482aa7603077c2fef0ecb903e127478dad3f3
2017-02-27 09:42:25 -05:00
Geoff Brown 19850b6203 Bug 1324470 - Add support for |mach test-info|; r=gps,ekyle
The test-info command provides a report of test results for a named
test on a set of branches over a time period. Test results include
a pass/fail summary, average/min/max duration, and open bugs.
Branches and time period can be modified with optional parameters.
2017-02-07 09:42:29 -07:00
Ryan VanderMeulen 48ef8de07d Bug 1263230 - Remove in-tree references to IPC/OOP reftest modes. r=ahal 2016-11-07 08:59:49 -05:00
Wes Kocher 41d2aeeed2 Backed out changeset 6c32452df00e (bug 1238305) for cpp test failures a=backout 2016-11-02 12:18:58 -07:00
Aaron Klotz 117d3269f1 Bug 1238305: Modify cppunittests to look up breakpad symbols for logged stack traces; r=ted
MozReview-Commit-ID: LnqEVRqYYFZ

--HG--
extra : rebase_source : 49cf7894832c9b1ccf63380bed89cb82cc322dfb
2016-01-12 12:58:59 -07:00
Chris Manchester 4aaad1ce55 Bug 1313716 - Don't provide a blank subsuite as a default in the manifestparser. r=ahal
This causes consumers managing defaults themselves to fail to find a default
subsuite for tests, because the manifestparser will have provided a blank
default value by the time they incorporate defaults into a test definition.
This patch removes the provided defaults and updates a number of places assuming
the 'subsuite' field is always present.

MozReview-Commit-ID: 1jPy52VmEPr
2016-10-31 10:04:42 -07:00
Kris Maglione 3a59c31923 Backed out changeset 425c0602ccb4 (bug 1313716) for breaking mach mochitest. r=backout
MozReview-Commit-ID: pTW1acQYLV
2016-10-30 19:17:13 -07:00
Chris Manchester 2de89e603a Bug 1313716 - Don't provide a blank subsuite as a default in the manifestparser. r=ahal
This causes consumers managing defaults themselves to fail to find a default
subsuite for tests, because the manifestparser will have provided a blank
default value by the time they incorporate defaults into a test definition.
This patch removes the provided defaults and updates a number of places assuming
the 'subsuite' field is always present.

MozReview-Commit-ID: 1jPy52VmEPr

--HG--
extra : rebase_source : be7a2504af6853abb1bc532a058738f33d8dcbee
2016-10-28 11:07:21 -07:00
Tooru Fujisawa fd9e045dcb Bug 1304970 - Check encoding of js.msg-like files. r=jandem,gps 2016-09-28 14:12:54 +09:00
Kim Moir 9334cbf678 Bug 1303590 - Remove Luciddream test suite r=aobreja 2016-09-23 09:20:54 -04:00
Henrik Skupin e20a8e6f48 Bug 1302364 - Include firefox-ui and puppeteer in all-tests.json, and allow to run tests via "mach test". r=gps
MozReview-Commit-ID: EwONsQSgAym

--HG--
extra : rebase_source : 4bcf4497a2af79790378ddc1bbe47712e4c0ea6c
2016-09-21 10:31:05 +02:00
Sebastian Hengst 99e7648673 Backed out changeset 1df8bde64853 (bug 1302364) 2016-09-16 11:24:29 +02:00
Henrik Skupin 3418dc5d58 Bug 1302364 - Include firefox-ui and puppeteer in all-tests.json, and allow to run tests via "mach test". r=gps
MozReview-Commit-ID: EwONsQSgAym

--HG--
extra : rebase_source : 61870a85c3f749ac3da202e08c2ba91fa87a261b
2016-09-13 17:21:52 +02:00
Chris Manchester a035970fe6 Backed out changeset efec1285a2a1 (bug 1281570) as part of the backout of bug 1258451
MozReview-Commit-ID: KaUcqC4Es6Z
2016-06-29 13:12:17 -07:00
Jared Wein 568b6e3746 Bug 1281570 - Provide recommendations to fix typos when using 'mach try'. r=chmanchester
MozReview-Commit-ID: HIx5QevA3Iy
2016-06-24 21:36:39 -04:00
Andrew Halberstadt 1bcb434a74 Bug 1243083 - Enable e10s by default when using chunk-finder, r=jgraham
MozReview-Commit-ID: NlTGwdQ2nw

--HG--
extra : rebase_source : 71587d5962eaedc79511c5c3884fabb65323560c
2016-04-01 11:03:08 -04:00
Chris Manchester a7138cfc10 Bug 1242051 - Install test files to the objdir lazily rather than with each invocation of mach. r=gps
This moves test installation for test files out of the monolithic install
manifest for $objdir/_tests, and determines the test and support files
to install based on the object derived from all-tests.json. Additionally,
the files resulting from TEST_HARNESS_FILES are installed, as some tests
will depend on them.

As a result, the time to install tests when invoking the test runner will
scale with the number of tests requested to run rather than the entire set
of tests in the tree, resulting in significantly less overhead.

MozReview-Commit-ID: LeIrUVh1yD4
2016-04-04 14:56:52 -07:00
Chris Manchester deba6c4c21 Bug 1257659 - Fix |mach try| on Windows by normalizing before comparing paths. r=mshal
We recently started posix-normalizing path separators for "topsrcdir", so
we need to posix-normalize our inputs before making comparisons.

MozReview-Commit-ID: 4qMy0swseND

--HG--
extra : rebase_source : 66503c59f8e49ac7349c3c4c49b0758f919438d8
2016-03-18 11:20:32 -07:00
Ted Mielczarek 7b1faa29bc bug 1255479 - make `mach python-tests` use TestResolver for discovery, make `mach test` work for python tests. r=nalexander
MozReview-Commit-ID: CK2Vh6gdnb0

--HG--
extra : rebase_source : 2b1b05224ade41ad500dc66116beb3b091db9cde
extra : amend_source : 349f7cc876383d873acb1c73c0118d394f39284d
extra : histedit_source : 6d1d44188bb3a4fc69da2900e8118ce2a88a5fd7
2016-03-10 12:30:10 -05:00
Myk Melez db9a40ca42 Bug 1238079 - remove the desktop web runtime; r=fabrice,mossop,gps,jryans,jmaher,marco 2016-03-07 13:33:12 -08:00
Chris Manchester a2f2f2792b Bug 1236382 - Add commonly used arguments to mach try, remove the extra arguments functionality. r=jgraham
Using nargs='*' in conjunction with nargs=REMAINDER creates an ambiguity when
the argument using nargs='*' is optional, it is not specified, and the user
intends their arguments to be interpreted as "extra" arguments. This commit
removes the nargs=REMAINDER argument for mach_try, and implements its most
common users from trychooser as a set of regular arguments to echo to
generated try syntax.

MozReview-Commit-ID: FOuDZxUfHu9
2016-01-04 14:07:11 -08:00
Wes Kocher edebbea4b6 Backed out changeset c6617c4a27b4 (bug 1238305) for android cpp failures
--HG--
extra : commitid : EuB6Kp1TqPh
2016-01-29 15:01:46 -08:00
Aaron Klotz fed7bf0616 Bug 1238305: Modify cppunittests to look up breakpad symbols for logged stack traces; r=ted
--HG--
extra : rebase_source : 61234601a1e3d7d355c61a3458fc344b616db630
2016-01-12 12:58:59 -07:00
Andreas Tolfsen b4cc1449e1 Bug 1205687 - Add Mn test flavour and include tests in build manifests; r=jgraham
--HG--
extra : rebase_source : 3757f860eefed15a06d1acd7bd0b553b306151a6
2015-09-18 14:53:37 +01:00
Chris Manchester 3142590903 Bug 1233506 - Only accept positional arguments to mach try that are directories. r=jgraham
--HG--
extra : rebase_source : ef3640736bb3426e01beff81faa97a8a617de6f6
2015-12-17 12:38:32 -08:00
Chris Manchester 3d18fb1c81 Bug 1230596 - Allow running talos on specific platforms through mach try. r=jgraham
--HG--
extra : commitid : AeckQOMrkDy
2015-12-07 15:13:03 -08:00
James Graham d3a85dd933 Bug 1216950 - Add --list to |mach try| to display saved try strings, r=chmanchester 2015-10-23 00:57:39 +01:00
James Graham f520e71b77 Bug 1210481 - Fix interaction between saved try strings and platform environment variable in mach try, r=chmanchester 2015-10-01 19:49:28 +01:00
Chris Manchester 4b117a9b12 Bug 1209188 - Add a mode to mach test to run impacted tests according to moz.build dependency info. r=ahal
This modifies the behavior of running |./mach test| with no arguments to run
tests relevant to local file changes, as specified by IMPACTED_TESTS annotations
in moz.build files relevant to the changed files.

--HG--
extra : commitid : JoRd4oSdhXY
2015-10-01 10:10:45 -07:00
James Graham b25fef4433 Bug 1210068 - Fix a problem saving mach try expressions with a space in the try syntax, r=chmanchester 2015-10-01 18:08:31 +01:00
Chris Manchester 059807dbd8 Bug 1209701 - Don't require platforms as input to |./mach try| if set in the environment. r=jgraham
--HG--
extra : commitid : amxtVwsmei
2015-09-30 16:38:20 -07:00
Chris Manchester 7bc85f9727 Bug 1184405 - Use file metadata from files changed in the current branch in mach try when no other arguments are present. r=jgraham
--HG--
extra : commitid : IS04VgBwDxE
2015-09-30 16:38:20 -07:00