Skip to content

Inhibit code coverage upload for ADO.Net pipelines#3828

Merged
mdaigle merged 2 commits into
mainfrom
dev/paul/cred-scan-code-cov
Dec 5, 2025
Merged

Inhibit code coverage upload for ADO.Net pipelines#3828
mdaigle merged 2 commits into
mainfrom
dev/paul/cred-scan-code-cov

Conversation

@paulmedynski
Copy link
Copy Markdown
Contributor

Description

  • Added CredScan suppressions for test files that contain legitimate secrets.
  • Added pipeline variable to control whether or not we upload code coverage results.

- Added CredScan suppressions for test files that contain legitimate secrets.
- Added pipeline variable to control whether or not we upload code coverage results.
@paulmedynski paulmedynski added this to the 7.0.0-preview3 milestone Dec 5, 2025
Copilot AI review requested due to automatic review settings December 5, 2025 15:37
@paulmedynski paulmedynski requested a review from a team as a code owner December 5, 2025 15:37
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Dec 5, 2025
@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Dec 5, 2025
Copy link
Copy Markdown
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 introduces pipeline configuration changes to control code coverage uploads and adds CredScan suppressions for legitimate test secrets.

  • Adds a new pipeline variable ci_var_uploadTestResult that controls whether code coverage results are uploaded to CodeCov
  • Removes the default value from the upload parameter in the code coverage job template, making it a required parameter
  • Adds CredScan suppressions for test files containing legitimate test certificates and passwords used in Always Encrypted tests

Reviewed changes

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

File Description
eng/pipelines/dotnet-sqlclient-ci-core.yml Adds detailed comments and passes the ci_var_uploadTestResult pipeline variable to the code coverage job's upload parameter
eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml Removes the default: true value from the upload parameter, making it required
.config/CredScanSuppressions.json Adds suppressions for two test files: a fixture class containing test passwords and a test certificate PFX file

Comment thread eng/pipelines/dotnet-sqlclient-ci-core.yml Outdated
Copy link
Copy Markdown
Contributor Author

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

Commentary for reviewers.

Comment thread .config/CredScanSuppressions.json
Comment thread eng/pipelines/dotnet-sqlclient-ci-core.yml Outdated
Comment thread eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml
Comment thread eng/pipelines/dotnet-sqlclient-ci-core.yml
@mdaigle mdaigle merged commit 5e14b56 into main Dec 5, 2025
250 checks passed
@mdaigle mdaigle deleted the dev/paul/cred-scan-code-cov branch December 5, 2025 21:43
@github-project-automation github-project-automation Bot moved this from In review to Done in SqlClient Board Dec 5, 2025
apoorvdeshmukh added a commit that referenced this pull request Jan 13, 2026
samsharma2700 added a commit that referenced this pull request Jan 13, 2026
cheenamalhotra pushed a commit that referenced this pull request Jan 14, 2026
samsharma2700 added a commit that referenced this pull request Jan 14, 2026
samsharma2700 added a commit that referenced this pull request Jan 15, 2026
Port #3828 to release/6.0 to fix CodeCoverage upload issues observed in ADO.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants