Conversation
|
The logs indicate this was likely caused by bazelbuild/rules_cc@6402462 and the problem with the mocks in Bazel is that bazel/src/test/java/com/google/devtools/build/lib/analysis/mock/BUILD Lines 25 to 27 in b811c95 This will need to be fixed in rules_cc - https://github.com/bazelbuild/rules_cc/blob/38517fb1eb1333517b5a4e9bbaa169027b7a5988/cc/toolchains/BUILD#L43 should include srcs from all sub packages. |
|
@hvadehra thanks for the analysis! What is the fix for catching something like that in the future? Presumably porting many of the tests that validate cc behavior from Java->Starlark? I think there are other java tests that just use things in rules_cc because they were convenient target types (e.g. for generic analysis tests) -- presumably those could either be migrated to use other rules? Would it be possible to setup a bazelbuild CI with rules_cc at TOT, or even better run bazelbuild tests with rules_cc PRs? |
|
I believe this is caused by a gap in MockCcSupport.java. I'm working on it. |
72f3a91 to
c6d4b2e
Compare
|
@pzembrod done |
Thanks! |
Description
Updates rules_cc to 0.2.17 in MODULE.bazel and MODULE.tools.
Motivation
Build API Changes
No
Checklist
Release Notes
RELNOTES: None