Skip to content

Conversation

RussKie
Copy link
Contributor

@RussKie RussKie commented Apr 7, 2025

This baffled me for some time - I kick off a GHA build, and the log shows multiple build errors, yet the step is reported as success. Which implies the exit code is lost somewhere in transit.

E.g., eng/build.ps1 exists with 1, yet build.cmd exits with 0:
image

This fixes the issue. The proof is here.

Build.cmd failed to return an actual exit code from eng/build.ps1,
which resulted in CI steps reported as "passed" despite errors
during the execution.
@Copilot Copilot AI review requested due to automatic review settings April 7, 2025 06:43
Copy link
Contributor

@Copilot 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.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • build.cmd: Language not supported

@github-actions github-actions bot added the area-engineering-systems infrastructure helix infra engineering repo stuff label Apr 7, 2025
@RussKie RussKie self-assigned this Apr 7, 2025
@RussKie RussKie requested a review from radical April 7, 2025 09:21
@danmoseley danmoseley merged commit fcfc216 into dotnet:main Apr 7, 2025
175 checks passed
@RussKie RussKie deleted the correctly_fail_build.cmd branch April 7, 2025 23:10
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-engineering-systems infrastructure helix infra engineering repo stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants