Skip to content

fix(ci): retry OpenCppCoverage install and fail if binary missing - #5529

Open
Vedant Madane (VedantMadane) wants to merge 1 commit into
microsoft:mainfrom
VedantMadane:fix/opencppcoverage-install-retry-5330
Open

fix(ci): retry OpenCppCoverage install and fail if binary missing#5529
Vedant Madane (VedantMadane) wants to merge 1 commit into
microsoft:mainfrom
VedantMadane:fix/opencppcoverage-install-retry-5330

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

  • Retry OpenCppCoverage download+silent install up to 3 times (transient failures).
  • Set $ErrorActionPreference = 'Stop' and only succeed when OpenCppCoverage.exe is present.
  • Apply the same hardening on GitHub Actions and Azure Pipelines reusable test templates.

Test plan

  • CI unit_tests / coverage job installs OpenCppCoverage successfully
  • Forced install failure surfaces as a failed step (not green)

Fixes #5330

The coverage install step could appear green when the silent installer did
not actually leave OpenCppCoverage.exe on disk. Retry download+install a
few times, require the binary path, and set ErrorActionPreference Stop so
failures cannot be ignored.

Fixes microsoft#5330

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

OpenCppCoverage install step fails silently

3 participants