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

return value if deadlocked are detected #74

Open
gdesmott opened this issue Nov 22, 2024 · 4 comments
Open

return value if deadlocked are detected #74

gdesmott opened this issue Nov 22, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@gdesmott
Copy link
Contributor

I'm trying to integrate lockbud (great work btw, thanks a lot!) in our GitLab CI. But according to my tests cargo lockbud -k deadlock stills returns 0 if deadlocks are detected.

Shouldn't it return an error code so the CI can catch it and fail the job?

@BurtonQin
Copy link
Owner

lockbud may report FPs. I do not know how to return 0 for cargo. But I will look into it.

@gdesmott
Copy link
Contributor Author

Yes ideally we'll need some way to ignore false positives as well.

I suppose either an annotation in the code or a suppression file as valgrind does.

@BurtonQin
Copy link
Owner

Fine-grained detection target selection sounds a feasible choice.
I am not quite familiar with github CI.
But here is a project that integrates lockbud and many other detection tools into docker that may be of your help.
https://github.com/os-checker/os-checker

@BurtonQin BurtonQin self-assigned this Nov 22, 2024
@BurtonQin BurtonQin added the enhancement New feature or request label Nov 22, 2024
@gdesmott
Copy link
Contributor Author

https://github.com/os-checker/os-checker

Interesting. From a quick looks it seems they parse the json generated by lockbud. That can make sense if you need to have very fine control on the CI test but I think most people will be happy with returning an error code and having a simple way to discard false positives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants