Bug 1528232 [wpt PR 15384] - [Azure] Use curl instead of InvokeRESTAPI@1, a=testonly
authorRobert Ma <bob1211@gmail.com>
Tue, 05 Mar 2019 12:13:04 +0000
changeset 522149 f62003f22992c78307a6d36deab204fb2f789f83
parent 522148 a8be7c66cb41dd9fdc8bc15775c27487eff57cd9
child 522150 f6690a972633487cbb8c5a3415bad810320d84a9
push id10871
push usercbrindusan@mozilla.com
push dateMon, 18 Mar 2019 15:49:32 +0000
treeherdermozilla-beta@018abdd16060 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1528232, 15384
milestone67.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 1528232 [wpt PR 15384] - [Azure] Use curl instead of InvokeRESTAPI@1, a=testonly Automatic update from web-platform-tests [Azure] Use curl instead of InvokeRESTAPI@1 (#15384) InvokeRESTAPI@1 doesn't seem to allow us to customize the timeout (it has a builtin timeout of 20s), and the notify endpoint takes a while to complete as it needs to download the artifacts from Azure. Also, run both hooks (prod & staging) independently. Hope to alleviate #1131. -- wpt-commits: e0a7556f7d12da1dc38b6a051dacb224da442b72 wpt-pr: 15384
testing/web-platform/tests/.azure-pipelines.yml
--- a/testing/web-platform/tests/.azure-pipelines.yml
+++ b/testing/web-platform/tests/.azure-pipelines.yml
@@ -209,20 +209,16 @@ jobs:
     displayName: 'Publish results'
     inputs:
       artifactName: 'results'
 
 # The InvokeRESTAPI task can only run in a server job.
 - job: all_post
   displayName: 'all tests (wpt.fyi hook)'
   dependsOn: all_macOS
-  pool: server
+  pool:
+    vmImage: 'ubuntu-16.04'
   steps:
-  - task: InvokeRESTAPI@1
+  - script: curl -s -S https://wpt.fyi/api/checks/azure/$(Build.BuildId)
     displayName: 'Invoke wpt.fyi hook'
-    inputs:
-      serviceConnection: wpt.fyi
-      urlSuffix: /api/checks/azure/$(Build.BuildId)
-  - task: InvokeRESTAPI@1
+  - script: curl -s -S https://staging.wpt.fyi/api/checks/azure/$(Build.BuildId)
     displayName: 'Invoke staging.wpt.fyi hook'
-    inputs:
-      serviceConnection: staging.wpt.fyi
-      urlSuffix: /api/checks/azure/$(Build.BuildId)
+    condition: succeededOrFailed()