question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please consider using `ExitWithExitCode 0` for failed builds only on Azure Pipelines

See original GitHub issue

As part of the https://github.com/dotnet/arcade/pull/6635 PR, the build scripts used by Arcade were updated to return a 0 exit code for build errors when the -ci flag is specified. While the remark was made that it could break certain scenarios like CI builds made on GitHub Actions, it was assumed that -ci meant Azure Pipelines and no check was added to avoid using ExitWithExitCode 0 without considering the actual CI environment.

In the aspnet-contrib and OpenIddict projects, we use Arcade on GitHub Actions for our CI builds, and this change sadly broke us: https://github.com/openiddict/openiddict-core/issues/1546 (no need to say it wasn’t trivial to find why failed builds were reported as successful… 😄).

Is there a chance the suggested check could be added, so that the ExitWithExitCode 0 trick is only used on Azure Pipelines?

/cc @alexperovich @ChadNedzlek

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
markwilkiecommented, Nov 12, 2022

thoughts @ChadNedzlek ?

0reactions
kevinchaletcommented, Dec 15, 2022

Can someone from the Arcade team PTAL? This is really degrading the UX of our contributors. See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/pull/739#issuecomment-1353099136 for another very recent case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build fails with exit code 0 - Power Platform Community
Currently, when pcf-scripts build fails, it exits with exit code 0, which is a successful code completion. However, this means that our  ......
Read more >
Azure Pipeline Step Fails Even Though Exit Code is 0
I have set up an azure-pipeline yaml config with a pipeline job that runs 5 scripts. The config for each script has the...
Read more >
Azure DevOps reports PowerShell task as passed even ...
It seems that the Azure PowerShell task has an issue capturing the exit code from a script file, it works fine with the...
Read more >
LastExitCode modified by an executable that is run as part ...
My tests were all passing, but when running in my Packer build were causing the build to fail because the Exit Code was...
Read more >
Azure devops - build fails randomly with - Could not find ...
Hi Community We have just started out using SonarCloud with Azure dev-ops and we are still learning. Our build pipeline works as expected ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found