Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cbuild] doesn't report build status properly via exit code #48

Closed
JonatanAntoni opened this issue Mar 7, 2023 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@JonatanAntoni
Copy link
Contributor

JonatanAntoni commented Mar 7, 2023

Using cbuild to build a solution context which has compiler issues still returns with error level 0:

$ cbuild demo.csolution.yml --context demo.debug+target --packs --update-rte
info cbuild: Build Invocation 1.5.0 (C) 2023 Arm Ltd. and Contributors
 :
ninja: build stopped: subcommand failed.
error cbuild: error executing 'cmake' build
error cbuild: error building './demo.debug+target.cprj'

$ echo "cbuild returned with exit code $?"
cbuild returned with exit code 0
                                ^
                                this should reflect the error 

Instead, cbuild should report the overall result in its exit code.

@jkrech jkrech changed the title cbuild doesn't report build status properly [cbuild] doesn't report build status properly via exit code Mar 7, 2023
@jkrech jkrech added the bug Something isn't working label Mar 7, 2023
@soumeh01
Copy link
Collaborator

soumeh01 commented Mar 8, 2023

I could replicate the issue cbuild 1.5.0.
Seems like this issue is resolved in the cleanup and restructuring. Couldn't replicate in the current cbuild.

@jkrech
Copy link
Member

jkrech commented Mar 21, 2023

@JonatanAntoni I am closing this now, but please reopen in case you find it is not solved for you.

@Hoohaha
Copy link

Hoohaha commented Apr 11, 2023

@jkrech

When will the new version will be released?
or is there have nightly build?

it's a blocking issue for CI integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants