Commit Graph
1582 Commits
Author SHA1 Message Date
Joel Maher e9cfb3f50f Bug 1910777 - disable crashreporter for macosx testing on macosx 14 until fixed. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D218280
2024-08-02 12:39:11 +00:00
Kershaw Chang 8b2ee5d60d Bug 1622901 - Enable some HTTP3 test on Android, r=mxinden
Differential Revision: https://phabricator.services.mozilla.com/D216264
2024-07-18 15:51:15 +00:00
Mark Banner 2ee1b2dba8 Bug 1905957 - Rename testing/xpcshell/example/unit to testing/xpcshell/test/unit to better reflect the standard test directory naming. r=jmaher,frontend-codestyle-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D215539
2024-07-03 11:41:29 +00:00
Joel Maher 6a851fed7f Bug 1899777 - Adjust CHAOSMODE flags on xpcshell when running test-verify on android. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D213860
2024-07-01 13:17:49 +00:00
Joel Maher 62427d2f2b Bug 1904817 - Allow test selection --tag to support multiple tags. r=ahal,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D214965
2024-06-27 18:15:43 +00:00
Jesse Schwartzentruber 301ec15a92 Bug 1903620 - Calculate jobs using CPU affinity in mach. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D214289
2024-06-25 13:53:13 +00:00
Kershaw Chang aff8a11ff8 Bug 1901355 - Make it possible to start http3Server on demand, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D214074
2024-06-20 08:30:56 +00:00
Manuel Bucher a08e769765 Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters r=necko-reviewers,kershaw,simonf,maltejur
This changes where the IsUpgradeDowngradeEndlessLoop check triggers.
Before this patch, it triggered during the redirect caused by the https
upgrade. With this patch, it triggers during the downgrade for http
redirects. META and JS redirect are still detected during upgrade.
This should be fixed as a follow up (See Bug 1896691).
Downgrade in this context means same url, except with the scheme http
instead of https.

Different query parameters normally lead to different responses by web servers.
Don't consider the '#ref' part of the uri, because it doesn't get send to
the server and therefore can't change the server response.

We can't use the redirect chain anymore, because the query parameters
are trimmed since Bug 1715785.

This also removes the config option dom.security.https_only_check_path_upgrade_downgrade_endless_loop,
because it adds unnecessary complexity. Removing it for this patch is
easier.

https-only, https-first and httpssvc_https_upgrade tests had to be
modified, because they depended on the incorrect handling of query
strings in loop detection.

Differential Revision: https://phabricator.services.mozilla.com/D193672
2024-06-10 17:09:57 +00:00
Tamas Szentpeteri 15e95dbb72 Backed out changeset b234ba179483 (bug 1747230) for causing mochitest failures on browser_target_blank.js. CLOSED TREE 2024-06-06 19:51:33 +03:00
Manuel Bucher c174df9179 Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters r=necko-reviewers,kershaw,simonf,maltejur
This changes where the IsUpgradeDowngradeEndlessLoop check triggers.
Before this patch, it triggered during the redirect caused by the https
upgrade. With this patch, it triggers during the downgrade for http
redirects. META and JS redirect are still detected during upgrade.
This should be fixed as a follow up (See Bug 1896691).
Downgrade in this context means same url, except with the scheme http
instead of https.

Different query parameters normally lead to different responses by web servers.
Don't consider the '#ref' part of the uri, because it doesn't get send to
the server and therefore can't change the server response.

We can't use the redirect chain anymore, because the query parameters
are trimmed since Bug 1715785.

This also removes the config option dom.security.https_only_check_path_upgrade_downgrade_endless_loop,
because it adds unnecessary complexity. Removing it for this patch is
easier.

https-only, https-first and httpssvc_https_upgrade tests had to be
modified, because they depended on the incorrect handling of query
strings in loop detection.

Differential Revision: https://phabricator.services.mozilla.com/D193672
2024-06-06 15:04:47 +00:00
Rob Wu 46434e2dbe Bug 1899781 - Use correct timeout in xpcshell TV r=jmaher
harness_timeout should be assigned to kwargs for it to have any effect.

... and fix the exponential backoff waiter, to wait for at most 15
seconds between checks. Otherwise a timed-out test could be kept
running for several minutes longer, which is a waste of time.

Differential Revision: https://phabricator.services.mozilla.com/D212124
2024-05-30 14:57:15 +00:00
Rob Wu 46bf32a865 Bug 1899669 - Add --setenv support to mach xpcshell-test r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D212075
2024-05-29 23:49:05 +00:00
Geoff Brown 65e3ad5743 Bug 1898511 - Do not set use_multiprocess when starting geckoview r=jmaher
Since use_multiprocess is no longer used, do not set or pass it from mozdevice.
Since the launch_activity/launch_service e10s optional parameter becomes unused, stop passing it also.

Differential Revision: https://phabricator.services.mozilla.com/D211464
2024-05-23 21:08:32 +00:00
Simon Friedberger eb7f6dc65f No bug: Replace xpcshell.ini with xpcshell.toml in parts of the documentation.
Differential Revision: https://phabricator.services.mozilla.com/D209788
2024-05-08 22:29:51 +00:00
Joel Maher 818a2882a3 Bug 1891629 - make xpcshell msix a pure variant. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D207496
2024-04-18 20:07:50 +00:00
Sandor Molnar 0a58056a6f Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures 2024-04-18 08:20:57 +03:00
Joel Maher 5140a94370 Bug 1891629 - make xpcshell msix a pure variant. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D207496
2024-04-18 02:22:45 +00:00
Kershaw Chang b6848d218c Bug 1881183 - Avoid allocating too much memory when receiving CONTINUATION frame, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D205234
2024-03-21 12:49:02 +00:00
Mark Banner 48509525c0 Bug 1885723 - Fix more jsm references in testing/. r=jmaher,webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D204849
2024-03-19 08:59:12 +00:00
Valentin Gosu 02b62c60c5 Bug 1881204 - Avoid MaxListenersExceededWarning in node-http2/flow.js r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D202294
2024-03-08 12:35:03 +00:00
Dave Townsend ec851d9e3c Bug 1864896: Autofix unused function arguments (testing). r=webdriver-reviewers,perftest-reviewers,jmaher,devtools-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D202990
2024-03-05 14:21:16 +00:00
Kershaw Chang e0258f24b3 Bug 1866218 - Use the latest version of HTTP/3 from Alt-Svc headers, r=necko-reviewers,valentin
Make Firefox use the latest HTTP/3 version listed in Alt-Svc headers, rather than the first one.

Differential Revision: https://phabricator.services.mozilla.com/D203235
2024-03-04 12:49:19 +00:00
Andrew Halberstadt f08665d9b1 Bug 1882798 - Cleanup some B2G code under testing/xpcshell, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D203126
2024-02-29 15:53:30 +00:00
serge-sans-paille 67fb85ad18 Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden,webdriver-reviewers,perftest-reviewers,afinder UPGRADE_NSPR_RELEASE
Differential Revision: https://phabricator.services.mozilla.com/D201012
2024-02-26 08:26:38 +00:00
Mark Banner 02d621a87e Bug 1878110 - Change marionette based tests to import ES modules directly. r=arai,webdriver-reviewers,jgraham,application-update-reviewers,bytesized,migration-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D200373
2024-02-23 18:39:31 +00:00
Gregory Pappas 373ddd4c6a Bug 1876947 - Remove the disable_e10s manifest key r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D199808
2024-02-02 23:45:11 +00:00
Joel Maher 04b99e35b7 Bug 1874972 - sum test results for duration and use specific nested group names. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D199310
2024-01-24 16:35:11 +00:00
Gregory Pappas cb4d788e9e Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish,necko-reviewers,jmaher,valentin
Differential Revision: https://phabricator.services.mozilla.com/D192136
2024-01-22 09:52:53 +00:00
Iulian Moraru c0d4cd50ad Backed out changeset da092d881d44 (bug 1724089) for causing valgrind build bustages. 2024-01-18 22:12:44 +02:00
Gregory Pappas f46c35d60d Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish,necko-reviewers,jmaher,valentin
Differential Revision: https://phabricator.services.mozilla.com/D192136
2024-01-18 16:25:47 +00:00
Noemi Erli 9005c1e05f Backed out changeset be072303feaf (bug 1724089) for causing xpc failures in test_headless.js 2024-01-18 16:44:10 +02:00
Gregory Pappas f39ef9fc57 Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish,necko-reviewers,jmaher,valentin
Differential Revision: https://phabricator.services.mozilla.com/D192136
2024-01-18 11:51:13 +00:00
Mark Banner c4b1cea517 Bug 1874191 - Avoid large amount of console output when waiting for the jsdebugger to connect to xpcshell-tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198282
2024-01-11 16:55:28 +00:00
Mark Banner e2e80f646d Bug 1864821 - Replace PromiseUtils.defer() with Promise.withResolvers() in system modules. r=Gijs,perftest-reviewers,necko-reviewers,extension-reviewers,application-update-reviewers,fxview-reviewers,sync-reviewers,sessionstore-reviewers,reusable-components-reviewers,rpl,jesup,hjones,kshampur,skhamis,nalexander,sclements
Differential Revision: https://phabricator.services.mozilla.com/D197489
2024-01-05 09:22:34 +00:00
Narcis Beleuzu e74b321076 Backed out changeset 399d9781e72b (bug 1724089) for causing xpcshell failures. CLOSED TREE 2024-01-02 13:56:25 +02:00
Gregory Pappas 1901c9d000 Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D192136
2024-01-02 11:17:09 +00:00
Joel Maher ebaf5be7c4 Bug 1870536 - fix remaining references to .ini in xpcshell. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D196910
2023-12-20 23:16:43 +00:00
Mike Hommey 9dccd9575c Bug 1868250 - Don't stop reading from the pipe when the process is dead. r=releng-reviewers,ahal
When the http2 server prints a bunch of stuff and dies, the loop doesn't
actually have the time to read multiple lines before poll returns
something, breaking the loop... leaving the log without possibly vital
information.

Unfortunately, since killing the process in stop can also lead to
the threads being blocked on readline (see bug 1863675), we also need to
stop joining the threads. If the process terminates normally, the loop
will break itself when the pipe returns nothing, and the threads will
exit on their own.

Differential Revision: https://phabricator.services.mozilla.com/D195503
2023-12-05 22:53:46 +00:00
Joel Maher f4b2948ab2 Bug 1859896 - Batch 16 - convert xpcshell.ini -> .toml. r=aryx,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D194383
2023-11-25 21:08:44 +00:00
Kershaw Chang 0d090a516a Bug 1865633 - Process HTTP/3 server output immediately, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D194083
2023-11-23 12:10:33 +00:00
Sandor Molnar 6d7aff7f39 Backed out 2 changesets (bug 1865633) for causing xpc timeout failures CLOSED TREE
Backed out changeset 9d7ac5e26b77 (bug 1865633)
Backed out changeset 29d421dab1d6 (bug 1865633)
2023-11-20 18:34:31 +02:00
Kershaw Chang 68503b1563 Bug 1865633 - Process HTTP/3 server output immediately, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D194083
2023-11-20 15:06:49 +00:00
Joel Maher a46fff6a5a Bug 1859819 - fix is_ubuntu to be accurate on windows xpcshell. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D191326
2023-10-18 17:30:18 +00:00
Marco Bonardo 68acfc78a3 Bug 1859779 - Empty Promise.reject() times out an xpcshell test, instead of failing immediately. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D191319
2023-10-18 16:21:13 +00:00
Valentin Gosu 82a58b8805 Bug 1855174 - Process xpcshell node output in realtime r=jmaher,necko-reviewers,kershaw
Spawned nodejs servers sometimes print output to stdout or stderr.
While it's not strictly necessary to display, it's sometimes useful for
debugging, but it's problematic that we only dump the output when killing
the node server.

After landing D189212 this becomes even more problematic, as killing the
process via os.killpg means the file descriptors are already closed.

This patch makes it so for each started server we also spawn a new thread
that reads from stdout and stderr. This way the output is present in the
logs at the correct time.

Depends on D189212

Differential Revision: https://phabricator.services.mozilla.com/D189213
2023-10-18 10:07:19 +00:00
Valentin Gosu 8478cbd6c6 Bug 1772329 - Force kill node process and subprocesses in xpcshell tests at the end of the test r=jmaher,necko-reviewers,kershaw
Added the start_new_session=True argument to Popen so that the node instance gets its own pgid.
On POSIX platforms the server shutdown will now be done using os.killpg() instead of process.terminate()

Differential Revision: https://phabricator.services.mozilla.com/D189212
2023-10-18 10:07:18 +00:00
Julien Cristau c751a9ca43 Bug 1851988 - fix some python string escape sequences r=webdriver-reviewers,perftest-reviewers,whimboo,afinder,releng-reviewers,firefox-build-system-reviewers,ahal,sergesanspaille
Use r-strings or escape backslashes to avoid a deprecation warning.

Differential Revision: https://phabricator.services.mozilla.com/D187655
2023-10-04 09:49:09 +00:00
Natalia Csoregi cc913bf0be Backed out changeset 615616c77191 (bug 1772329) for causing xpcshell failures. CLOSED TREE 2023-09-28 13:09:59 +03:00
Valentin Gosu 0d2ecfc5e6 Bug 1772329 - Force kill node process and subprocesses in xpcshell tests at the end of the test r=jmaher,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D189212
2023-09-28 09:03:59 +00:00
Natalia Csoregi 2891554640 Backed out 2 changesets (bug 1855174, bug 1772329) for causing xpcshell failures. CLOSED TREE
Backed out changeset 45571d960e8a (bug 1855174)
Backed out changeset 0606434c0441 (bug 1772329)
2023-09-28 11:16:59 +03:00