Commit Graph

758 Commits

Author SHA1 Message Date
Till Schneidereit
b0d2250794 Bug 911216 - Part 24: Use promise rejection tracking to report unhandled rejections to the console. r=bz,Paolo 2016-03-22 16:22:24 +01:00
Gregory Szorc
7fd974e58a Bug 1272851 - Use objdir for temporary directory for mach xpcshell-test; r=ted
When running xpcshell tests on my i7-6700K, the Windows Defender
MsMpEng.exe process regularly consumes up to 50% CPU - 2 whole cores.
This is because it is canning the thousands of files we create in the
temporary directory. (We create a profile for every xpcshell.exe process.)

This commit changes the behavior of `mach xpcshell-test` to use a temporary
directory under the topobjdir. We encourage people to disable file indexing
and A/V scanning in the source and object directories because this can add
overhead. So by putting temporary files in the object directory, we should
minimize the chances of file scanning slowing down test execution.

On my machine (which has Windows Defender disabled in my source and objdirs),
`mach xpcshell-test` execution time drops from ~13:40 to ~7:30. Seriously.

I'm told we have Windows Defender disabled in automation, so this hack
shouldn't need to be investigated there. i.e. this is a pure local development
win.



MozReview-Commit-ID: BMcSAZ16Yei

--HG--
extra : rebase_source : 5490be35b59ff675639180b928ee77dcc70de485
2016-05-26 11:56:20 -07:00
Gregory Szorc
e0b7bbc6be Bug 1272851 - Allow temporary directory to be specified to xpcshell test harness; r=ted
A subsequent commit will change where the temporary directory is located
in certain test invocations. To do this, we need to teach the xpcshell
harness to use an alternate temporary directory instead of using the system
default (likely specified from TEMP* environment variables).

MozReview-Commit-ID: IUUlYaLBiEC

--HG--
extra : rebase_source : 389144dedb8cce62c1d10c65a37be7fb632c2317
2016-05-26 12:09:46 -07:00
Kris Maglione
de6fb7712e Bug 1269501: Part 1 - Add $PYTHON variable to environment for subprocess xpcshell tests. r=glandium
I'm not especially happy with this method, but the DMD tests are the only
other tests I can find doing anything like this, and I don't have a better
solution than doing it the same way.

MozReview-Commit-ID: JlclyKoUhRf

--HG--
extra : rebase_source : 61122aa9bb83a2d290a0e3daad34c78f96b82b7f
extra : source : ed35c5f4d756aa5b073832e21c103ce4faf282bd
2016-05-08 20:33:36 -07:00
Sebastian Hengst
cf6ad4521e Backed out 5 changesets (bug 1269501) for failing the added test_subprocess.js on Windows (didn't fold it into the last backout). r=backout
Backed out changeset 3e1d7c5d1a58 (bug 1269501)
Backed out changeset 167e407cb1fc (bug 1269501)
Backed out changeset 6438b11898cf (bug 1269501)
Backed out changeset 1cbbf940ec35 (bug 1269501)
Backed out changeset ed35c5f4d756 (bug 1269501)
2016-05-28 12:38:25 +02:00
Kris Maglione
91c9dcbb5c Bug 1269501: Part 1 - Add $PYTHON variable to environment for subprocess xpcshell tests. r=glandium
I'm not especially happy with this method, but the DMD tests are the only
other tests I can find doing anything like this, and I don't have a better
solution than doing it the same way.

MozReview-Commit-ID: JlclyKoUhRf

--HG--
extra : rebase_source : 2906a6aa3a65fd388db6c388c3fe8d582e02d76f
2016-05-08 20:33:36 -07:00
Benjamin Smedberg
f1b93dda42 Bug 1255588 - Disable selftest.py on 10.7 builders (we now only support running 10.9+). r=jmaher. 2016-05-14 14:03:10 +02:00
Patrick McManus
86ffca654a Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer
--HG--
extra : rebase_source : db44949e74498773f546be2e944194120ed4113f
2016-05-05 17:11:02 -04:00
Wes Kocher
1806870b06 Backed out 3 changesets (bug 1267474) foor test_immutable.js failures in xpcshell jobs
Backed out changeset 057f3f50441f (bug 1267474)
Backed out changeset 960d93f30c66 (bug 1267474)
Backed out changeset 0c059a0e87d7 (bug 1267474)
2016-05-11 10:32:33 -07:00
Patrick McManus
aa7218be51 Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer
--HG--
extra : rebase_source : 118675f869e1735d527697f30efa84205ad7fcd1
2016-05-05 17:11:02 -04:00
Carsten "Tomcat" Book
a283044b21 Backed out changeset 2ab63d0cea9f (bug 1267474) 2016-05-11 16:10:27 +02:00
Patrick McManus
242180be37 Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer 2016-05-05 17:11:02 -04:00
Nathan Froyd
4872952e02 Bug 1265156 - always pass symbolsPath during xpcshell self tests; r=ted.mielczarek
If we botch things in libxul badly enough that startup cache
precompilation works, but xpcshell self tests fail, it's nice to get
understandable stacks for asserts or crashes inside libxul.
2016-04-18 13:20:35 -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
Kit Cambridge
bc0b536de1 Bug 1257821 - Support the new aesgcm content encoding scheme. r=mt
MozReview-Commit-ID: IPNXletzJRK

--HG--
extra : rebase_source : 3593624d3513a0ccc7422bfeefe5c85dca37541a
2016-03-18 09:01:50 -07:00
Cykesiopka
e6008c2304 Bug 1251011 - Enable ESLint "no-undef" rule for PSM. r=keeler r=mossop
MozReview-Commit-ID: 1lbwWWkJjqq

--HG--
extra : rebase_source : 10fa76138cb5c4ac53b2b49f99b26ce3748f9fff
2016-03-16 16:50:33 -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
Geoff Brown
fe5b68bf76 Bug 1255563 - Set sequential option when running Android 'mach xpcshell-test'; r=jmaher 2016-03-10 15:18:40 -07:00
Nicholas Hurley
0b3b2a68db Bug 1246761 - Properly handle non-terminal 0-length DATA frames. r=mcmanus
--HG--
extra : rebase_source : 756e42ecea9646b5b0e2770060090437b06b9f9d
2016-03-01 16:28:39 -08:00
Chris Manchester
d71c9dd868 Bug 1250961 - Remove one-off rule to re-name master xpcshell manifest and update mozharness consumers. r=gps
MozReview-Commit-ID: B41G5burv9A

--HG--
extra : rebase_source : 6aa95d32bfad361016d1bb60b25357f4b0b50db4
2016-02-26 13:20:31 -08:00
Chris Manchester
5adf169610 Bug 1250961 - Move testing/xpcshell/Makefile.in to moz.build. r=gps
MozReview-Commit-ID: 8J9RzA0RZ0i

--HG--
extra : rebase_source : f202d8fb0b79be8c665bed5af54592292802ad0d
2016-02-26 13:20:31 -08:00
Patrick McManus
57205a2a42 Bug 1249379 - H2 Push WindowUpdate not written to network r=hurley 2016-02-18 15:00:46 -05:00
Dave Townsend
0a913f73ee Bug 1245916: Add additional default globals. r=felipe
This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.

MozReview-Commit-ID: BdWouZGK6d

--HG--
extra : rebase_source : a88116d149af76aa35ee0757b3b51b6f97646ebe
extra : source : 04c1740aa49904a56bd662ee0c8aed69e6f99f8b
2016-02-05 12:12:30 -08:00
Phil Ringnalda
9dc941a05d Backed out 5 changesets (bug 1245916) for browser-chrome and devtools bustages
CLOSED TREE

Backed out changeset 70eca07367f4 (bug 1245916)
Backed out changeset 04c1740aa499 (bug 1245916)
Backed out changeset b554c7ce41c4 (bug 1245916)
Backed out changeset 01675e4828b5 (bug 1245916)
Backed out changeset 878db4caf845 (bug 1245916)
2016-02-15 13:58:27 -08:00
Dave Townsend
6b99474c7c Bug 1245916: Add additional default globals. r=felipe
This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.

MozReview-Commit-ID: BdWouZGK6d

--HG--
extra : rebase_source : 13f7319be94e251df7f574f7d239cc31b383fcf8
2016-02-05 12:12:30 -08:00
Ted Mielczarek
ea6f9a1958 bug 1069556 - sync to Breakpad c53ed143108948eb7e2d7ee77dc8c0d92050ce7c. r=glandium, benwa
This commit contains a few things:
* Update our copy of google-breakpad to upstream c53ed143108948eb7e2d7ee77dc8c0d92050ce7c
* Get rid of all but one local patch, fold a few related local patches into one
* Misc build fixup to sync with upstream--adding a few new moz.build files,
  source files
* The final bits of unhooking Breakpad from the profiler:
** Revert to only building toolkit/crashreporter if MOZ_CRASHREPORTER.
** Stop building bits of Breakpad that we only needed for the profiler.
** Remove a few bits of profiler code that were used to interface with Breakpad.
** Remove toolkit/crashreporter/breakpad-logging, which was only used to
   suppress Breakpad logging for the in-process stackwalker.
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
  added it, but the bionic we're using for Gonk builds is too old, so add a
  copy of the previous version of those files to
  toolkit/crashreporter/gonk-include to keep Gonk building.
* Consolidate moz.build files under toolkit/crashreporter/google-breakpad/client/linux

--HG--
rename : toolkit/crashreporter/google-breakpad/src/common/pathname_stripper.h => toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper.h
rename : toolkit/crashreporter/google-breakpad/src/common/pathname_stripper_unittest.cc => toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper_unittest.cc
extra : histedit_source : 43e65f5432657f548cac5aa7936461e58454c3b6%2C7b56ccc79d9d58ebde0583d920f3593e25212621
extra : rebase_source : f6dbfb8fb2ba5b27e63b26d57c404962679c7a76
extra : commitid : DMQlXPms868
extra : source : 09fd4f3ab6e764016fe073efb226f03b5969af59
extra : intermediate-source : 16f9d3a6d2ef6a6efd088e3b8eff0a4723daef8f
2016-01-27 09:39:53 -05:00
Patrick McManus
c57196d7b9 Bug 1241906 - test for suspended spdy3.1 channel r=hurley
--HG--
extra : rebase_source : bcbeed89580d82472d751a6cc86108eb7f7d943b
2016-02-05 11:17:24 -05:00
Paolo Amadini
8b8676204b Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : yWjnDGhk9j
extra : rebase_source : 24228660defd6971a621d52eee0b79be823c6926
extra : amend_source : ef8de24265fa9026b0f764a63453b816442f7232
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-02-03 12:58:03 +00:00
Marco Bonardo
00fe34957a Bug 1244723 - xpcshell should shutdown profile after all the registered cleanup functions, not before them. r=ted
--HG--
extra : commitid : 725U9rSPg8q
2016-02-03 12:35:07 +01:00
Wes Kocher
1b65a8ee2f Backed out changeset e8148cda7d85 (bug 989960) for xpcshell bustage
--HG--
extra : commitid : Bxwy5tzArNN
extra : rebase_source : a15513777534e54d05fda5037f24e15ac089b313
2016-02-01 08:25:19 -08:00
Paolo Amadini
ecd744bdef Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : 6aGIHyyYqSo
extra : rebase_source : 38fbf5e49d06970555a088c5ea3f8379e2064767
extra : source : 3958782fe187026cbc3755ad6eae6920e67fa7d2
2016-01-30 18:53:56 +00:00
Phil Ringnalda
d42eb10039 Back out 3958782fe187 (bug 989960) for Android crashes in test_watchdog_default.js 2016-01-29 20:12:44 -08:00
Paolo Amadini
aceee7aafc Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric
--HG--
extra : commitid : IkcxJUamV6B
extra : rebase_source : 07255457ec607c45037f832ca44a01f17a00da78
2016-01-29 13:19:53 +00:00
Nicholas Hurley
7d0ef36f29 Bug 1242650 - Allow local use of node-http2 from a custom location (instead of in-tree version). r=mcmanus
--HG--
extra : rebase_source : da946aa11c7c957b658e8d00383e5f8d089239c0
2016-01-13 12:14:59 -08:00
Andreas Tolfsen
a9bbc162ce Bug 1240723 - Harmonise xpcshell head- and tail list computation; r=ted.mielczarek
Head- and tail entries in manifest files are not mandatory on
local/desktop xpcshell tests, and they should not be on remote/B2G either.

This change makes remotexpcshelltests and runxpcshelltests agree on how
to get head- and tail files.

--HG--
extra : rebase_source : a1f55d8476f73983d752222ff993962713f7b5e8
2016-01-19 13:48:53 +00:00
Philipp Kewisch
1f1671ee48 Bug 1192533 - Allow running only one test via add_task.only() or skipping via add_task.skip(). r=ted 2016-01-10 16:40:12 +01:00
Dave Townsend
99e46fd0e0 Bug 1237340: Fix browser and toolkit eslint failures. r=Felipe
--HG--
extra : rebase_source : 3e1098fe6d387bed1edcad365e318c484e8989ea
2016-01-06 10:10:35 -08:00
Dave Townsend
ca9efe5553 Bug 1229142: Add shared eslintrc files for the different test suites. r=Standard8
--HG--
extra : commitid : AhpmLFDapbw
extra : rebase_source : 2f78e3b01a56c9fb969370967ee20acaf53bd570
extra : histedit_source : 3c8e2b70317bc799d25ff5c6012aa878feecc668
2015-12-17 15:28:06 -08:00
Geoff Brown
c0573a940f Bug 1144393 - Use /storage/sdcard in preference to /sdcard for adb device root and enable test_file_equality.js; r=jmaher 2015-12-21 14:24:08 -07:00
J. Ryan Stinnett
84886db8e6 Bug 1231759 - Explain DevTools appdir issue when debugging xpcshell. r=Gijs
--HG--
extra : rebase_source : f8bb0a223fff0cf2555188700bccdb2f80b115f3
2015-12-15 10:14:31 -06:00
Julian Seward
aaa346467a Bug 1222043 - Make "mach xpcshell-test" more TSan-friendly. r=ahalberstadt. 2015-11-25 12:38:20 +01:00
Alexandre Poirot
02e511006d Bug 1113865 - Replace all calls to dbg_assert with DevToolsUtils.assert. r=fitzgen 2015-11-16 07:22:49 -08:00
Edgar Chen
b7041c4fe1 Bug 1216507 - Use the correct busybox binary for x86 emulator. r=ahal
--HG--
extra : commitid : Ey1NBOsP7ux
extra : rebase_source : 6c0aecfedfc19b1af960a0333a2cd192edfd3273
extra : amend_source : 3e0973c5bc3cbf975c16e180ad06f5405a7ab1ef
2015-10-10 12:00:18 +08:00
J. Ryan Stinnett
986f2a5cde Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
James Graham
7c64f71620 Bug 1207747 - Ensure that logging command line options are always available when running xpcshell tests, r=chmanchester 2015-10-08 10:28:15 +01:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo
76da4d1112 Bug 1202902 - Support non-syntactic extensible lexical scopes. (r=billm) 2015-10-06 14:00:29 -07:00
Nicholas Hurley
90183c451d Bug 1197847 - Disallow folded headers in h2. r=mcmanus
This also fixes a lot of situations in which we could get a compression
state out of sync with the server, which would be Very Bad.

--HG--
extra : rebase_source : 53b87c3cacd34c496f4c63cddda606d005a383e5
2015-09-22 19:58:14 -07:00