Merge pull request #40231 from spxtr/bazelrc
Automatic merge from submit-queue (batch tested with PRs 40187, 40231, 40152) Add .bazelrc with flaky_test_attempts. **What this PR does / why we need it**: This PR adds `.bazelrc`, which will set defaults for all bazel commands. The only controversial default I set is `--flaky_test_attempts=3`. **Release note**: ```release-note NONE ```
This commit is contained in:
		
							
								
								
									
										6
									
								
								.bazelrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.bazelrc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					# Show us information about failures.
 | 
				
			||||||
 | 
					build --verbose_failures
 | 
				
			||||||
 | 
					test --test_output=errors
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Retry tests up to 3 times if they fail.
 | 
				
			||||||
 | 
					test --flaky_test_attempts=3
 | 
				
			||||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -498,7 +498,7 @@ endef
 | 
				
			|||||||
	@echo "$$BAZEL_TEST_HELP_INFO"
 | 
						@echo "$$BAZEL_TEST_HELP_INFO"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
bazel-test:
 | 
					bazel-test:
 | 
				
			||||||
	bazel test  --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/... //hack:verify-all
 | 
						bazel test  //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/... //hack:verify-all
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifeq ($(PRINT_HELP),y)
 | 
					ifeq ($(PRINT_HELP),y)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user