Avoid building validation outputs in Starlark analysis tests
Validations aren't useful and run counter to the intention of only exercising Bazel's rule analysis phase in these tests
@@ -96,6 +96,8 @@ public final class RuleConfiguredTargetBuilder {
public RuleConfiguredTargetBuilder(RuleContext ruleContext) {
this.ruleContext = ruleContext;
+ // Avoid building validations in analysis tests (b/143988346)
+ propagateValidationActionOutputGroup = !ruleContext.getRule().isAnalysisTest();
add(LicensesProvider.class, LicensesProviderImpl.of(ruleContext));
add(VisibilityProvider.class, new VisibilityProviderImpl(ruleContext.getVisibility()));
}
