From 87223aa6398aeeef1386c195e86cc586a24ebea4 Mon Sep 17 00:00:00 2001 From: Kershaw Chang Date: Thu, 23 Apr 2020 12:09:00 +0000 Subject: [PATCH] Bug 1602832 - P2: Create 'socketprocess_networking' test variant r=ahal Differential Revision: https://phabricator.services.mozilla.com/D58112 --- taskcluster/ci/config.yml | 1 + taskcluster/ci/test/xpcshell.yml | 2 +- taskcluster/taskgraph/transforms/tests.py | 15 ++++++++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/taskcluster/ci/config.yml b/taskcluster/ci/config.yml index a91c7c60deaa..e095858db20d 100644 --- a/taskcluster/ci/config.yml +++ b/taskcluster/ci/config.yml @@ -86,6 +86,7 @@ treeherder: 'X': 'Xpcshell tests' 'X-1proc': 'Xpcshell tests, without e10s' 'X-fis': 'Xpcshell tests with fission enabled' + 'X-spi-nw': 'Xpcshell tests with networking on socket process' 'L10n': 'Localised Repacks' 'L10n-Rpk': 'Localized Repackaged Repacks' 'BM': 'Beetmover' diff --git a/taskcluster/ci/test/xpcshell.yml b/taskcluster/ci/test/xpcshell.yml index d6983007d6a4..5d657e58e89a 100644 --- a/taskcluster/ci/test/xpcshell.yml +++ b/taskcluster/ci/test/xpcshell.yml @@ -6,7 +6,7 @@ job-defaults: suite: xpcshell variants: by-test-platform: - linux1804-64/debug: ['fission'] + linux1804-64/debug: ['fission', 'socketprocess_networking'] default: ['fission'] target: by-test-platform: diff --git a/taskcluster/taskgraph/transforms/tests.py b/taskcluster/taskgraph/transforms/tests.py index 2a424c578d72..6d5b0bc869ba 100644 --- a/taskcluster/taskgraph/transforms/tests.py +++ b/taskcluster/taskgraph/transforms/tests.py @@ -184,6 +184,19 @@ TEST_VARIANTS = { ], } } + }, + 'socketprocess_networking': { + 'description': "{description} with networking on socket process enabled", + 'suffix': 'spi-nw', + 'merge': { + 'mozharness': { + 'extra-options': [ + '--setpref=network.process.enabled=true', + '--setpref=network.http.network_access_on_socket_process.enabled=true', + '--setpref=network.ssl_tokens_cache_enabled=true', + ], + } + } } } @@ -1226,7 +1239,7 @@ def ensure_spi_disabled_on_all_but_spi(config, tests): 'junit' not in test['suite'] and 'raptor' not in test['suite']) - if has_setpref and variant != 'socketprocess': + if has_setpref and variant != 'socketprocess' and variant != 'socketprocess_networking': test['mozharness']['extra-options'].append( '--setpref=media.peerconnection.mtransport_process=false') test['mozharness']['extra-options'].append(