Bug 1529807 [wpt PR 15498] - [Azure Pipelines] Add wpt.fyi hooks for each individual job/run, a=testonly
authorPhilip Jägenstedt <philip@foolip.org>
Wed, 06 Mar 2019 12:33:17 +0000
changeset 464638 48aba45c5534
parent 464637 f1ad8d503ced
child 464639 6d7a636b53c9
push id35717
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:45:26 +0000
treeherdermozilla-central@e0861be8d6c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1529807, 15498
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 1529807 [wpt PR 15498] - [Azure Pipelines] Add wpt.fyi hooks for each individual job/run, a=testonly Automatic update from web-platform-tests [Azure Pipelines] Add wpt.fyi hooks for each individual job/run (#15498) * [Azure Pipelines] Add wpt.fyi hooks for each individual job/run * Make job name unique * No dashes in job names -- wpt-commits: 8ba55334175854f7461257e9d89a104a54f6d748 wpt-pr: 15498
testing/web-platform/tests/.azure-pipelines.yml
testing/web-platform/tests/tools/ci/azure/fyi_hook.yml
--- a/testing/web-platform/tests/.azure-pipelines.yml
+++ b/testing/web-platform/tests/.azure-pipelines.yml
@@ -26,28 +26,36 @@ jobs:
   displayName: 'affected tests (Safari Technology Preview)'
   condition: eq(variables['Build.Reason'], 'PullRequest')
   pool:
     vmImage: 'macOS-10.13'
   steps:
   - template: tools/ci/azure/affected_tests.yml
     parameters:
       artifactName: 'safari-preview-affected-tests'
+- template: tools/ci/azure/fyi_hook.yml
+  parameters:
+    dependsOn: affected_safari_preview
+    artifactName: safari-preview-affected-tests
 
 - job: affected_without_changes_safari_preview
   displayName: 'affected tests without changes (Safari Technology Preview)'
   condition: eq(variables['Build.Reason'], 'PullRequest')
   pool:
     vmImage: 'macOS-10.13'
   steps:
   - template: tools/ci/azure/affected_tests.yml
     parameters:
       checkoutCommit: 'HEAD^1'
       affectedRange: 'HEAD@{1}'
       artifactName: 'safari-preview-affected-tests-without-changes'
+- template: tools/ci/azure/fyi_hook.yml
+  parameters:
+    dependsOn: affected_without_changes_safari_preview
+    artifactName: safari-preview-affected-tests-without-changes
 
 # The decision jobs runs `./wpt test-jobs` to determine which jobs to run,
 # and all following jobs wait for it to finish and depend on its output.
 - job: decision
   displayName: './wpt test-jobs'
   condition: eq(variables['Build.Reason'], 'PullRequest')
   pool:
     vmImage: 'ubuntu-16.04'
@@ -179,16 +187,20 @@ jobs:
   - template: tools/ci/azure/update_manifest.yml
   - script: python ./wpt run --no-manifest-update --no-restart-on-unexpected --no-fail-on-unexpected --install-fonts --test-types reftest testharness --this-chunk $(System.JobPositionInPhase) --total-chunks $(System.TotalJobsInPhase) --chunk-type hash --log-tbpl - --log-tbpl-level info --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json edge_webdriver
     displayName: 'Run tests'
   - task: PublishBuildArtifacts@1
     displayName: 'Publish results'
     inputs:
       artifactName: 'edge-results'
   - template: tools/ci/azure/cleanup_win10.yml
+- template: tools/ci/azure/fyi_hook.yml
+  parameters:
+    dependsOn: results_edge
+    artifactName: edge-results
 
 # All `./wpt run` tests are run from epochs/* branches on a schedule. See
 # documentation at the top of this file for required setup.
 - job: results_safari_preview
   displayName: 'all tests (Safari Technology Preview)'
   condition: eq(variables['Build.Reason'], 'Schedule')
   strategy:
     parallel: 4 # chosen to make runtime ~2h
@@ -206,8 +218,12 @@ jobs:
   - template: tools/ci/azure/update_hosts.yml
   - 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: 'safari-preview-results'
+- template: tools/ci/azure/fyi_hook.yml
+  parameters:
+    dependsOn: results_safari_preview
+    artifactName: safari-preview-results
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/tools/ci/azure/fyi_hook.yml
@@ -0,0 +1,18 @@
+# This job is used to get a run into wpt.fyi and staging.wpt.fyi, by notifying
+# them with the build number and artifact to use.
+
+parameters:
+  dependsOn: ''
+  artifactName: ''
+
+jobs:
+- job: ${{ parameters.dependsOn }}_hook
+  displayName: 'wpt.fyi hook: ${{ parameters.artifactName }}'
+  dependsOn: ${{ parameters.dependsOn }}
+  pool:
+    vmImage: 'ubuntu-16.04'
+  steps:
+  - script: curl -s -S https://wpt.fyi/api/checks/azure/$(Build.BuildId)?artifact=${{ parameters.artifactName }}
+    displayName: 'Invoke wpt.fyi hook'
+  - script: curl -s -S https://staging.wpt.fyi/api/checks/azure/$(Build.BuildId)?artifact=${{ parameters.artifactName }}
+    displayName: 'Invoke staging.wpt.fyi hook'