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

clang-tidy flake #546

Closed
oschaaf opened this issue Sep 18, 2020 · 4 comments · Fixed by #574
Closed

clang-tidy flake #546

oschaaf opened this issue Sep 18, 2020 · 4 comments · Fixed by #574

Comments

@oschaaf
Copy link
Member

oschaaf commented Sep 18, 2020

In #533 I observed a first occurrency of a non-reproducible clang-tidy flake.
Since this CI task has proven to be quite stable over time, it's worth tracking further occurrences of this here.

If this turns out problematic, the first potential suspect I would investigate is the last Envoy update, which at this time is 8fcf416

@oschaaf
Copy link
Member Author

oschaaf commented Sep 23, 2020

So personally, I'm observing about 30% of these clang-tidy CI jobs to fail. One case of a timeout observed, where clang-tidy seemed to hang, and a few other cases where clang-tidy wrote a diff, but there was no trace of an actual complaint in the logs. I'll ask around on Slack if this is a known issue for envoy proxy in general, as I suspect that this crept in via an Envoy update, or an envoy build image update (which we usually update at the same time).

@oschaaf
Copy link
Member Author

oschaaf commented Sep 23, 2020

The last merge to master also ran into this, the logs ended with:

Too long with no output (exceeded 10m0s): context deadline exceeded

@oschaaf
Copy link
Member Author

oschaaf commented Oct 5, 2020

The latest merge on master (61996df) needed 4 tries before succeeding the clang-tidy CI check.

@oschaaf
Copy link
Member Author

oschaaf commented Nov 6, 2020

In #566 this seems to happen more or less structurally. I can't spot an actual problem, and neither does clang_tidy report an actual problem. But somehow the CI task keeps exiting with an exit code that indicates a problem.

mum4k pushed a commit that referenced this issue Feb 19, 2021
At some point clang-tidy runs broke in CI, and this couldn't be reproduced
locally. The after a while local runs would exit with a failure seemingly mid-
run.  This PR addresses both these things.

- Update the CircleCI SHA of the envoy build docker image.
- Sync the script we use to run Envoy's build docker image.
- Make clang-tidy runs use libstdc++ to avoid standard library
  headers from producing errors.
- Sync run_clang_tidy.sh
- Update MAINTAINERS.md to mention we should keep more things in sync.

Fixes #546 

Signed-off-by: Otto van der Schaaf <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant