Fix acceptance test heap size to 128m
Buck defaults to running 1.25 * ncpus tests in parallel. If each test uses a heap size of 128M then an 8 core system will need at least 1.25G of RAM for JVM heap during test execution. The actual memory used will of course be much higher due to JVM overhead. Set a default memory for acceptance tests to prevent a huge explosion during `buck test --all`. Change-Id: I373df822c029d2dc24c625129f540211cda910e7
This commit is contained in:
		 Shawn Pearce
					Shawn Pearce
				
			
				
					committed by
					
						 Dave Borowitz
						Dave Borowitz
					
				
			
			
				
	
			
			
			 Dave Borowitz
						Dave Borowitz
					
				
			
						parent
						
							58920b3468
						
					
				
				
					commit
					79c58714de
				
			| @@ -3,13 +3,11 @@ include_defs('//gerrit-acceptance-tests/tests.defs') | |||||||
| acceptance_tests( | acceptance_tests( | ||||||
|   srcs = ['SubmitOnPushIT.java'], |   srcs = ['SubmitOnPushIT.java'], | ||||||
|   deps = [':util'], |   deps = [':util'], | ||||||
|   vm_args = ['-Xmx512m'], |  | ||||||
| ) | ) | ||||||
|  |  | ||||||
| acceptance_tests( | acceptance_tests( | ||||||
|   srcs = ['HttpPushForReviewIT.java', 'SshPushForReviewIT.java'], |   srcs = ['HttpPushForReviewIT.java', 'SshPushForReviewIT.java'], | ||||||
|   deps = [':push_for_review'], |   deps = [':push_for_review'], | ||||||
|   vm_args = ['-Xmx512m'], |  | ||||||
| ) | ) | ||||||
|  |  | ||||||
| java_library( | java_library( | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| def acceptance_tests( | def acceptance_tests( | ||||||
|     srcs, |     srcs, | ||||||
|     deps = [], |     deps = [], | ||||||
|     vm_args = []): |     vm_args = ['-Xmx128m']): | ||||||
|   for j in srcs: |   for j in srcs: | ||||||
|     java_test( |     java_test( | ||||||
|       name = j[:-len('.java')], |       name = j[:-len('.java')], | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user