Skip to content

Compiler querying, clang-tidy, or clang-format calls can randomly fail on Windows if an IntelliSense process is launching at the exact same time #8764

@sean-mcmanus

Description

@sean-mcmanus

Changes to our tests caused us to start hitting a random failure of clang compiler querying due to a 10 second timeout we added to avoid another bug in which our process would randomly get permanently stuck reading stdout for clang-tidy (clang appears to have the same issue). When this timeout is hit, we should be retrying the command instead of just failing. (UPDATE: We fixed the root cause of the timeout).

So far, I've only seen this with clang and on Windows; however, I'm pretty certain this will also cause clang-tidy to fail, since tests were hitting that previously, but the failure would only be noticed if clang-tidy was expected to give warnings but did not.

The failed compiler querying can result in us falling back to use a lower C++ standard or other subsequent failures (i.e. clang-tidy can report incorrect errors or be missing warnings).

Metadata

Metadata

Assignees

Labels

Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.regressionA bug that didn't exist in a previous release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions