Skip to content

feat(ir): add typed builder for PublishCodeCoverageResults@2#1131

Merged
jamesadevine merged 1 commit into
mainfrom
feat/ir-publish-code-coverage-results-d2513ffad5a4a881
Jun 21, 2026
Merged

feat(ir): add typed builder for PublishCodeCoverageResults@2#1131
jamesadevine merged 1 commit into
mainfrom
feat/ir-publish-code-coverage-results-d2513ffad5a4a881

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Adds a typed builder struct for PublishCodeCoverageResults@2 to the ado-aw IR.

Motivation

Previously, any code that needed to emit this ADO task step had to hand-craft
TaskStep::new(...) with raw string input keys. This PR introduces a typed
builder struct (new(<required>) + typed optional setters + into_step()) so
the required input is positional, optional inputs are type-checked, and call
sites stop using stringly-typed keys.

Changes

  • src/compile/ir/tasks/publish_code_coverage_results.rs: new
    PublishCodeCoverageResults builder struct and its #[cfg(test)] mod tests
    (4 unit tests)
  • src/compile/ir/tasks/mod.rs: pub mod publish_code_coverage_results;
    declaration (alphabetical order, between publish_build_artifacts and
    publish_pipeline_artifact)

ADO Task Reference

Validation

  • cargo build --all-targets
  • cargo test 'tasks::publish_code_coverage_results' — 4 tests pass
  • cargo clippy --all-targets --all-features --workspace -- -D warnings

Created by the ado-task-ir-contributor workflow.

Generated by ADO Task IR Contributor · 647.7 AIC · ⌖ 19.3 AIC · ⊞ 38.4K ·

Adds PublishCodeCoverageResults builder struct to src/compile/ir/tasks/
with one required input (summaryFileLocation) and two optional inputs
(pathToSources, failIfCoverageEmpty). Includes four unit tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jamesadevine jamesadevine marked this pull request as ready for review June 21, 2026 07:35
@jamesadevine jamesadevine merged commit 2c2572c into main Jun 21, 2026
@jamesadevine jamesadevine deleted the feat/ir-publish-code-coverage-results-d2513ffad5a4a881 branch June 21, 2026 07:36
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.

1 participant