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

1730 Коммитов

Автор SHA1 Сообщение Дата
Andrew Halberstadt 5099e76c5d Bug 1583364 - [manifestparser] Fix regression to ChunkByManifest filter. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D54369

--HG--
extra : histedit_source : 6728719847f307627f3ff10535169ee71354b14b
2019-11-22 23:27:21 +02:00
Andrew Halberstadt b483d6326c Bug 1583364 - Generate 'manifest-runtimes.json' and update mochitest harness to use it, r=gbrown
As a side-effect this will also update runtime data for all suites using
'--chunk-by-runtime'.

This change simultaneously:

1. Stores runtime data from all suites
2. Stores runtime data from all tests (no more percentile)
3. Stores distinct data for android, unix (osx/linux) and windows
4. Reduces the size of 'testing/runtimes' from 408k -> 168k

The chunks look more balanced from my unscientific glance (especially on Windows).

Differential Revision: https://phabricator.services.mozilla.com/D53702

--HG--
extra : moz-landing-system : lando
2019-11-22 19:23:17 +00:00
Andrew Halberstadt a1d66863ae Bug 1583364 - Create a 'build_flavor' key mapping 'moztest.resolve.TEST_SUITES' to their build flavor, r=gbrown
Build flavors are defined in 'python/mozbuild/mozbuild/testing.py'.

This change is needed by D52729 but it's also a good way to tell which suites
are integrated into the TestManifestBackend in the build system. So I'm landing
it here instead.

Depends on D53030

Differential Revision: https://phabricator.services.mozilla.com/D53698

--HG--
extra : moz-landing-system : lando
2019-11-19 00:30:21 +00:00
Gregory Mierzwinski 9d477bcb3a Bug 1597975 - Fix manifestparser in python 3 r=ahal
This patch fixes a minor issue with manifestparser when it is used in python 3. The problem was that dict.items() returns a generator in python 3 instead of a list.

Differential Revision: https://phabricator.services.mozilla.com/D53953

--HG--
extra : moz-landing-system : lando
2019-11-20 20:33:23 +00:00
Bob Clary 5f979fe576 Bug 1597317 - bump mozdevice to version 3.0.6, r=gbrown.
Differential Revision: https://phabricator.services.mozilla.com/D53669

--HG--
extra : moz-landing-system : lando
2019-11-18 18:02:18 +00:00
Edwin Takahashi 691d1901bc Bug 1428711 - add python3 compatibility to moznetwork r=ahal
Changes:
- rename `test.py` to a more descriptive `test_moznetwork.py` and change associated names in the manifest
- added `r` specifier to strings as per PEP warning
- bump version to 1.0.0 pending release to pypi

Differential Revision: https://phabricator.services.mozilla.com/D52107

--HG--
extra : moz-landing-system : lando
2019-11-15 22:45:12 +00:00
Mike Hommey 87b77cda38 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-15 13:14:42 +00:00
Ciure Andrei 70b54837ac Backed out changeset 7a28c229e654 (bug 1594998) for causing bustages CLOSED TREE 2019-11-15 03:26:34 +02:00
Mike Hommey 63489b5491 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-15 00:21:32 +00:00
Gurzau Raul f4fadbbe04 Backed out changeset 4cf8f3f89042 (bug 1594998) for xpcshell failures at test_crash_rust_panic.js on a CLOSED TREE. 2019-11-14 03:52:52 +02:00
Mike Hommey f33a622429 Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj,jandem
This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
2019-11-13 22:07:08 +00:00
Edwin Takahashi c43a1bb5e8 Bug 1595220 - streamline and sanitize output of distro/platform linux_distribution call in mozinfo r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D52440

--HG--
extra : moz-landing-system : lando
2019-11-13 19:42:41 +00:00
Cosmin Sabou ec14bf90ea Backed out changeset 4b4f0fb8292c (bug 1595220) for several reftest failures. 2019-11-13 06:59:07 +02:00
Edwin Takahashi 87cd6febcd Bug 1595220 - streamline and sanitize output of distro/platform linux_distribution call in mozinfo r=jmaher
Simplified and streamlined the logic in the Linux side of things, to address 1595147.

Only attempt to import and use either `platform` or `distro`, not both.

Perform sanitization of the output string since `distro.linux_distribution()` has a slightly different output than the `platform` equivalent.

Minor version bump to 1.2.1 denoting a bugfix for release to pypi.

Differential Revision: https://phabricator.services.mozilla.com/D52440

--HG--
extra : moz-landing-system : lando
2019-11-12 19:23:31 +00:00
Andrew Halberstadt 418f34f9f7 Bug 1583353 - [moztest.resolve] Add ability to resolve manifest paths, r=gbrown
While not strictly necessary for this series, this patch allows:
./mach test path/to/manifest.ini

Which will be especially useful to have now that we are switching to running
tasks by manifest.

Depends on D52241

Differential Revision: https://phabricator.services.mozilla.com/D52242

--HG--
rename : testing/mozbase/moztest/tests/data/srcdir/apple/mochitest.ini => testing/mozbase/moztest/tests/data/srcdir/apple/a11y.ini
extra : moz-landing-system : lando
2019-11-08 16:01:28 +00:00
Andrew Halberstadt 64c3a4f64d Bug 1583353 - [moztest.resolve] Add ability to resolve only tests *without* a subsuite, r=gbrown
This gives us the ability to retrieve all browser-chrome tests (no flavor) but
not devtools-chrome (have a flavor).

Differential Revision: https://phabricator.services.mozilla.com/D52241

--HG--
extra : moz-landing-system : lando
2019-11-08 16:04:27 +00:00
Andrew Halberstadt a3466c3c3c Bug 1583353 - [manifestparser] Support manifests in the 'pathprefix' filter, r=egao
Allows 'paths' passed into the pathprefix filter to be manifests. Any path that
ends with '.ini' is considered a manifest.

Depends on D51899

Differential Revision: https://phabricator.services.mozilla.com/D51900

--HG--
extra : moz-landing-system : lando
2019-11-08 18:58:09 +00:00
Andrew Halberstadt 746c6aaf3a Bug 1583353 - [manifestparser] Convert test_filters.py to the pytest format, r=egao
Differential Revision: https://phabricator.services.mozilla.com/D51899

--HG--
extra : moz-landing-system : lando
2019-11-08 18:58:34 +00:00
Andrew Halberstadt 99f6a2c376 Bug 1583353 - [moztest.resolve] Implement a TestLoader that doesn't rely on the build system, r=gbrown
This loader uses 'reader.find_variables_from_ast' to parse all *_MANIFESTS variables from
moz.build files using the abstract syntax tree. This means it will find all such variables
regardless of the current buildconfig.

Differential Revision: https://phabricator.services.mozilla.com/D51834

--HG--
extra : moz-landing-system : lando
2019-11-06 17:13:20 +00:00
Andrew Halberstadt fc9cc8ceed Bug 1583353 - [moztest] Simplify the test data in test_resolve.py, r=egao
Test test data looks like it was pulled from a live all_tests.pkl file. There
are way more path components than necessary.

This simplifies the test paths so they are easy to manipulate/add/inspect. It
will also make it easier to craft a fake "sourcedir" to test the
TestManifestLoader in the next commit such that the data from both matches.

I decided to use a fruit theme for directories because:

1. Using real directories will pollute grep/searchfox/etc queries with junk.
2. Using a 'dirA', 'dirB', 'dirC' scheme is hard to read.
3. Why not?

This change does not functionally modify what is being tested.

Depends on D51832

Differential Revision: https://phabricator.services.mozilla.com/D51833

--HG--
extra : moz-landing-system : lando
2019-11-05 19:37:33 +00:00
J.C. Jones cbfe5fd32a Bug 1594559 - Set env var NSS_MAX_MP_PBE_ITERATION_COUNT for tests r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D52212

--HG--
extra : moz-landing-system : lando
2019-11-12 15:40:24 +00:00
Edwin Takahashi 16d5d677ce Bug 1212502 - bump mozinfo version up to 1.2.0 in preparation for upload to pypi r=gbrown
When I updated the dependencies and the `mozinfo.py` code I forgot to bump up the version denoting some changes. This will bump up the version from 1.1.0 to 1.2.0 and permit me to upload a new version to pypi.

Differential Revision: https://phabricator.services.mozilla.com/D51898

--HG--
extra : moz-landing-system : lando
2019-11-05 21:19:39 +00:00
Andrew Halberstadt d8dbe1133d Bug 1593360 - Version bump mozdebug to 0.2.0, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D51819

--HG--
extra : moz-landing-system : lando
2019-11-05 14:19:19 +00:00
Cosmin Sabou ac32e977d8 Backed out changeset ea612d6aa75b (bug 1585456) for causing regressions (Bug 1593351,1587387,1583680). 2019-11-01 23:22:05 +02:00
Andrew Halberstadt 241303e38f Bug 1583353 - [moztest] Use a fixture to generate the test data in test_resolve.py, r=egao
I'm making this refactor now because a future commit is going to completely re-write the
test data (so that it matches the data that a future TestManifestLoader is going to use).

With this method, updating the data will be a lot less tedious.

Differential Revision: https://phabricator.services.mozilla.com/D51278

--HG--
extra : moz-landing-system : lando
2019-11-01 20:13:35 +00:00
Andrew Halberstadt a7bb490dc3 Bug 1583353 - [moztest] Convert test_resolve.py to the pytest format, r=egao
Depends on D51174

Differential Revision: https://phabricator.services.mozilla.com/D51175

--HG--
extra : moz-landing-system : lando
2019-10-31 14:43:56 +00:00
Florin Strugariu 85629f9e1e Bug 1585456 - [mozproxy] Error out when mozproxy can't bind to port r=tarek,perftest-reviewers,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D50594

--HG--
extra : moz-landing-system : lando
2019-11-01 09:41:36 +00:00
Gregory Mierzwinski 8fd3e10993 Bug 1578487 - Add frequency and watts metric to mozpower IPG output. r=stephendonner
This patch adds GPU and CPU clock frequencies as well as Watts used to the metrics that are gathered into perfherder from mozpower.

Differential Revision: https://phabricator.services.mozilla.com/D50522

--HG--
extra : moz-landing-system : lando
2019-10-31 15:59:10 +00:00
Nathan Froyd 78ea1e07d0 Bug 1592971 - handle starting the android emulator from non-topsrcdir; r=gbrown
Other places take care to handle this case, but not running the tooltool
script.  Let's fix that.

Differential Revision: https://phabricator.services.mozilla.com/D51266

--HG--
extra : moz-landing-system : lando
2019-10-31 14:09:53 +00:00
Edwin Takahashi 128ef1e636 Bug 1212502 - Switch mozinfo to using the 'distro' package to get linux distribution info r=ahal,KWierso
Differential Revision: https://phabricator.services.mozilla.com/D49366

--HG--
extra : moz-landing-system : lando
2019-10-30 20:42:50 +00:00
Andrew Halberstadt 930fe5fab6 Bug 1591512 - [moztest.resolve] Fix bug where loaded wpt tests were being overwritten r=automatedtester
Differential Revision: https://phabricator.services.mozilla.com/D50649

--HG--
extra : moz-landing-system : lando
2019-10-25 19:41:50 +00:00
Philip Jägenstedt 9bca24019b Bug 1589056 - [mozprofile][mozrunner][mozrunner] bump minor versions r=jgraham
This is needed because the currently released versions use dependencies
like 'mozlog ~= 4.2.0', which won't match the newly released mozlog 5.0.
The dependencies were updated to 'mozlog >= 5.0' recently:
https://hg.mozilla.org/mozilla-central/rev/753beb12fdf6984c0a2ca8786fb9db1317e171b4

Differential Revision: https://phabricator.services.mozilla.com/D50595

--HG--
extra : moz-landing-system : lando
2019-10-25 13:15:01 +00:00
Sylvestre Ledru ba7c03e388 Bug 1590310 - Hide the copyright section by default r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D50028

--HG--
extra : moz-landing-system : lando
2019-10-22 17:37:38 +00:00
Philip Jägenstedt 21b473eac4 Bug 1589056 - [mozlog] Update mozlog version number to 5.0 r=jgraham
This is needed to release a new mozlog with the PRECONDITION_FAILED
test and subtest status for use in web-platform-tests.

Update all in-tree dependencies on mozlog to >=5.0. These were found
with `hg grep 'mozlog.*[0-9]'`.

Only testing/web-platform/tests/tools/wptrunner/requirements.txt
remains on 4.2.0, and it will be updated in upstream wpt after mozlog
5.0 has been released.

Differential Revision: https://phabricator.services.mozilla.com/D50456

--HG--
extra : moz-landing-system : lando
2019-10-24 14:12:32 +00:00
Philip Jägenstedt d51b560efd Bug 1589056 - [mozlog] tests for PRECONDITION_FAILED status r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D50200

--HG--
extra : moz-landing-system : lando
2019-10-24 08:34:05 +00:00
Philip Jägenstedt bd199f39ce Bug 1589056 - [mozlog] introduce PRECONDITION_FAILED status r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D50175

--HG--
extra : moz-landing-system : lando
2019-10-24 08:34:35 +00:00
Andrew Halberstadt 2a03d935f5 Bug 1590680 - [moztest.resolve] Fix edge case where puppeteer/wpt manifest data is requested before the main tests, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D50207

--HG--
extra : moz-landing-system : lando
2019-10-23 14:09:52 +00:00
Razvan Maries a5f7ecde59 Backed out 2 changesets (bug 1589056) for lint failure on test_formatters.py. CLOSED TREE
Backed out changeset 6bd10819c814 (bug 1589056)
Backed out changeset 4253a2fb8848 (bug 1589056)
2019-10-23 15:48:39 +03:00
Philip Jägenstedt 312d02c6c1 Bug 1589056 - [mozlog] tests for PRECONDITION_FAILED status r=jgraham
Depends on D50175

Differential Revision: https://phabricator.services.mozilla.com/D50200

--HG--
extra : moz-landing-system : lando
2019-10-23 12:34:13 +00:00
Philip Jägenstedt d1054d01d7 Bug 1589056 - [mozlog] introduce PRECONDITION_FAILED status r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D50175

--HG--
extra : moz-landing-system : lando
2019-10-23 12:35:09 +00:00
Andrew Halberstadt e9369fc3d9 Bug 1583353 - [moztest.resolve] Move everything from TestMetadata into the TestResolver class (except the load_tests function) r=gbrown
Previously there was a somewhat strange setup where we had both TestResolver
and TestMetadata classes. Both had 'resolve_tests' function and the separation
of concerns between the two were not clear.

With this change, all of the logic that is related to manipulating and
resolving the loaded tests has been moved to the TestResolver class. Also, the
TestMetadata class has been renamed to TestLoader, and it is solely responsible
for loading the metadata (from the build backend).

Future commits will add other types of TestLoaders.

Differential Revision: https://phabricator.services.mozilla.com/D49768

--HG--
extra : moz-landing-system : lando
2019-10-22 14:31:50 +00:00
Andrew Halberstadt d7fb00cbc4 Bug 1583353 - [moztest.resolve] Move test_rewrites to a class property r=gbrown
A minor cleanup. Re-write paths will now automatically be joined to
self.topobjdir.

Depends on D49766

Differential Revision: https://phabricator.services.mozilla.com/D49767

--HG--
extra : moz-landing-system : lando
2019-10-21 19:22:05 +00:00
Andrew Halberstadt 48488f8138 Bug 1583353 - [moztest.resolve] Use MozbuildObject.mozbuild_reader to resolve outgoing files r=gbrown
Similar to the vcs change, the MozbuildObject already has a reader attribute
available. So we can re-use that instead of creating our own.

Depends on D49765

Differential Revision: https://phabricator.services.mozilla.com/D49766

--HG--
extra : moz-landing-system : lando
2019-10-21 19:26:08 +00:00
Andrew Halberstadt 79bb28fefb Bug 1583353 - [moztest.resolve] Move all mozbuild backend logic into the TestMetadata class r=gbrown
Encapsulates all the logic around generating and loading the build backend
metadata on the TestMetadata class. Previously the TestResolver would trigger
the generation if necessary, and TestMetadata would load it. Now both
generation and loading happens in TestMetadata.load_tests.

This change also adds some convenience properties to make it easier to query
the loaded data.

Differential Revision: https://phabricator.services.mozilla.com/D49765

--HG--
extra : moz-landing-system : lando
2019-10-21 21:36:08 +00:00
Andrew Halberstadt ca37f985b6 Bug 1583353 - [moztest.resolve] Create an 'is_puppeteer_loaded' flag r=gbrown
This prevents us from adding the puppeteer tests over and over again. It
follows the wpt example.

Differential Revision: https://phabricator.services.mozilla.com/D49790

--HG--
extra : moz-landing-system : lando
2019-10-21 19:24:06 +00:00
Andrew Halberstadt fb84f5763d Bug 1583353 - [moztest.resolve] Use 'MozbuildObject.repository' in the TestResolver class r=gbrown
Since TestResolver is a subclass of MozbuildObject, there's no need to create
separate repository object. It already has one.

Depends on D49761

Differential Revision: https://phabricator.services.mozilla.com/D49764

--HG--
extra : moz-landing-system : lando
2019-10-21 14:20:10 +00:00
Andrew Halberstadt d59b14c3fa Bug 1583353 - [moztest.resolve] Remove unused 'tests_with_flavor' function from metadata class r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D49761

--HG--
extra : moz-landing-system : lando
2019-10-21 14:17:25 +00:00
Dorel Luca 3d43b20c77 Backed out changeset ca117d13ca06 (bug 1212502) for Windows 2012 build bustage. CLOSED TREE 2019-10-22 20:53:27 +03:00
Wes Kocher 49fba76f39 Bug 1212502 - Switch mozinfo to using the 'distro' package to get linux distribution info r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D49366

--HG--
extra : moz-landing-system : lando
2019-10-22 17:33:13 +00:00
Chris Manchester 079c3c1179 Bug 1587715 - Fix TypeError when submitting build telemetry without cpu_percent present. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D49342

--HG--
extra : moz-landing-system : lando
2019-10-16 04:01:26 +00:00