Skip to content

Make code coverage artifact names unique per attempt - #4616

Merged
paulmedynski merged 1 commit into
mainfrom
dev/paul/code-cov-publish-names
Aug 31, 2026
Merged

paulmedynski merged 1 commit into
mainfrom
dev/paul/code-cov-publish-names

Conversation

@paulmedynski

@paulmedynski paulmedynski commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Description

Make the diagnostic Cobertura pipeline artifact name unique for every stage/job attempt by appending $(System.StageAttempt)-$(System.JobAttempt).

Pipeline artifacts are immutable within a build. Rerunning the final code coverage job currently fails when Cobertura Merge Results was published by an earlier attempt. Attempt-qualified names allow this long-running pipeline's final job to be rerun while retaining each attempt's diagnostic artifact.

Copilot AI balanced review requested due to automatic review settings August 31, 2026 19:11
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Aug 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

Pull request overview

Makes diagnostic Cobertura artifact names unique across reruns.

Changes:

  • Appends stage and job attempt numbers to the artifact name.
  • Documents why attempt-qualified naming is required.
File summaries
File Description
eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml Prevents artifact-name collisions when rerunning coverage jobs.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@paulmedynski paulmedynski added this to the 7.1.0 milestone Aug 31, 2026
@paulmedynski paulmedynski added Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. Hotfix 7.0.3 PRs targeting main that should be backported to release/7.0 branch for next release. Hotfix 6.1.7 PRs targeting main that should be backported to release/6.1 branch for future hotfix labels Aug 31, 2026
@paulmedynski
paulmedynski marked this pull request as ready for review August 31, 2026 19:14
@paulmedynski
paulmedynski requested a review from a team as a code owner August 31, 2026 19:14
@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Aug 31, 2026
@paulmedynski
paulmedynski enabled auto-merge (squash) August 31, 2026 19:14
@paulmedynski
paulmedynski merged commit f9fb0c9 into main Aug 31, 2026
367 of 381 checks passed
@paulmedynski
paulmedynski deleted the dev/paul/code-cov-publish-names branch August 31, 2026 23:23
@github-project-automation github-project-automation Bot moved this from In review to Done in SqlClient Board Aug 31, 2026
cheenamalhotra pushed a commit that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. Hotfix 6.1.7 PRs targeting main that should be backported to release/6.1 branch for future hotfix Hotfix 7.0.3 PRs targeting main that should be backported to release/7.0 branch for next release.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants