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

Fatal error from a tool results in "Success with 0 issues found." #128

Open
dmitshur opened this issue Oct 18, 2017 · 3 comments
Open

Fatal error from a tool results in "Success with 0 issues found." #128

dmitshur opened this issue Oct 18, 2017 · 3 comments

Comments

@dmitshur
Copy link

Note: Conception-go is a large unsupported repository with low quality Go code. It's not a goal to have it work well; I'm just using it as an opportunity to spot an issue that can happen in another useful Go repository.

See https://gci.gopherci.io/analysis/1156:

image

However, one of the tools failed to complete running:

$ staticcheck ./... 33.577s
fatal error: runtime: out of memory

It looks like a failure (non-zero exit code) from a tool isn't being correctly recognized and reported. This is bad, because it can give a false sense of confidence ("GopherCI told me were no issues in this commit; it turned out there were some issues but they weren't reported due to some problem").

@bradleyfalzon
Copy link
Owner

Reporting “Success” isn’t correct here, although, non zero exit codes are normal for static analysis tools. I’ll need to see if there’s a cleaner way or I will need to special case some of these messages.

@dmitshur
Copy link
Author

dmitshur commented Oct 18, 2017

non zero exit codes are normal for static analysis tools

Do you mean it's normal for static analysis tools to give non-zero exit code and report zero problems?

@bradleyfalzon
Copy link
Owner

bradleyfalzon commented Oct 18, 2017

Do you mean it's normal for static analysis tools to give non-zero exit code and report zero problems?

Ah no, I misunderstood your point. But I then agree, a non-zero exit status with no issues detected should then be considered an unknown state to be raised to the user.

Edit: well, actually, it's possible at least one issue was raised by the tool and successfully parsed by us - but then the tool could exceed memory limits.

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

No branches or pull requests

2 participants