diff --git a/bot/README.md b/bot/README.md index eea3d56df..1fa71c25e 100644 --- a/bot/README.md +++ b/bot/README.md @@ -28,7 +28,7 @@ pre-commit install Check linting (it should be automatically done before any commit): ```console -pre-commint run -a +pre-commit run -a ``` Check unit tests: diff --git a/bot/code_coverage_bot/chunk_mapping.py b/bot/code_coverage_bot/chunk_mapping.py index 597af04f4..c6163af4b 100644 --- a/bot/code_coverage_bot/chunk_mapping.py +++ b/bot/code_coverage_bot/chunk_mapping.py @@ -38,7 +38,7 @@ def get_suites(revision): "and": [ {"eq": {"repo.branch.name": "mozilla-central"}}, {"eq": {"repo.changeset.id12": revision[:12]}}, - {"regexp": {"run.key": ".*-ccov/.*"}}, + {"regexp": {"run.key": ".*-ccov.*/.*"}}, ] }, "limit": 500000, @@ -62,7 +62,7 @@ def get_tests_chunks(revision, platform, suite): {"eq": {"repo.branch.name": "mozilla-central"}}, {"eq": {"repo.changeset.id12": revision[:12]}}, {"eq": {"run.suite.fullname": suite}}, - {"regexp": {"run.key": f".*-{platform}.*-ccov/.*"}}, + {"regexp": {"run.key": f".*-{platform}.*-ccov.*/.*"}}, ] }, "limit": 50000, diff --git a/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-cppunit.json b/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-cppunit.json new file mode 100644 index 000000000..d4f2abb66 --- /dev/null +++ b/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-cppunit.json @@ -0,0 +1,97 @@ +{ + "provisionerId": "aws-provisioner-v1", + "workerType": "gecko-t-win10-64", + "schedulerId": "gecko-level-3", + "taskGroupId": "Mu6w3n-dS9GOfrv6wGOtvg", + "dependencies": [ + "Db0nxP-CRTKA7ak9LCYucA", + "brd6yPH_TEegeE8bjBLsxQ" + ], + "requires": "all-completed", + "routes": [ + "tc-treeherder.v2.mozilla-central.e31357c7759379d2279b6883cb09c91997bfaa5d.35772", + "coalesce.v1.mozilla-central.a08cf6d9fc36535ab7db" + ], + "priority": "medium", + "retries": 5, + "created": "2019-03-28T17:39:21.822Z", + "deadline": "2019-03-29T17:39:21.822Z", + "expires": "2020-03-27T17:39:21.822Z", + "scopes": [], + "payload": { + "supersederUrl": "https://coalesce.mozilla-releng.net/v1/list/3600/5/mozilla-central.a08cf6d9fc36535ab7db", + "maxRunTime": 3600, + "artifacts": [ + { + "path": "logs", + "type": "directory", + "name": "public/logs" + }, + { + "path": "build/blobber_upload_dir", + "type": "directory", + "name": "public/test_info" + } + ], + "command": [ + "c:\\mozilla-build\\python\\python.exe -u mozharness\\scripts\\desktop_unittest.py --cfg mozharness\\configs\\unittests\\win_taskcluster_unittest.py --cppunittest-suite=cppunittest --code-coverage --installer-url https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Db0nxP-CRTKA7ak9LCYucA/artifacts/public/build/target.zip --test-packages-url https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Db0nxP-CRTKA7ak9LCYucA/artifacts/public/build/target.test_packages.json --download-symbols true --enable-webrender --cppunittest-suite=cppunittest --code-coverage" + ], + "env": { + "SCCACHE_DISABLE": "1", + "GECKO_HEAD_REV": "e31357c7759379d2279b6883cb09c91997bfaa5d", + "GECKO_HEAD_REPOSITORY": "https://hg.mozilla.org/mozilla-central", + "MOZ_FETCHES": "[{\"artifact\": \"public/build/grcov.tar.bz2\", \"extract\": true, \"task\": \"brd6yPH_TEegeE8bjBLsxQ\"}]", + "MOZ_FETCHES_DIR": "fetches", + "MOZ_AUTOMATION": "1" + }, + "mounts": [ + { + "directory": ".", + "content": { + "taskId": "Db0nxP-CRTKA7ak9LCYucA", + "artifact": "public/build/mozharness.zip" + }, + "format": "zip" + } + ] + }, + "metadata": { + "owner": "opoprus@mozilla.com", + "source": "https://hg.mozilla.org/mozilla-central/file/e31357c7759379d2279b6883cb09c91997bfaa5d/taskcluster/ci/test", + "description": "CPP Unit Tests ([Treeherder push](https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=e31357c7759379d2279b6883cb09c91997bfaa5d))", + "name": "test-windows10-64-ccov-qr/debug-cppunit" + }, + "tags": { + "os": "windows", + "createdForUser": "opoprus@mozilla.com", + "worker-implementation": "generic-worker", + "kind": "test", + "label": "test-windows10-64-ccov-qr/debug-cppunit" + }, + "extra": { + "index": { + "rank": 0 + }, + "parent": "Mu6w3n-dS9GOfrv6wGOtvg", + "chunks": { + "current": 1, + "total": 1 + }, + "suite": { + "flavor": "cppunittest", + "name": "cppunittest" + }, + "treeherder": { + "machine": { + "platform": "windows10-64-ccov-qr" + }, + "tier": 2, + "symbol": "Cpp", + "jobKind": "test", + "collection": { + "debug": true + } + }, + "treeherder-platform": "windows10-64-ccov-qr/debug" + } +} diff --git a/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-mochitest-1.json b/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-mochitest-1.json new file mode 100644 index 000000000..0dc5ac273 --- /dev/null +++ b/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-mochitest-1.json @@ -0,0 +1,100 @@ +{ + "provisionerId": "aws-provisioner-v1", + "workerType": "gecko-t-win10-64", + "schedulerId": "gecko-level-3", + "taskGroupId": "Mu6w3n-dS9GOfrv6wGOtvg", + "dependencies": [ + "Db0nxP-CRTKA7ak9LCYucA", + "brd6yPH_TEegeE8bjBLsxQ" + ], + "requires": "all-completed", + "routes": [ + "tc-treeherder.v2.mozilla-central.e31357c7759379d2279b6883cb09c91997bfaa5d.35772", + "coalesce.v1.mozilla-central.f3031b7eecbe9114a96f" + ], + "priority": "medium", + "retries": 5, + "created": "2019-03-28T17:39:26.586Z", + "deadline": "2019-03-29T17:39:26.586Z", + "expires": "2020-03-27T17:39:26.586Z", + "scopes": [], + "payload": { + "supersederUrl": "https://coalesce.mozilla-releng.net/v1/list/3600/5/mozilla-central.f3031b7eecbe9114a96f", + "maxRunTime": 5400, + "artifacts": [ + { + "path": "logs", + "type": "directory", + "name": "public/logs" + }, + { + "path": "build/blobber_upload_dir", + "type": "directory", + "name": "public/test_info" + } + ], + "command": [ + "c:\\mozilla-build\\python\\python.exe -u mozharness\\scripts\\desktop_unittest.py --cfg mozharness\\configs\\unittests\\win_taskcluster_unittest.py --mochitest-suite=plain-chunked --code-coverage --e10s --installer-url https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Db0nxP-CRTKA7ak9LCYucA/artifacts/public/build/target.zip --test-packages-url https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Db0nxP-CRTKA7ak9LCYucA/artifacts/public/build/target.test_packages.json --download-symbols true --enable-webrender --mochitest-suite=plain-chunked --code-coverage --e10s --total-chunk=10 --this-chunk=1" + ], + "env": { + "SCCACHE_DISABLE": "1", + "GECKO_HEAD_REV": "e31357c7759379d2279b6883cb09c91997bfaa5d", + "GECKO_HEAD_REPOSITORY": "https://hg.mozilla.org/mozilla-central", + "MOZ_FETCHES": "[{\"artifact\": \"public/build/grcov.tar.bz2\", \"extract\": true, \"task\": \"brd6yPH_TEegeE8bjBLsxQ\"}]", + "MOZ_FETCHES_DIR": "fetches", + "MOZ_AUTOMATION": "1" + }, + "mounts": [ + { + "directory": ".", + "content": { + "taskId": "Db0nxP-CRTKA7ak9LCYucA", + "artifact": "public/build/mozharness.zip" + }, + "format": "zip" + } + ] + }, + "metadata": { + "owner": "opoprus@mozilla.com", + "source": "https://hg.mozilla.org/mozilla-central/file/e31357c7759379d2279b6883cb09c91997bfaa5d/taskcluster/ci/test", + "description": "Mochitest plain run ([Treeherder push](https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=e31357c7759379d2279b6883cb09c91997bfaa5d))", + "name": "test-windows10-64-ccov-qr/debug-mochitest-e10s-1" + }, + "tags": { + "kind": "test", + "worker-implementation": "generic-worker", + "createdForUser": "opoprus@mozilla.com", + "label": "test-windows10-64-ccov-qr/debug-mochitest-e10s-1", + "test-type": "mochitest", + "os": "windows" + }, + "extra": { + "index": { + "rank": 0 + }, + "parent": "Mu6w3n-dS9GOfrv6wGOtvg", + "chunks": { + "current": 1, + "total": 10 + }, + "suite": { + "flavor": "plain-chunked", + "name": "mochitest" + }, + "treeherder": { + "jobKind": "test", + "groupSymbol": "M-e10s", + "collection": { + "debug": true + }, + "machine": { + "platform": "windows10-64-ccov-qr" + }, + "groupName": "Mochitests with e10s", + "tier": 2, + "symbol": "1" + }, + "treeherder-platform": "windows10-64-ccov-qr/debug" + } +} diff --git a/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-mochitest-e10s-7.json b/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-mochitest-e10s-7.json new file mode 100644 index 000000000..7b5c0c95b --- /dev/null +++ b/bot/tests/fixtures/test-windows10-64-ccov-qr/debug-mochitest-e10s-7.json @@ -0,0 +1,118 @@ +{ + "created": "2019-08-07T21:54:53.928Z", + "deadline": "2019-08-08T21:54:53.928Z", + "dependencies": [ + "bVpuwUYmQCqjPY-Ynu1YZQ", + "eA-zkasdQCmua27DPfzcZQ" + ], + "expires": "2020-08-06T21:54:53.928Z", + "extra": { + "chunks": { + "current": 7, + "total": 10 + }, + "index": { + "rank": 0 + }, + "parent": "PUZr6C8WR9Cmw3LeL9qotw", + "suite": "mochitest-plain-chunked", + "treeherder": { + "collection": { + "debug": true + }, + "groupName": "Mochitests", + "groupSymbol": "M", + "jobKind": "test", + "machine": { + "platform": "windows10-64-ccov-qr" + }, + "symbol": "7", + "tier": 2 + }, + "treeherder-platform": "windows10-64-ccov-qr/debug" + }, + "metadata": { + "description": "Mochitest plain run ([Treeherder push](https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=3a71baea939144b4ec37805a932f0250c74986b1))", + "name": "test-windows10-64-ccov-qr/debug-mochitest-e10s-7", + "owner": "shindli@mozilla.com", + "source": "https://hg.mozilla.org/mozilla-central/file/3a71baea939144b4ec37805a932f0250c74986b1/taskcluster/ci/test" + }, + "payload": { + "artifacts": [ + { + "name": "public/logs", + "path": "logs", + "type": "directory" + }, + { + "name": "public/test_info", + "path": "build/blobber_upload_dir", + "type": "directory" + } + ], + "command": [ + "C:/mozilla-build/python3/python3.exe run-task -- c:\\mozilla-build\\python\\python.exe -u mozharness\\scripts\\desktop_unittest.py --cfg mozharness\\configs\\unittests\\win_unittest.py --mochitest-suite=mochitest-plain-chunked --code-coverage --setpref=media.peerconnection.mtransport_process=false --setpref=network.process.enabled=false --enable-webrender --download-symbols true --mochitest-suite=mochitest-plain-chunked --code-coverage --setpref=media.peerconnection.mtransport_process=false --setpref=network.process.enabled=false --total-chunk=10 --this-chunk=7" + ], + "env": { + "EXTRA_MOZHARNESS_CONFIG": "{\"test_packages_url\": \"https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/eA-zkasdQCmua27DPfzcZQ/artifacts/public/build/target.test_packages.json\", \"installer_url\": \"https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/eA-zkasdQCmua27DPfzcZQ/artifacts/public/build/target.zip\"}", + "GECKO_HEAD_REPOSITORY": "https://hg.mozilla.org/mozilla-central", + "GECKO_HEAD_REV": "3a71baea939144b4ec37805a932f0250c74986b1", + "MOZ_AUTOMATION": "1", + "MOZ_FETCHES": "[{\"artifact\": \"public/build/grcov.tar.bz2\", \"extract\": true, \"task\": \"bVpuwUYmQCqjPY-Ynu1YZQ\"}]", + "MOZ_FETCHES_DIR": "fetches", + "MOZ_SCM_LEVEL": "3", + "SCCACHE_DISABLE": "1" + }, + "maxRunTime": 5400, + "mounts": [ + { + "content": { + "artifact": "public/build/mozharness.zip", + "taskId": "eA-zkasdQCmua27DPfzcZQ" + }, + "directory": ".", + "format": "zip" + }, + { + "content": { + "url": "https://hg.mozilla.org/mozilla-central/raw-file/3a71baea939144b4ec37805a932f0250c74986b1/taskcluster/scripts/run-task" + }, + "file": "./run-task" + }, + { + "content": { + "url": "https://hg.mozilla.org/mozilla-central/raw-file/3a71baea939144b4ec37805a932f0250c74986b1/taskcluster/scripts/misc/fetch-content" + }, + "file": "./fetch-content" + } + ], + "onExitStatus": { + "retry": [ + 1073807364, + 3221225786 + ] + }, + "supersederUrl": "https://coalesce.mozilla-releng.net/v1/list/3600/5/mozilla-central.7b8ad30082b7aa4bcac6" + }, + "priority": "medium", + "provisionerId": "aws-provisioner-v1", + "requires": "all-completed", + "retries": 5, + "routes": [ + "tc-treeherder.v2.mozilla-central.3a71baea939144b4ec37805a932f0250c74986b1.36406", + "coalesce.v1.mozilla-central.7b8ad30082b7aa4bcac6" + ], + "schedulerId": "gecko-level-3", + "scopes": [], + "tags": { + "createdForUser": "shindli@mozilla.com", + "kind": "test", + "label": "test-windows10-64-ccov-qr/debug-mochitest-e10s-7", + "os": "windows", + "retrigger": "true", + "test-type": "mochitest", + "worker-implementation": "generic-worker" + }, + "taskGroupId": "PUZr6C8WR9Cmw3LeL9qotw", + "workerType": "gecko-t-win10-64" +} diff --git a/bot/tests/fixtures/test-windows10-64-qr/debug-cppunit.json b/bot/tests/fixtures/test-windows10-64-qr/debug-cppunit.json new file mode 100644 index 000000000..3811e023b --- /dev/null +++ b/bot/tests/fixtures/test-windows10-64-qr/debug-cppunit.json @@ -0,0 +1,94 @@ +{ + "provisionerId": "aws-provisioner-v1", + "workerType": "gecko-t-win10-64", + "schedulerId": "gecko-level-3", + "taskGroupId": "Mu6w3n-dS9GOfrv6wGOtvg", + "dependencies": [ + "W7r-_k6BRti6V69f6PVFQA" + ], + "requires": "all-completed", + "routes": [ + "tc-treeherder.v2.mozilla-central.e31357c7759379d2279b6883cb09c91997bfaa5d.35772", + "coalesce.v1.mozilla-central.e97a7cee04fa0f3b4f7d" + ], + "priority": "medium", + "retries": 5, + "created": "2019-03-28T17:40:03.103Z", + "deadline": "2019-03-29T17:40:03.103Z", + "expires": "2020-03-27T17:40:03.103Z", + "scopes": [], + "payload": { + "supersederUrl": "https://coalesce.mozilla-releng.net/v1/list/3600/5/mozilla-central.e97a7cee04fa0f3b4f7d", + "maxRunTime": 3600, + "artifacts": [ + { + "path": "logs", + "type": "directory", + "name": "public/logs" + }, + { + "path": "build/blobber_upload_dir", + "type": "directory", + "name": "public/test_info" + } + ], + "command": [ + "c:\\mozilla-build\\python\\python.exe -u mozharness\\scripts\\desktop_unittest.py --cfg mozharness\\configs\\unittests\\win_taskcluster_unittest.py --cppunittest-suite=cppunittest --installer-url https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/W7r-_k6BRti6V69f6PVFQA/artifacts/public/build/target.zip --test-packages-url https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/W7r-_k6BRti6V69f6PVFQA/artifacts/public/build/target.test_packages.json --enable-webrender --download-symbols true --cppunittest-suite=cppunittest" + ], + "env": { + "GECKO_HEAD_REPOSITORY": "https://hg.mozilla.org/mozilla-central", + "MOZ_AUTOMATION": "1", + "SCCACHE_DISABLE": "1", + "GECKO_HEAD_REV": "e31357c7759379d2279b6883cb09c91997bfaa5d" + }, + "mounts": [ + { + "directory": ".", + "content": { + "taskId": "W7r-_k6BRti6V69f6PVFQA", + "artifact": "public/build/mozharness.zip" + }, + "format": "zip" + } + ] + }, + "metadata": { + "owner": "opoprus@mozilla.com", + "source": "https://hg.mozilla.org/mozilla-central/file/e31357c7759379d2279b6883cb09c91997bfaa5d/taskcluster/ci/test", + "description": "CPP Unit Tests ([Treeherder push](https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=e31357c7759379d2279b6883cb09c91997bfaa5d))", + "name": "test-windows10-64-qr/debug-cppunit" + }, + "tags": { + "os": "windows", + "createdForUser": "opoprus@mozilla.com", + "worker-implementation": "generic-worker", + "kind": "test", + "label": "test-windows10-64-qr/debug-cppunit" + }, + "extra": { + "index": { + "rank": 1553794301 + }, + "parent": "Mu6w3n-dS9GOfrv6wGOtvg", + "chunks": { + "current": 1, + "total": 1 + }, + "suite": { + "flavor": "cppunittest", + "name": "cppunittest" + }, + "treeherder": { + "machine": { + "platform": "windows10-64-qr" + }, + "tier": 1, + "symbol": "Cpp", + "jobKind": "test", + "collection": { + "debug": true + } + }, + "treeherder-platform": "windows10-64-qr/debug" + } +} diff --git a/bot/tests/test_chunk_mapping.py b/bot/tests/test_chunk_mapping.py index 979beb87e..88affe14e 100644 --- a/bot/tests/test_chunk_mapping.py +++ b/bot/tests/test_chunk_mapping.py @@ -117,14 +117,14 @@ def request_callback(request): data = {} elif requested_suite == "marionette": regexp = payload["where"]["and"][3]["regexp"]["run.key"] - if regexp == ".*-linux.*-ccov/.*": + if regexp == ".*-linux.*-ccov.*/.*": data = { "result.test": ["marionette-test1"], "run.key": [ "test-linux64-ccov/opt-marionette-headless-e10s" ], } - elif regexp == ".*-windows.*-ccov/.*": + elif regexp == ".*-windows.*-ccov.*/.*": data = { "result.test": ["marionette-test2"], "run.key": [ diff --git a/bot/tests/test_taskcluster.py b/bot/tests/test_taskcluster.py index 44aa4b448..49d3e8ce6 100644 --- a/bot/tests/test_taskcluster.py +++ b/bot/tests/test_taskcluster.py @@ -130,12 +130,16 @@ def test_get_tasks_in_group(mock_taskcluster, GROUP_TASKS_1, GROUP_TASKS_2): ("test-windows10-64-ccov/debug-mochitest-1", True), ("test-windows10-64-ccov/debug-mochitest-e10s-7", True), ("test-windows10-64-ccov/debug-cppunit", True), + ("test-windows10-64-ccov-qr/debug-mochitest-1", True), + ("test-windows10-64-ccov-qr/debug-mochitest-e10s-7", True), + ("test-windows10-64-ccov-qr/debug-cppunit", True), ("build-linux64-ccov/debug", True), ("build-linux64-ccov/opt", True), ("build-android-test-ccov/opt", True), ("build-win64-ccov/debug", True), ("test-linux64/debug-mochitest-1", False), ("test-windows10-64/debug-cppunit", False), + ("test-windows10-64-qr/debug-cppunit", False), ("build-win64/debug", False), ("build-signing-win64-ccov/debug", True), ], @@ -159,6 +163,9 @@ def test_is_coverage_task(task_name, expected): ("test-windows10-64-ccov/debug-mochitest-1", "mochitest-1"), ("test-windows10-64-ccov/debug-mochitest-e10s-7", "mochitest-7"), ("test-windows10-64-ccov/debug-cppunit", "cppunit"), + ("test-windows10-64-ccov-qr/debug-mochitest-1", "mochitest-1"), + ("test-windows10-64-ccov-qr/debug-mochitest-e10s-7", "mochitest-7"), + ("test-windows10-64-ccov-qr/debug-cppunit", "cppunit"), ("build-linux64-ccov/opt", "build"), ("build-android-test-ccov/opt", "build"), ("build-win64-ccov/debug", "build"), @@ -197,6 +204,12 @@ def test_chunk_to_suite(chunk, expected): ("test-windows10-64-ccov/debug-mochitest-1", "mochitest-1"), ("test-windows10-64-ccov/debug-mochitest-e10s-7", "mochitest-plain-chunked-7"), ("test-windows10-64-ccov/debug-cppunit", "cppunittest-1"), + ("test-windows10-64-ccov-qr/debug-mochitest-1", "mochitest-1"), + ( + "test-windows10-64-ccov-qr/debug-mochitest-e10s-7", + "mochitest-plain-chunked-7", + ), + ("test-windows10-64-ccov-qr/debug-cppunit", "cppunittest-1"), ("build-linux64-ccov/opt", "build"), ("build-android-test-ccov/opt", "build"), ("build-win64-ccov/debug", "build"), @@ -222,6 +235,9 @@ def test_get_chunk(task_name, expected): ("test-windows10-64-ccov/debug-mochitest-1", "mochitest"), ("test-windows10-64-ccov/debug-mochitest-e10s-7", "mochitest-plain-chunked"), ("test-windows10-64-ccov/debug-cppunit", "cppunittest"), + ("test-windows10-64-ccov-qr/debug-mochitest-1", "mochitest"), + ("test-windows10-64-ccov-qr/debug-mochitest-e10s-7", "mochitest-plain-chunked"), + ("test-windows10-64-ccov-qr/debug-cppunit", "cppunittest"), ("build-linux64-ccov/opt", "build"), ("build-android-test-ccov/opt", "build"), ("build-win64-ccov/debug", "build"), @@ -244,6 +260,9 @@ def test_get_suite(task_name, expected): ("test-windows10-64-ccov/debug-mochitest-1", "windows"), ("test-windows10-64-ccov/debug-mochitest-e10s-7", "windows"), ("test-windows10-64-ccov/debug-cppunit", "windows"), + ("test-windows10-64-ccov-qr/debug-mochitest-1", "windows"), + ("test-windows10-64-ccov-qr/debug-mochitest-e10s-7", "windows"), + ("test-windows10-64-ccov-qr/debug-cppunit", "windows"), ("build-linux64-ccov/opt", "linux"), ("build-android-test-ccov/opt", "android"), ("build-win64-ccov/debug", "windows"), diff --git a/events/tests/test_workflow.py b/events/tests/test_workflow.py index 9b35a1a08..24e9f8c0d 100644 --- a/events/tests/test_workflow.py +++ b/events/tests/test_workflow.py @@ -28,8 +28,13 @@ def test_is_coverage_task(mock_taskcluster): cov_task = {"task": {"metadata": {"name": "build-win64-ccov/debug"}}} assert hook.is_coverage_task(cov_task) - nocov_task = {"task": {"metadata": {"name": "test-linux64-ccov/opt-mochitest-1"}}} - assert hook.is_coverage_task(nocov_task) + cov_task = {"task": {"metadata": {"name": "test-linux64-ccov/opt-mochitest-1"}}} + assert hook.is_coverage_task(cov_task) + + cov_task = { + "task": {"metadata": {"name": "test-windows10-64-ccov-qr/opt-mochitest-1"}} + } + assert hook.is_coverage_task(cov_task) nocov_task = {"task": {"metadata": {"name": "test-linux64/opt-mochitest-1"}}} assert not hook.is_coverage_task(nocov_task)