Commit Graph

1032 Commits

Author SHA1 Message Date
Mark Banner
8e9e4602f8 Bug 1517456 - Make Task.jsm a test-only module. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D15647

--HG--
rename : toolkit/modules/Task.jsm => toolkit/modules/tests/modules/Task.jsm
extra : moz-landing-system : lando
2019-01-04 08:41:58 +00:00
Razvan Maries
f658ebcbab Merge mozilla-inbound to mozilla-central a=merge 2018-12-20 07:04:06 +02:00
Geoff Brown
e5e351a5a2 Bug 1515189 - Consolidate ADBDevice and ADBAndroid classes; r=bc 2018-12-19 14:04:02 -07:00
Jim Blandy
b24022116e Bug 1503613: Make 'mach xpcshell-test' print the command in shell syntax. r=ted
When passed the `--verbose` flag, `mach xpcshell-test` already prints the
current directory, environment variables, and command used for the test.
However, it prints them in Python syntax. This seems like a good thing to do, as
it's a clear indication of what the test is actually doing. But if one wants to
reproduce a problem by running the xpcshell command directly, it's an
error-prone pain to convert from Python lists of strings to the Bourne shell
syntax.

Fortunately, the Python 2.7 `pipes` module has a function, `pipes.quote`, which
produces properly quoted Unix shell commands, ready to be copied and pasted into
one's terminal.

Unfortunately, the xpcshell tests still clean up the $obj/temp/xpc-plugins-FOO
directory, so this still isn't quite ready to go.

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

--HG--
extra : moz-landing-system : lando
2018-12-19 15:37:32 +00:00
Logan Smyth
4ee33b0d6d Bug 1514248 - Reimplement xpcshell test debugging using a public thread-actor API. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D14561

--HG--
extra : moz-landing-system : lando
2018-12-14 17:33:45 +00:00
Mark Banner
0304564ac7 Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 21:39:40 +00:00
Csoregi Natalia
9e970681f2 Backed out 2 changesets (bug 1415483) for multiple failures e.g. on test_message_manager_ipc.html. CLOSED TREE
Backed out changeset d00748de66fc (bug 1415483)
Backed out changeset 8dea94258f54 (bug 1415483)
2018-12-11 19:30:57 +02:00
Mark Banner
1abdc8687f Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 14:09:44 +00:00
Marco Castelluccio
8eff89e376 Bug 1488849 - Don't fail when a chunk is not running any test when the try selector is 'coverage'. r=ahal
--HG--
extra : rebase_source : 8099420cf47593ea7b38fadc8b4c5f87f791f250
2018-11-23 17:59:04 +01:00
Dragana Damjanovic
694ce65937 Bug 1507139 - Fix h2 push for esni r=bagder
Differential Revision: https://phabricator.services.mozilla.com/D11881

--HG--
extra : moz-landing-system : lando
2018-11-15 13:10:54 +00:00
Shane Caraveo
22a10e6ade Bug 1505553 add record to xpcshell tests for use in extension tests, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D11248

--HG--
extra : moz-landing-system : lando
2018-11-09 14:43:54 +00:00
Andrew Halberstadt
004519ecc4 Bug 1470266 - [ci] Schedule serviceworker-e10s xpcshell tasks with linux64/debug on mozilla-central, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D11380

--HG--
extra : moz-landing-system : lando
2018-11-08 22:08:16 +00:00
Andrew Halberstadt
4157983d1f Bug 1460914 - [xpcshell] Add --setpref to the command line, r=ted
Depends on D9796

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

--HG--
extra : moz-landing-system : lando
2018-11-08 14:50:32 +00:00
Daisuke Akatsuka
56d22dec55 Bug 1497448: Use SocketListener directly. r=ochameau,jdescottes
Depends on D10865

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

--HG--
extra : moz-landing-system : lando
2018-11-08 00:41:18 +00:00
Geoff Brown
e3b449c2d6 Bug 1503687 - Avoid python attribute errors for some infrequent xpcshell timeouts; r=jmaher 2018-11-06 15:33:47 -07:00
Andrew Halberstadt
88e52fc195 Bug 1460914 - [xpcshell] Define preferences in testing/profiles instead of testing/xpcshell/head.js, r=ted
This commit creates an empty 'base' profile because I wanted to preserve the
ability to apply a pref to all test harnesses on try. Since xpcshell doesn't
share many prefs with the other harnesses, it can't use the common profile.

So adding a pref to 'common' will apply it everywhere except xpcshell. Adding
a pref to 'base' will apply it everywhere including xpcshell. These profiles
are starting to get a bit messy, but I'd like to punt re-organizing them to a
follow-up bug.

Depends on D9716

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

--HG--
extra : moz-landing-system : lando
2018-10-26 17:47:18 +00:00
Andrew Halberstadt
203cc276de Bug 1460914 - [xpcshell] Use nsIPrefService.readUserPrefsFromFile to set prefs, r=ted
This uses nsIPrefService.readUserPrefsFromFile to set preferences from a
user.js passed in via the python harness. This allows us to use the profiles
under testing/profiles like all the other harnesses and will make setting prefs
in xpcshell easier to use and understand.

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

--HG--
extra : moz-landing-system : lando
2018-10-26 17:46:03 +00:00
arthur.iakab
18a752e5d9 Backed out 2 changesets (bug 1460914)for multiple failures on profile_data/base "CLOSED TREE"
Backed out changeset a2161aab4e4e (bug 1460914)
Backed out changeset 9e438c55a248 (bug 1460914)
2018-10-26 19:42:33 +03:00
Andrew Halberstadt
d57afd45ce Bug 1460914 - [xpcshell] Define preferences in testing/profiles instead of testing/xpcshell/head.js, r=ted
This commit creates an empty 'base' profile because I wanted to preserve the
ability to apply a pref to all test harnesses on try. Since xpcshell doesn't
share many prefs with the other harnesses, it can't use the common profile.

So adding a pref to 'common' will apply it everywhere except xpcshell. Adding
a pref to 'base' will apply it everywhere including xpcshell. These profiles
are starting to get a bit messy, but I'd like to punt re-organizing them to a
follow-up bug.

Depends on D9716

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

--HG--
extra : moz-landing-system : lando
2018-10-25 15:23:09 +00:00
Andrew Halberstadt
2dfc1e580d Bug 1460914 - [xpcshell] Use nsIPrefService.readUserPrefsFromFile to set prefs, r=ted
This uses nsIPrefService.readUserPrefsFromFile to set preferences from a
user.js passed in via the python harness. This allows us to use the profiles
under testing/profiles like all the other harnesses and will make setting prefs
in xpcshell easier to use and understand.

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

--HG--
extra : moz-landing-system : lando
2018-10-25 15:22:44 +00:00
Mike Hommey
6a291ffed1 Bug 1499915 - Use elfhack from the build for Android xpcshell tests r=froydnj
Android xpcshell tests run `elfhack -r`, and do so by using an
elfhack binary from an archive downloaded via tooltool (which contains
other things).

Instead, we just put the elfhack binary in the
target.common.tests.tar.gz archive, and make the xpcshell harness
use it from there instead, allowing to pick in-tree changes to elfhack.

Depends on D9623

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

--HG--
extra : moz-landing-system : lando
2018-10-24 13:45:50 +00:00
Andrew Halberstadt
090c1f42f6 Bug 1460914 - [xpcshell] Cleanup code to build the xpcshell command, r=ted
The current command line building is hard to follow and make sense of. Let's
just use a single command variable and comment the order it needs.

Depends on D9549

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

--HG--
extra : moz-landing-system : lando
2018-10-24 13:56:57 +00:00
Andrew Halberstadt
33ed7b49d1 Bug 1460914 - [xpcshell] Stop ignoring failures in head.js when setting prefs, r=ted
If something goes wrong when setting prefs, that's something we'll want to know
about as it likely means some tests will start to fail.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 20:46:33 +00:00
Mark Banner
ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Gregory Mierzwinski
19ecc0e49a Bug 1496791 - Disable linux64-jsdcov completely. r=jmaher
This patch removes linux64-jsdcov from the available builds on taskcluster along with any hacks used to run it. It also removes any 'coverage' entries that were added to skip tests.

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

--HG--
extra : moz-landing-system : lando
2018-10-05 21:06:25 +00:00
Edwin Gao
4c107f8236 Bug 1291335 - Check mozconfig for --disable-tests when running mach test commands r=gbrown
Behavior changes:

- instead of reading the mozconfig file, it now instantiates an instance of the build object.
- safe checking methods are used to access attributes to prevent errors on automation environment.
- better mach command parsing is performed with handler category instead of error-prone argv parsing.


Other changes:

- docstring for testing/xpcshell/runxpcshelltests.py::buildTestList() added and modernized.
- added clause that if length of tests gathered is 0, mach exits with an error code of 1.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 15:40:48 +00:00
yulia
a5898d79c0 Bug 1473513 - fix faulty path for actor-registry;
Summary: Depends on D6479

Bug #: 1473513

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

--HG--
extra : rebase_source : 2455fe48b2be756e1b5bae0b2846051ed8283a68
2018-09-26 10:11:23 +02:00
yulia
9c120b705d Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
Summary:
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

Reviewers: ochameau

Reviewed By: ochameau

Subscribers: reviewbot

Bug #: 1473513

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

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : rebase_source : 3ea4edd91ca8b09ad5e25ae01df885c587bee7b1
2018-09-26 10:06:43 +02:00
Dragana Damjanovic
9cadc84486 Bug 1473736 - Implement necko part of ESNI r=mak,kmag,mcmanus
--HG--
extra : rebase_source : be79870960953ef9535ccb6a440515ec4a8232d5
extra : histedit_source : 8096ab2eaf246cbbeb97bace0531b86b8c69ff66
2018-09-22 23:54:11 +03:00
Gurzau Raul
07d30b811f Backed out changeset dc225279994a (bug 1473736) for web platform leaks 2018-09-21 04:30:10 +03:00
Dragana Damjanovic
70e0646d75 Bug 1473736 - Implement necko part of ESNI r=mak,kmag,mcmanus
Implement necko part of ESNI

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

--HG--
extra : moz-landing-system : lando
2018-09-20 20:53:28 +00:00
Noemi Erli
efdd6a208a Backed out changeset 7aa742bff8fb (bug 1473736) for xpcshell failures and bc failures in browser_urlbarSearchSingleWordNotification.js 2018-09-18 22:07:58 +03:00
Dragana Damjanovic
f000a5b4b0 Bug 1473736 - Implement necko part of ESNI r=mcmanus
Implement necko part of ESNI

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

--HG--
extra : moz-landing-system : lando
2018-09-17 23:08:14 +00:00
Mark Banner
8f07de38bf Bug 1491766 - Enable selftest.py on Mac now that all our builds are later than 10.7. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D6012

--HG--
extra : moz-landing-system : lando
2018-09-17 14:05:39 +00:00
Daniel Stenberg
43ca59a4d1 bug 1486137 - TRR: fix the FAMILY field in the ECS code r=valentin
... since AF_INET wouldn't actually use IPv4!

MozReview-Commit-ID: FCf7psawENI

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

--HG--
extra : moz-landing-system : lando
2018-09-03 15:02:03 +00:00
arthur.iakab
457fa2b8ab Backed out 7 changesets (bug 1473513) for failing devtools e.g. leakcheck | default process: 1618727 bytes leaked
Backed out changeset deb8812556ef (bug 1473513)
Backed out changeset 5bf38cfa04f9 (bug 1473513)
Backed out changeset 6e157bea362a (bug 1473513)
Backed out changeset 12eb1139a802 (bug 1473513)
Backed out changeset ce86ea60a31c (bug 1473513)
Backed out changeset 7acc52a7f81f (bug 1473513)
Backed out changeset 4e1e283b347e (bug 1473513)

--HG--
extra : rebase_source : a79787b05e0cf6c837e08c9541d559e4509b0deb
2018-08-22 18:23:46 +03:00
yulia
8cde2abb7a Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
MozReview-Commit-ID: 3GsXRxcIKfx

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : rebase_source : 5988ed48f4d4cfc077c7bc768a546698f3e5d541
2018-07-13 18:03:28 +02:00
Kris Maglione
880dd37f97 Bug 1484466: Part 1 - Remove unused XPCOMUtils.importRelative method. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3706

--HG--
extra : rebase_source : bea0fcbfc3398f79f2b2655aea81f6181eeca856
2018-08-18 12:36:03 -07:00
Daniel Stenberg
315e5ddcc0 bug 1466462 - TRR: disable EDNS Client Subnet by default r=mcmanus
Set the "network.trr.disable-ECS" pref to false to disable.

MozReview-Commit-ID: GE6L8Vpvuu0

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

--HG--
extra : moz-landing-system : lando
2018-08-13 15:45:15 +00:00
Daniel Stenberg
fcdada427b bug 1466860 - upgrade DOH code to draft-12 level r=mcmanus
MozReview-Commit-ID: FSVh7qUbBig

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

--HG--
extra : moz-landing-system : lando
2018-08-08 15:01:05 +00:00
Chris AtLee
182e3f8445 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-08-01 16:00:03 +00:00
Julian Descottes
19803c9fee Bug 1478944 - Fix xpcshell tests with --jsdebugger;r=jryans
MozReview-Commit-ID: 2cudOJXg3KX

--HG--
extra : rebase_source : 49016924478d4d543897abbd6be13d8367634f2b
2018-07-27 15:21:29 +02:00
Bob Clary
745c5ff6c2 Bug 1477807 - Distinguish ADBTimeoutErrors from other exceptions in Android remote tests, r=gbrown. 2018-07-27 08:27:16 -07:00
Alexandre Poirot
09d08ff845 Bug 1474980 - Remove deprecated DebuggerServer.addActors(). r=jryans
MozReview-Commit-ID: 8J1wucp1G0p

--HG--
extra : rebase_source : 4a40b578808667ac45519172686e4237bb61423a
2018-07-11 10:41:27 -07:00
Bogdan Tara
6eafe1c00b Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Chris AtLee
8745339529 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-07-03 18:33:02 +00:00
Marco Castelluccio
b81d990de9 Bug 1472687 - Only reset and dump coverage counters in the parent process for xpcshell tests. r=jmaher
--HG--
extra : rebase_source : 7a5700e8c8de05b1b0da072f9185b0e3cb226649
extra : source : 91778385e1727633a941b68f342900f0e561ec4b
2018-06-29 19:09:15 +01:00
shindli
ae4d702ed7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-29 02:25:23 +03:00
Marco Castelluccio
84a9d2852d Bug 1471769 - Make sure PerTestCoverageUtils doesn't do anything unless per-test mode is enabled. r=jmaher
--HG--
extra : rebase_source : bc11f6bad8ca4392e02c8d736dfb388eec7ffc56
2018-06-28 09:35:45 +01:00
Andrew Halberstadt
9435736ade Bug 1471620 - Skip python-tests locally that don't run with python 3 in CI r=davehunt
This will make sure that when running |mach python-test --python 3| locally,
we only run the tests that also run in CI with python 3 (and therefore pass
presumably).

MozReview-Commit-ID: 3OBr9yLSlSq

--HG--
extra : rebase_source : 456340d0ecdddf1078f2b5b4ebb1eddf3813b26a
2018-06-27 11:10:02 -04:00