Skip to content

fix(build): remove invalid double cast on JaCoCo counter array#312

Merged
WilliamBerryiii merged 1 commit intomainfrom
fix/pester-coverage-threshold-cast
Feb 18, 2026
Merged

fix(build): remove invalid double cast on JaCoCo counter array#312
WilliamBerryiii merged 1 commit intomainfrom
fix/pester-coverage-threshold-cast

Conversation

@WilliamBerryiii
Copy link
Member

Description

Removed a [double] cast that was applied to the entire $coverage.report.counter array before the pipeline could filter it to the LINE counter type. JaCoCo XML reports contain multiple <counter> elements (LINE, BRANCH, etc.), so the cast on System.Object[] raised a conversion error and broke the Coverage Threshold Check step on every CI run.

  • fix(build): removed premature [double] cast from the $coverage.report.counter pipeline expression in the Coverage Threshold Check step of the Pester Tests workflow

Type of Change

  • 🐛 Bug fix (non-breaking change fixing an issue)
  • ✨ New feature (non-breaking change adding functionality)
  • 💥 Breaking change (fix or feature causing existing functionality to change)
  • 📚 Documentation update
  • 🏗️ Infrastructure change (Terraform/IaC)
  • ♻️ Refactoring (no functional changes)

Component(s) Affected

  • deploy/000-prerequisites - Azure subscription setup
  • deploy/001-iac - Terraform infrastructure
  • deploy/002-setup - OSMO control plane / Helm
  • deploy/004-workflow - Training workflows
  • src/training - Python training scripts
  • docs/ - Documentation

Testing Performed

  • Terraform plan reviewed (no unexpected changes)
  • Terraform apply tested in dev environment
  • Training scripts tested locally with Isaac Sim
  • OSMO workflow submitted successfully
  • Smoke tests passed (smoke_test_azure.py)

Documentation Impact

  • No documentation changes needed
  • Documentation updated in this PR
  • Documentation issue filed

Checklist

…threshold check

- JaCoCo XML report contains multiple counter elements (LINE, BRANCH, etc.)
- [double] cast applied to System.Object[] before pipeline filters to LINE
- remove premature cast; ForEach-Object already returns numeric via [math]::Round

🐛 - Generated by Copilot
@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@WilliamBerryiii WilliamBerryiii modified the milestone: v0.3.0 Feb 18, 2026
@WilliamBerryiii WilliamBerryiii merged commit 6b196de into main Feb 18, 2026
12 checks passed
@WilliamBerryiii WilliamBerryiii deleted the fix/pester-coverage-threshold-cast branch February 18, 2026 23:28
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.

2 participants