-
Notifications
You must be signed in to change notification settings - Fork 25
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
Turned on static analyser after build #1213
Conversation
Will this fail the CI build if the static analyser spots a problem? It seems necessary to me — I don't think anybody's going to come and look at the build logs. (@QuintinWillison, what do you think? Was this implicit in #1202?) |
agree, but analyze can't fail xcodebuild so it's a bit tricky, there should be some output other than console log, something "human readable" like HTML files, to achieve this you need to pass config params to |
Really? It's been quite a number of years since I set this up in a project but my memory is that this was possible. Maybe things have changed significantly, but regardless, if CI doesn't fail when analyze fails then it's impotent and meaningless in reality. |
We should turn on "Treat warnings as errors" to achieve this, as was pointed out by @QuintinWillison in one of our calls.
Isn't it in the same log file? @lukasz-szyszkowski |
My memory of setting this up a long time ago is that out of the box it doesn't fail a build which produces analyzer warnings, and I think that's true even with "treat warnings as errors" enabled. My rough memory is that you need to do what @lukasz-szyszkowski said — set up something separate to check the output of |
it produces something like this |
Guys, do you have any idea where "Ably_vers.c" file comes from? It fails while trying to analyze it. The project contains nothing like that. Also any feedback on the approach taken in this PR is very appreciated. @lukasz-szyszkowski @lawrence-forooghian @QuintinWillison @ben-xD UPDATE: |
This reverts commit 27a4a04.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, @maratal - perhaps I should have spotted this on first pass but I still think this isn't doing what you expect it might.
@maratal what is the status of this one? are you wanting on another review from Quintin. If so, please re-request |
Sorry, @jamienewcomb - my bad - I was somewhat overloaded last few weeks so didn't come back to this. Reviewing again now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sensible from a workflows perspective, though I'll admit the solution as a whole feels a little fragile (i.e. failing due to second hand information, being presence of reports output). Either way, presumably this is better than what we had before so I do think it'll move the codebase forwards (even though I predict we'll probably end up looking at this again in the future... time will tell).
Closes #1202