2023-03-25 10:07:47 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								SHELL  :=  bash 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.ONESHELL :  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SHELLFLAGS  :=  -eu -o pipefail -c 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.DELETE_ON_ERROR :  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								MAKEFLAGS  +=  --warn-undefined-variables 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								MAKEFLAGS  +=  --no-builtin-rules 
						 
					
						
							
								
									
										
										
										
											2023-04-19 16:35:26 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								TESTJOBS  :=  4  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								OS := $( shell uname -s)  
						 
					
						
							
								
									
										
										
										
											2023-04-20 22:53:17 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								RELEASEFLAGS  :=  
						 
					
						
							
								
									
										
										
										
											2023-04-19 16:35:26 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								i f e q  ( $( OS ) , L i n u x )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  TESTJOBS:= $( shell nproc) 
							 
						 
					
						
							
								
									
										
										
										
											2023-04-20 22:53:17 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  RELEASEFLAGS = --target x86_64-unknown-linux-musl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								e n d i f  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								i f e q  ( $( OS ) , F r e e B S D )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  TESTJOBS:= $( shell sysctl -n hw.ncpu) 
							 
						 
					
						
							
								
									
										
										
										
											2023-04-19 16:35:26 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								e n d i f  
						 
					
						
							
								
									
										
										
										
											2023-03-25 10:07:47 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								i f e q  ( $( origin  .RECIPEPREFIX ) ,  u n d e f i n e d )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  $( error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								e n d i f  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.RECIPEPREFIX  =  > 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.PHONY :  build  
						 
					
						
							
								
									
										
										
										
											2023-03-25 14:10:22 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								build :  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  c a r g o  b u i l d  
						 
					
						
							
								
									
										
										
										
											2023-03-25 10:07:47 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-04-19 00:09:25 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.PHONY :  release  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								release :  
						 
					
						
							
								
									
										
										
										
											2023-04-20 22:53:17 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  c a r g o  b u i l d  - - r e l e a s e  $( RELEASEFLAGS )  
						 
					
						
							
								
									
										
										
										
											2023-04-19 00:09:25 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-03-25 10:07:47 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.PHONY :  clean  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								clean :  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  c a r g o  c l e a n  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-03-25 14:10:22 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.PHONY :  test  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								test :  
						 
					
						
							
								
									
										
										
										
											2023-08-14 12:18:55 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  c a r g o  t e s t  - - n o - f a i l - f a s t  - - l i b  - - t e s t  t e s t _ l o a d e r  - -  - - t e s t - t h r e a d s  $( TESTJOBS )  
						 
					
						
							
								
									
										
										
										
											2023-04-18 22:38:18 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-08-12 23:57:32 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.PHONY :  dockertest  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								dockertest :  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  $( MAKE )  - C  d o c k e r / o r g a n i c _ t e s t  
						 
					
						
							
								
									
										
										
										
											2023-08-14 12:18:55 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								> docker run --rm -i -t -v "$$(readlink -f ./) : /.source :ro " --mount  source =cargo -cache , target =/usr /local /cargo /registry  -w  / organic -test  sh  -c  "cp  -r  /.source  /source  && cd  /source  && cargo  test  --no -fail -fast  --lib  --test  test_loader " 
						 
					
						
							
								
									
										
										
										
											2023-08-12 23:57:32 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-08-14 15:30:13 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.PHONY :  dockerclean  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								dockerclean :  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Delete volumes created for running the tests in docker. This does not touch anything related to the jaeger docker container.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  d o c k e r  v o l u m e  r m  c a r g o - c a c h e  r u s t - c a c h e  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-04-18 22:38:18 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.PHONY :  integrationtest  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								integrationtest :  
						 
					
						
							
								
									
										
										
										
											2023-04-19 16:35:26 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  c a r g o  t e s t  - - n o - f a i l - f a s t  - - t e s t  t e s t _ l o a d e r  - -  - - t e s t - t h r e a d s  $( TESTJOBS )  
						 
					
						
							
								
									
										
										
										
											2023-03-25 14:10:22 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-04-19 15:29:46 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.PHONY :  unittest  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								unittest :  
						 
					
						
							
								
									
										
										
										
											2023-04-19 16:35:26 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  c a r g o  t e s t  - - l i b  - -  - - t e s t - t h r e a d s  $( TESTJOBS )  
						 
					
						
							
								
									
										
										
										
											2023-04-19 15:29:46 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-03-25 10:07:47 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.PHONY :  jaeger  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								jaeger :  
						 
					
						
							
								
									
										
										
										
											2023-08-10 21:22:06 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# 4317 for OTLP gRPC, 4318 for OTLP HTTP. We currently use gRPC but I forward both ports regardless.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# These flags didn't help even though they seem like they would: --collector.otlp.grpc.max-message-size=10000000 --collector.queue-size=20000 --collector.num-workers=100
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								> docker run -d --rm --name organicdocker -p 4317 : 4317 -p  4318:4318 -p  16686:16686 -e  COLLECTOR_OTLP_ENABLED =true  jaegertracing /all -in -one :1.47 --collector .grpc -server .max -message -size =10000000 
						 
					
						
							
								
									
										
										
										
											2023-03-25 17:00:56 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.PHONY :  jaegerweb  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								jaegerweb :  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								> xdg-open 'http : //localhost :16686' 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.PHONY :  jaegerstop  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								jaegerstop :  
						 
					
						
							
								
									
										
										
										
											2023-08-10 18:51:16 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  d o c k e r  s t o p  o r g a n i c d o c k e r