Skip to content

Conversation

@Databean
Copy link
Member

Ignoring failures can hide errors.

Existing noncompliant uses are marked with a TODO comment.

This is currently reported as a warning at bazel build time, and a clang-tidy failure at bazel test time. As far as I can tell, clang compiler warnings automatically are converted into clang-diagnostic-* failures in clang-tidy, which we convert to errors in our clang-tidy tests.

Properties of this approach:

  • Applies only to our GitHub repository, and not the google-internal downstream. This avoids us blocking submission of other changes Google's internal source tree.
  • Doesn't break bazel build, bazel run, or debuild at the time of compiler updates or active development of new code.
  • Validated at PR submission time on GitHub by the run-cvd-unit-tests action which runs clang-tidy and blocks submission.
  • Possible to reproduce failures with bazel test.

Bug: b/471073085

…re handled

Ignoring failures can hide errors.

Existing noncompliant uses are marked with a TODO comment.

This is currently reported as a warning at `bazel build` time, and a
clang-tidy failure at `bazel test` time. As far as I can tell, clang
compiler warnings automatically are converted into `clang-diagnostic-*`
failures in clang-tidy, which we convert to errors in our clang-tidy
tests.

Properties of this approach:

- Applies only to our GitHub repository, and not the google-internal
  downstream. This avoids us blocking submission of other changes
  Google's internal source tree.
- Doesn't break `bazel build`, `bazel run`, or `debuild` at the time of
  compiler updates or active development of new code.
- Validated at PR submission time on GitHub by the `run-cvd-unit-tests`
  action which runs clang-tidy and blocks submission.
- Possible to reproduce failures with `bazel test`.

Bug: b/471073085
@Databean Databean requested a review from jemoreira December 23, 2025 02:26
@Databean
Copy link
Member Author

Thanks for reviewing!

@Databean Databean enabled auto-merge December 23, 2025 18:58
@Databean Databean added this pull request to the merge queue Dec 23, 2025
Merged via the queue into google:main with commit abe754a Dec 23, 2025
41 of 42 checks passed
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 this pull request may close these issues.

2 participants