Skip to content

Define unit test to ensure that telemetry is not enabled in source-built SDK #5067

Open
@mthalman

Description

@mthalman

Telemetry gets enabled in the SDK when the OfficialBuilder property is set to Microsoft. For the changes in dotnet/sdk#48327, it actually caused the SB job that was included into the UB pipeline to have telemetry enabled. This is because it gets included in the same stage as the UB jobs. This happens because the buildSourceOnly parameter is false for the stage when importing the vmr-build.yml variables template: https://github.com/dotnet/sdk/blob/fc7f6e80ac1bd3de3269a98ff92f201116ac59f1/eng/pipelines/templates/variables/vmr-build.yml#L58-L65.

A unit test would have caught this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-testingImprovements in CI and testing

    Type

    No type

    Projects

    Status

    10.0

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions