Skip to main content
Question

A build with 'critical errors' returns an 'OK' status code

  • June 16, 2026
  • 2 replies
  • 412 views

Forum|alt.badge.img+1

Say I have a some modules containing issues. If I run cdf build on them, and the output is a message saying “Do not proceed to deploy” I would expect the resulting status code to be non-zero, so you can detect failures in deployment scripts.

Real example of the build unexpectedly returning a successful status-code:

I run this command: uv run cdf build -m modules/module1 -m modules/module2 -m modules/module3 && echo "This only prints if the previous command returns a Success status code"
 


This is a problem because CI/CD pipelines won’t catch that there are issues with the modules.​​​​​

2 replies

  • Architect
  • June 19, 2026

Hi ​@roodletoof. I agree. Earlier we had the ability to set a flag like

-w | --exit-non-zero-on-warning

to get the behaviour you want. We’ll reintroduce something like that. 


Michael Bennett
Expert ⭐️⭐️⭐️⭐️
Forum|alt.badge.img+6
  • Expert ⭐️⭐️⭐️⭐️
  • July 3, 2026

Thank you both for your feedback. I have brought this to the attention of the toolkit team to triage for a bug. Can you provide any further details on the issue? 

 

Regards,

Michael Bennett

Academy Engineer