Bug 1523562 [wpt PR 15037] - Invoke the staging.wpt.fyi Azure hook at the end of daily run, a=testonly
authorPhilip Jägenstedt <philip@foolip.org>
Thu, 31 Jan 2019 19:00:34 +0000
changeset 458117 e1e7aab6797d1bb4f0f6eed73b9a829456849146
parent 458116 e3188ef0eb2c2f6b9c2ed6277e2cddd0887d2586
child 458118 46366262f14409c557768e11d188ae5f630053e1
push id35518
push useropoprus@mozilla.com
push dateFri, 08 Feb 2019 09:55:14 +0000
treeherdermozilla-central@3a3e393396f4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1523562, 15037, 14836
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 1523562 [wpt PR 15037] - Invoke the staging.wpt.fyi Azure hook at the end of daily run, a=testonly Automatic update from web-platform-tests Invoke the staging.wpt.fyi Azure hook at the end of daily run (#15037) This needs to be changed to use wpt.fyi when verified. Towards https://github.com/web-platform-tests/wpt/issues/14836. -- wpt-commits: 95edbe97fbad8eb2b77d901da5c4479a53182e65 wpt-pr: 15037
testing/web-platform/tests/.azure-pipelines.yml
--- a/testing/web-platform/tests/.azure-pipelines.yml
+++ b/testing/web-platform/tests/.azure-pipelines.yml
@@ -1,19 +1,25 @@
 # This is the configuration file for Azure Pipelines, used to run tests on
 # macOS. Documentation to help understand this setup:
 # https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema
 # https://docs.microsoft.com/en-us/azure/devops/pipelines/process/multiple-phases
 # https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates
 # https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables
 # https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/index
 #
-# In addition to this configuration file, the "Build pull requests from forks
-# of this repository" setting must also be enabled in the Azure DevOps project:
-# https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github#validate-contributions-from-forks
+# In addition to this configuration file, some setup in the Azure DevOps
+# project is required:
+#  - The "Build pull requests from forks of this repository" setting must be
+#    enabled: https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github#validate-contributions-from-forks
+#  - A scheduled build for the epochs/daily branch needs to be set up, the push
+#    to the branch alone is not enough: https://github.community/t5/GitHub-API-Development-and/Can-the-Checks-API-be-used-to-trigger-two-runs-when-two-pushed/m-p/17777
+#  - Because scheduled builds don't show up as check runs on GitHub, the wpt.fyi
+#    integration is different; a service connection named staging.wpt.fyi with
+#    URL https://staging.wpt.fyi needs to be created.
 
 jobs:
 # The affected tests jobs are unconditional for speed, as most PRs have one or
 # more affected tests: https://github.com/web-platform-tests/wpt/issues/13936.
 - job: affected_macOS
   displayName: 'affected tests (Safari Technology Preview)'
   condition: eq(variables['Build.Reason'], 'PullRequest')
   pool:
@@ -143,8 +149,20 @@ jobs:
   - template: tools/ci/azure/update_manifest.yml
   - script: no_proxy='*' ./wpt run --no-manifest-update --no-restart-on-unexpected --no-fail-on-unexpected --this-chunk=$(System.JobPositionInPhase) --total-chunks=$(System.TotalJobsInPhase) --chunk-type hash --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json --channel preview safari
     displayName: 'Run tests'
   - task: PublishBuildArtifacts@1
     displayName: 'Publish results'
     inputs:
       artifactName: 'results'
     condition: succeededOrFailed()
+
+# The InvokeRESTAPI task can only run in a server job.
+- job: all_post
+  displayName: 'all tests (wpt.fyi hook)'
+  dependsOn: all_macOS
+  pool: server
+  steps:
+  - task: InvokeRESTAPI@1
+    displayName: 'Invoke wpt.fyi hook'
+    inputs:
+      serviceConnection: staging.wpt.fyi
+      urlSuffix: /api/checks/azure/$(Build.BuildId)