-
Notifications
You must be signed in to change notification settings - Fork 274
IWYU failing on develop and also fails too early #7383
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
Comments
I am not sure why this is deemed to be failing early? |
With Ubuntu 22.04 GitHub runner image 20221119.2 there appears to be some libclang difference so that include-what-you-use newly started suggesting `bits/chrono` instead of `chrono` (which is spurious); nevertheless, some of the uses of `#include <chrono>` indeed were unnecessary. Fixes: diffblue#7383
Sorry if this is not clear. The script exits immediately if any IWYU compliance violation is found:
I would propose to rewrite something like (pseudocode):
This allows all the non-compliant instances to be shown and then all resolved in one pass. |
With Ubuntu 22.04 GitHub runner image 20221119.2 there appears to be some libclang difference so that include-what-you-use newly started suggesting `bits/chrono` instead of `chrono` (which is spurious); nevertheless, some of the uses of `#include <chrono>` indeed were unnecessary. Fixes: diffblue#7383
Hmm, the only concern I really share is the use of |
Yes. I'm not sure the best way to resolve here, but exiting without all the annotations is annoying for someone who has to keep rerunning to get them. On the other hand, the output is pretty verbose, so showing only the important ones would be good... |
I might have misunderstood, but is the only remaining concern that the final summary uses |
Yes. This bit me because I was going to wrap the fix up myself but I couldn't run locally (iwyu issue), so seeing everything in the CI run would have been good. |
Well, as said it's all there, you would just need to browse further up. |
Yes, it was there in 50,000 lines of logs. Now having spent more time with it I can better understand what I'm looking for, but yesterday with limited time and an unexpected failure that I could not reproduce locally it was annoying to try to sort out. I agree that if it all passes now then it should be ok though. |
As seen on a recent PR, the IWYU CI job is currently failing on develop (likely due to parallel changes), example output here: https://github.com/diffblue/cbmc/actions/runs/3540003949/jobs/5945959712
This should be fixed (but not in the release PR since I want to keep that clean).
Further, this highlights a potential issue in the IWYU CI job that it fails immediately:
It might be a good idea to output all failures and then fail?
The text was updated successfully, but these errors were encountered: