Bug 1636605 [wpt PR 23493] - [taskcluster] Fix unit tests, a=testonly
☠☠ backed out by 267cd03f6f5c ☠ ☠
authorRobert Ma <robertma@chromium.org>
Wed, 13 May 2020 09:49:12 +0000
changeset 530107 11648974ec00d31d05d8271601a6170b7b2ca342
parent 530106 0f1c47233fd41a7a0476b58d3e1167df6a1680d0
child 530108 8a0d48c8c1b715e7a4c5aec3109c7b9043a06cbd
push id37419
push userarchaeopteryx@coole-files.de
push dateFri, 15 May 2020 09:33:04 +0000
treeherdermozilla-central@5a0a960a8d55 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1636605, 23493
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1636605 [wpt PR 23493] - [taskcluster] Fix unit tests, a=testonly Automatic update from web-platform-tests [taskcluster] Fix unit tests (#23493) Fix JSON schema URLs and add error checks. -- wpt-commits: 87b436ffd64cf2419efefa60b6649ab71f4d1298 wpt-pr: 23493
testing/web-platform/tests/tools/ci/tc/tests/test_valid.py
--- a/testing/web-platform/tests/tools/ci/tc/tests/test_valid.py
+++ b/testing/web-platform/tests/tools/ci/tc/tests/test_valid.py
@@ -37,21 +37,23 @@ def test_verify_taskcluster_yml():
 
         jsone.render(template, context)
 
 
 def test_verify_payload():
     """Verify that the decision task produces tasks with a valid payload"""
     from tools.ci.tc.decision import decide
 
-    create_task_schema = requests.get(
-        "https://raw.githubusercontent.com/taskcluster/taskcluster/blob/master/services/queue/schemas/v1/create-task-request.yml")
-    create_task_schema = yaml.safe_load(create_task_schema.content)
+    r = requests.get("https://community-tc.services.mozilla.com/schemas/queue/v1/create-task-request.json")
+    r.raise_for_status()
+    create_task_schema = r.json()
 
-    payload_schema = requests.get("https://raw.githubusercontent.com/taskcluster/docker-worker/master/schemas/v1/payload.json").json()
+    r = requests.get("https://raw.githubusercontent.com/taskcluster/taskcluster/master/workers/docker-worker/schemas/v1/payload.json")
+    r.raise_for_status()
+    payload_schema = r.json()
 
     jobs = ["lint",
             "manifest_upload",
             "resources_unittest",
             "tools_unittest",
             "wpt_integration",
             "wptrunner_infrastructure",
             "wptrunner_unittest"]