Enable helix telemetry for official builds and PRs (dotnet/corefx#34441)
authorSantiago Fernandez Madero <safern@microsoft.com>
Tue, 8 Jan 2019 23:42:09 +0000 (15:42 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Jan 2019 23:42:09 +0000 (15:42 -0800)
* Enable helix telemetry for official builds and PRs

* Only send telemetry for official builds

Commit migrated from https://github.com/dotnet/corefx/commit/2acc3e4858d5305bbf8b51d5f3797c1cd41c3912

eng/pipelines/libraries/corefx-base.yml
eng/pipelines/libraries/freebsd.yml
eng/pipelines/libraries/linux.yml
eng/pipelines/libraries/macos.yml
eng/pipelines/libraries/redhat6.yml
eng/pipelines/libraries/windows.yml

index b50f9cc..e38f4b8 100644 (file)
@@ -17,7 +17,7 @@ parameters:
   # EACH JOB SHOULD INCLUDE THE FOLLOWING PROPERTIES (ASIDE FROM THE REQUIRED ONES IN THE JOB SCHEMA)
 
   # Required: as part of the strategy matrix, the following variables should be defined
-  #     _configuration: Debug | Release
+  #     _BuildConfig: Debug | Release
   #     _architecture: x64 | x86 | arm | arm64
   #     _framework: (netcoreapp, netfx, uap, etc).
   #     _helixQueues: Windows.Amd64 (Only needed if submitToHelix -> true.) -- Queues should be separated by + if multiple.
@@ -125,6 +125,10 @@ jobs:
           ${{ if and(ne(property.key, 'job'), ne(property.key, 'variables'), ne(property.key, 'enableMicrobuild')) }}:
             ${{ property.key }}: ${{ property.value }}
 
+        # enable helix telemetry -- we only send telemetry during official builds
+        enableTelemetry: ${{ parameters.isOfficialBuild }}
+        helixRepo: corefx
+
         name: ${{ job.job }}
         workspace:
           clean: all
@@ -144,7 +148,7 @@ jobs:
                     $(_commonArguments)
                     -framework $(_framework)
                     /p:ArchGroup=$(_architecture)
-                    /p:ConfigurationGroup=$(_configuration)
+                    /p:ConfigurationGroup=$(_BuildConfig)
                     /p:SkipTests=$(_skipTests)
                     /p:Outerloop=$(_outerloop)
                     /p:ArchiveTests=${{ job.submitToHelix }}
@@ -161,7 +165,7 @@ jobs:
               parameters:
                 targetOS: ${{ parameters.targetOS }}
                 archGroup: $(_architecture)
-                configuration: $(_configuration)
+                configuration: $(_BuildConfig)
                 helixQueues: $(_helixQueues)
                 msbuildScript: $(_msbuildCommand)
                 framework: $(_framework)
@@ -182,7 +186,7 @@ jobs:
             - task: PublishBuildArtifacts@1
               displayName: Publish packages to artifacts container
               inputs:
-                pathToPublish: $(Build.SourcesDirectory)/artifacts/packages/$(_configuration)
+                pathToPublish: $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)
                 artifactName: packages
                 artifactType: container
               condition: and(succeeded(), ne(variables['_skipPublishPackages'], 'true'))
index be8d4ea..4f35c10 100644 (file)
@@ -11,7 +11,7 @@ jobs:
       strategy:
         matrix:
           x64_Release:
-            _configuration: Release
+            _BuildConfig: Release
             _architecture: x64
             _framework: netcoreapp
             _buildScriptPrefix: 'DotNetCoreSdkDir=/usr/local/dotnet/ DotNetRoot=/usr/local/dotnet/ '
index a72fa21..69a8673 100644 (file)
@@ -18,7 +18,7 @@ jobs:
       strategy:
         matrix:
           x64_Release:
-            _configuration: Release
+            _BuildConfig: Release
             _architecture: x64
             _framework: netcoreapp
             _helixQueues: $(linuxDefaultQueues)
@@ -27,7 +27,7 @@ jobs:
             _buildExtraArguments: ''
 
           arm64_Release:
-            _configuration: Release
+            _BuildConfig: Release
             _architecture: arm64
             _framework: netcoreapp
             _helixQueues: $(linuxArm64Queues)
@@ -37,7 +37,7 @@ jobs:
           
           ${{ if eq(parameters.isOfficialBuild, 'true') }}:
             musl_x64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x64
               _framework: netcoreapp
               _helixQueues: $(alpineQueues)
@@ -73,7 +73,7 @@ jobs:
         matrix:
           ${{ if eq(parameters.isOfficialBuild, 'false') }}:
             musl_x64_Debug:
-              _configuration: Debug
+              _BuildConfig: Debug
               _architecture: x64
               _framework: netcoreapp
               _dockerContainer: alpine_36_container
@@ -81,7 +81,7 @@ jobs:
               _buildExtraArguments: /p:RuntimeOS=linux-musl /p:PortableBuild=false
 
           arm_Release:
-            _configuration: Release
+            _BuildConfig: Release
             _architecture: arm
             _framework: netcoreapp
             _buildExtraArguments: /p:RuntimeOS=ubuntu.16.04
index 9ccb984..4050759 100644 (file)
@@ -19,14 +19,14 @@ jobs:
         matrix:
           ${{ if eq(parameters.isOfficialBuild, 'false') }}:
             x64_Debug:
-              _configuration: Debug
+              _BuildConfig: Debug
               _architecture: x64
               _framework: netcoreapp
               _helixQueues: $(macOSQueues)
 
           ${{ if eq(parameters.isOfficialBuild, 'true') }}:
             x64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x64
               _framework: netcoreapp
               _helixQueues: $(macOSQueues)
index 9a561df..52cc6eb 100644 (file)
@@ -11,7 +11,7 @@ jobs:
       strategy:
         matrix:
           x64_Release:
-            _configuration: Release
+            _BuildConfig: Release
             _architecture: x64
             _framework: netcoreapp
             _buildExtraArguments: /p:RuntimeOS=rhel.6 /p:PortableBuild=false
index c1c2c73..55ca021 100644 (file)
@@ -20,25 +20,25 @@ jobs:
           # PR CI Matrix
           ${{ if eq(parameters.isOfficialBuild, 'false') }}:
             x64_Debug:
-              _configuration: Debug
+              _BuildConfig: Debug
               _architecture: x64
               _framework: netcoreapp
               _helixQueues: $(netcoreappWindowsQueues)+$(nanoQueues)
 
             x86_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x86
               _framework: netcoreapp
               _helixQueues: $(netcoreappWindowsQueues)
 
             NETFX_x86_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x86
               _framework: netfx
               _helixQueues: $(uapNetfxQueues)
 
             UWP_CoreCLR_x64_Debug:
-              _configuration: Debug
+              _BuildConfig: Debug
               _architecture: x64
               _framework: uap
               _helixQueues: $(uapNetfxQueues)
@@ -46,45 +46,45 @@ jobs:
           # Official build LEGS with HELIX Testing
           ${{ if eq(parameters.isOfficialBuild, 'true') }}:
             x64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x64
               _framework: netcoreapp
               _helixQueues: $(netcoreappWindowsQueues)+$(nanoQueues)
 
             x86_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x86
               _framework: netcoreapp
               _helixQueues: $(netcoreappWindowsQueues)
 
             NETFX_x86_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x86
               _framework: netfx
               _helixQueues: $(uapNetfxQueues)
               _skipPublishPackages: true # In NETFX leg we don't produce packages
 
             NETFX_x64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x64
               _framework: netfx
               _helixQueues: $(uapNetfxQueues)
               _skipPublishPackages: true # In NETFX leg we don't produce packages
 
             UAP_x64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x64
               _framework: uap
               _helixQueues: $(uapNetfxQueues)
 
             UAP_x86_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x86
               _framework: uap
               _helixQueues: $(uapNetfxQueues)
 
             UAP_arm_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: arm
               _framework: uap
               _helixQueues: $(windowsArmQueue)
@@ -121,14 +121,14 @@ jobs:
           # PR Validation Matrix
           ${{ if eq(parameters.isOfficialBuild, 'false') }}:
             x64_Debug:
-              _configuration: Debug
+              _BuildConfig: Debug
               _architecture: x64
               _framework: allConfigurations
 
           # Official Build Matrix
           ${{ if eq(parameters.isOfficialBuild, 'true') }}:
             x64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x64
               _framework: allConfigurations
 
@@ -146,7 +146,7 @@ jobs:
                   -ci
                   -$(_framework)
                   /p:ArchGroup=$(_architecture)
-                  /p:ConfigurationGroup=$(_configuration)
+                  /p:ConfigurationGroup=$(_BuildConfig)
                   /p:RuntimeOS=win10
                   $(_windowsOfficialBuildArguments)
                   $(_msbuildCommonParameters)
@@ -157,7 +157,7 @@ jobs:
                     -test
                     /p:TargetGroup=netstandard
                     /p:ArchGroup=$(_architecture)
-                    /p:ConfigurationGroup=$(_configuration)
+                    /p:ConfigurationGroup=$(_BuildConfig)
                     /p:SkipTests=true
             displayName: Build Netstandard Test Suite
           - script: build.cmd
@@ -165,7 +165,7 @@ jobs:
                     -test
                     -$(_framework)
                     /p:ArchGroup=$(_architecture)
-                    /p:ConfigurationGroup=$(_configuration)
+                    /p:ConfigurationGroup=$(_BuildConfig)
             displayName: Run Package Tests
 
     # TODO: UAPAOT official builds should send to helix using continuation runner.
@@ -176,38 +176,38 @@ jobs:
         matrix:
           ${{ if eq(parameters.isOfficialBuild, 'false') }}:
             UWP_NETNative_x86_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x86
               _framework: uapaot
 
           ${{ if eq(parameters.isOfficialBuild, 'true') }}:
             arm_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: arm
               _framework: netcoreapp
 
             arm64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: arm64
               _framework: netcoreapp
 
             UAPAOT_x86_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x86
               _framework: uapaot
 
             UAPAOT_x64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: x64
               _framework: uapaot
 
             UAPAOT_arm_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: arm
               _framework: uapaot
 
             UAPAOT_arm64_Release:
-              _configuration: Release
+              _BuildConfig: Release
               _architecture: arm64
               _framework: uapaot