Skip to content

Conversation

@samsharma2700
Copy link
Contributor

Description

Port 3828 to release/6.1 to fix CodeCoverage upload issues observed in ADO.

Issues

41643

Copilot AI review requested due to automatic review settings January 13, 2026 21:58
@samsharma2700 samsharma2700 requested a review from a team as a code owner January 13, 2026 21:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ports changes from PR #3828 to the release/6.0 branch to fix CodeCoverage upload issues in Azure DevOps pipelines. The changes introduce a mechanism to conditionally control whether code coverage results are uploaded to CodeCov based on a pipeline variable.

Changes:

  • Removes the default value for the upload parameter in the code coverage job template
  • Adds explicit configuration of the upload parameter using a pipeline variable ci_var_uploadTestResult with comprehensive documentation comments

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
eng/pipelines/dotnet-sqlclient-ci-core.yml Adds the upload parameter configuration using a pipeline variable with detailed comments explaining how to set it up in Azure DevOps UI
eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml Removes the default value for the upload parameter, requiring callers to explicitly specify whether to upload to CodeCov

@mdaigle
Copy link
Contributor

mdaigle commented Jan 13, 2026

See the changes I made to code coverage upload in #3856. The pipeline variable is not available at compile time and so it not compatible with the ${{}} reference style. It's possible to do it with a dynamically evaluated reference, but I think the parameter approach (what's included in my PR) is simple and allows us to adjust the value when manually invoking a pipeline.

Copy link
Contributor

@mdaigle mdaigle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above :)

Copy link
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as @mdaigle is happy, I'm happy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants