| 
									
										
										
										
											2018-11-11 08:19:04 -08:00
										 |  |  | #!/usr/bin/env bash
 | 
					
						
							|  |  |  | set -e | 
					
						
							| 
									
										
										
										
											2018-07-19 07:50:44 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | here=$(dirname "$0") | 
					
						
							|  |  |  | cd "$here"/.. | 
					
						
							| 
									
										
										
										
											2018-07-24 08:49:43 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-26 17:54:40 -08:00
										 |  |  | # This job doesn't run within a container, try once to upgrade tooling on a | 
					
						
							|  |  |  | # version check failure | 
					
						
							|  |  |  | ci/version-check-with-upgrade.sh stable | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-06 08:57:12 -07:00
										 |  |  | export RUST_BACKTRACE=1 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-25 20:37:27 -07:00
										 |  |  | ./fetch-perf-libs.sh | 
					
						
							| 
									
										
										
										
											2018-08-16 18:49:23 -07:00
										 |  |  | export LD_LIBRARY_PATH=$PWD/target/perf-libs:$LD_LIBRARY_PATH | 
					
						
							| 
									
										
										
										
											2018-07-25 20:37:27 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-19 07:50:44 -07:00
										 |  |  | export RUST_LOG=multinode=info | 
					
						
							| 
									
										
										
										
											2018-07-24 08:49:43 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-08 06:52:57 -07:00
										 |  |  | if [[ $(ulimit -n) -lt 65000 ]]; then | 
					
						
							| 
									
										
										
										
											2018-08-07 10:29:57 -07:00
										 |  |  |   echo 'Error: nofiles too small, run "ulimit -n 65000" to continue' | 
					
						
							|  |  |  |   exit 1 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-08 06:52:57 -07:00
										 |  |  | if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then | 
					
						
							| 
									
										
										
										
											2018-08-09 22:44:03 -07:00
										 |  |  |   echo 'Error: rmem_default too small, run "sudo sysctl -w net.core.rmem_default=1610612736" to continue' | 
					
						
							| 
									
										
										
										
											2018-08-08 06:52:57 -07:00
										 |  |  |   exit 1 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if [[ $(sysctl -n net.core.rmem_max) -lt 1610612736 ]]; then | 
					
						
							| 
									
										
										
										
											2018-08-09 22:44:03 -07:00
										 |  |  |   echo 'Error: rmem_max too small, run "sudo sysctl -w net.core.rmem_max=1610612736" to continue' | 
					
						
							| 
									
										
										
										
											2018-08-08 17:24:00 +00:00
										 |  |  |   exit 1 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if [[ $(sysctl -n net.core.wmem_default) -lt 1610612736 ]]; then | 
					
						
							| 
									
										
										
										
											2018-08-09 22:44:03 -07:00
										 |  |  |   echo 'Error: rmem_default too small, run "sudo sysctl -w net.core.wmem_default=1610612736" to continue' | 
					
						
							| 
									
										
										
										
											2018-08-08 17:24:00 +00:00
										 |  |  |   exit 1 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if [[ $(sysctl -n net.core.wmem_max) -lt 1610612736 ]]; then | 
					
						
							| 
									
										
										
										
											2018-08-09 22:44:03 -07:00
										 |  |  |   echo 'Error: rmem_max too small, run "sudo sysctl -w net.core.wmem_max=1610612736" to continue' | 
					
						
							| 
									
										
										
										
											2018-08-08 06:52:57 -07:00
										 |  |  |   exit 1 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-19 07:50:44 -07:00
										 |  |  | set -x | 
					
						
							| 
									
										
										
										
											2018-08-30 12:07:54 -07:00
										 |  |  | exec cargo test --release --features=erasure test_multi_node_dynamic_network -- --ignored |