@@ -65,87 +65,26 @@ build_local:
6565clean :
6666 rm -rf bins
6767
68- unit-test : export ROUTING = Store&Forward
6968unit-test :
7069 cd tests && go test unit_test.go $(GO_TEST_FLAGS )
7170
72- integ-test_CT : export ROUTING = CutThrough
73- integ-test_CT :
71+ integ-test :
7472 cd tests && go test ./integration_test.go -run TestSdk_InvokeWithXDT $(GO_TEST_FLAGS )
7573
76-
77- integ-test_SF : export ROUTING = Store&Forward
78- integ-test_SF :
79- cd tests && go test ./integration_test.go -run TestSdk_InvokeWithXDT $(GO_TEST_FLAGS )
80-
81- integ-test-noCopy_CT : export ROUTING = CutThrough
82- integ-test-noCopy_CT : export NO_COPY = true
83- integ-test-noCopy_CT :
84- cd tests && go test ./integration_test.go -run TestSdk_InvokeWithXDTNoCopy $(GO_TEST_FLAGS )
85-
86-
87- integ-test-noCopy_SF : export ROUTING = Store&Forward
88- integ-test-noCopy_SF : export NO_COPY = true
89- integ-test-noCopy_SF :
90- cd tests && go test ./integration_test.go -run TestSdk_InvokeWithXDTNoCopy $(GO_TEST_FLAGS )
91-
92- integ-test : integ-test_CT integ-test_SF
93- integ-test-noCopy : integ-test-noCopy_CT integ-test-noCopy_SF
94-
95- timeout-test_CT : export ROUTING = CutThrough
96- timeout-test_CT :
97- sleep 60
98- cd tests && go test ./integration_test.go -run TestErr_DQPTimeout $(GO_TEST_FLAGS )
99-
100- timeout-test_SF : export ROUTING = Store&Forward
101- timeout-test_SF :
102- sleep 60
103- cd tests && go test ./integration_test.go -run TestErr_DQPTimeout $(GO_TEST_FLAGS )
104-
105- timeout-test : timeout-test_SF timeout-test_CT
106-
107- parallel-invoke-test_CT : export ROUTING = CutThrough
108- parallel-invoke-test_CT :
109- cd tests && go test ./integration_test.go -run TestParallel_Invoke -concurrentCalls 1 $(GO_TEST_FLAGS )
110- cd tests && go test ./integration_test.go -run TestParallel_Invoke -concurrentCalls 2 $(GO_TEST_FLAGS )
111- cd tests && go test ./integration_test.go -run TestParallel_Invoke -concurrentCalls 5 $(GO_TEST_FLAGS )
112-
113- parallel-invoke-test_SF : export ROUTING = Store&Forward
114- parallel-invoke-test_SF :
74+ parallel-invoke-test :
11575 cd tests && go test ./integration_test.go -run TestParallel_Invoke -concurrentCalls 1 $(GO_TEST_FLAGS )
11676 cd tests && go test ./integration_test.go -run TestParallel_Invoke -concurrentCalls 2 $(GO_TEST_FLAGS )
11777 cd tests && go test ./integration_test.go -run TestParallel_Invoke -concurrentCalls 5 $(GO_TEST_FLAGS )
11878
119- parallel-invoke-test : parallel-invoke-test_SF parallel-invoke-test_CT
120- fan-out-test : fan-out_SF fan-out_CT
121- fan-in-test : fan-in_SF fan-in_CT
122-
123- fan-out_SF : export ROUTING = Store&Forward
124- fan-out_SF :
125- cd tests && go test ./integration_test.go -run TestParallel_FanOut -concurrentCalls 1 $(GO_TEST_FLAGS )
126- sleep 2
127- cd tests && go test ./integration_test.go -run TestParallel_FanOut -concurrentCalls 2 $(GO_TEST_FLAGS )
128- sleep 2
129- cd tests && go test ./integration_test.go -run TestParallel_FanOut -concurrentCalls 5 $(GO_TEST_FLAGS )
130- sleep 2
131- fan-out_CT : export ROUTING = CutThrough
132- fan-out_CT :
79+ fan-out-test :
13380 cd tests && go test ./integration_test.go -run TestParallel_FanOut -concurrentCalls 1 $(GO_TEST_FLAGS )
13481 sleep 2
13582 cd tests && go test ./integration_test.go -run TestParallel_FanOut -concurrentCalls 2 $(GO_TEST_FLAGS )
13683 sleep 2
13784 cd tests && go test ./integration_test.go -run TestParallel_FanOut -concurrentCalls 5 $(GO_TEST_FLAGS )
13885 sleep 2
13986
140- fan-in_SF : export ROUTING = Store&Forward
141- fan-in_SF :
142- cd tests && go test ./integration_test.go -run TestParallel_FanIn -concurrentCalls 1 $(GO_TEST_FLAGS )
143- sleep 2
144- cd tests && go test ./integration_test.go -run TestParallel_FanIn -concurrentCalls 2 $(GO_TEST_FLAGS )
145- sleep 2
146- cd tests && go test ./integration_test.go -run TestParallel_FanIn -concurrentCalls 5 $(GO_TEST_FLAGS )
147- fan-in_CT : export ROUTING = CutThrough
148- fan-in_CT :
87+ fan-in-test :
14988 cd tests && go test ./integration_test.go -run TestParallel_FanIn -concurrentCalls 1 $(GO_TEST_FLAGS )
15089 sleep 2
15190 cd tests && go test ./integration_test.go -run TestParallel_FanIn -concurrentCalls 2 $(GO_TEST_FLAGS )
@@ -155,19 +94,10 @@ fan-in_CT:
15594install_python_modules :
15695 pip install grpcio --user
15796 pip install grpcio-tools --user
97+ pip install pycapnp --user
98+ pip install environs --user
15899
159- python-unit-test : export ROUTING = Store&Forward
160- python-unit-test : install_python_modules
161- cd tests && go test ./integration_test.go -run TestPython_SDK $(GO_TEST_FLAGS ) &
162- sleep 60
163- cd sdk/python && python -m unittest -v test.UnitTest
164- # kill the process bound to the given port.
165- -fuser -k 50005/tcp
166-
167- python-integ-test : install_python_modules python-integ-test_CT python-integ-test_SF
168-
169- python-integ-test_CT : export ROUTING = CutThrough
170- python-integ-test_CT :
100+ python-integ-test : install_python_modules
171101 cd tests && go test ./integration_test.go -run TestPython_SDK $(GO_TEST_FLAGS ) &
172102 sleep 60
173103 cd sdk/python && python destination.py &
@@ -176,75 +106,31 @@ python-integ-test_CT:
176106 -fuser -k 50005/tcp
177107 -fuser -k 50007/tcp
178108
179- python-integ-test_SF : export ROUTING = Store&Forward
180- python-integ-test_SF :
181- cd tests && go test ./integration_test.go -run TestPython_SDK $(GO_TEST_FLAGS ) &
182- sleep 60
183- cd sdk/python && python destination.py &
184- sleep 5
185- cd sdk/python && python -m unittest -v test.IntegTest.test_Invoke_XDT
186- -fuser -k 50005/tcp
187- -fuser -k 50007/tcp
188-
189- python-timeout-test : install_python_modules python-timeout-test_CT python-timeout-test_SF
190-
191- python-timeout-test_CT : export ROUTING = CutThrough
192- python-timeout-test_CT :
193- cd tests && go test ./integration_test.go -run TestPython_SDKTimeout $(GO_TEST_FLAGS ) &
194- sleep 60
195- cd sdk/python && python -m unittest -v test.IntegTest.test_Timeout
196- -fuser -k 50005/tcp
197-
198- python-timeout-test_SF : export ROUTING = Store&Forward
199- python-timeout-test_SF :
109+ python-timeout-test : install_python_modules
200110 cd tests && go test ./integration_test.go -run TestPython_SDKTimeout $(GO_TEST_FLAGS ) &
201111 sleep 60
202112 cd sdk/python && python -m unittest -v test.IntegTest.test_Timeout
203113 -fuser -k 50005/tcp
204114
205115python-get-put-test : install_python_modules
206- python-get-put-test : export ROUTING = Store&Forward
207- python-get-put-test :
208116 cd tests && go test ./integration_test.go -run TestPython_SDK $(GO_TEST_FLAGS ) &
209117 sleep 60
210118 cd sdk/python && python -m unittest -v test.IntegTest.test_GetPut
211119 -fuser -k 50005/tcp
212120 -fuser -k 50007/tcp
213121
214- python-broadcast-get-put-test : export ROUTING = Store&Forward
215- python-broadcast-get-put-test :
122+ python-broadcast-get-put-test : install_python_modules
216123 cd tests && go test ./integration_test.go -run TestPython_SDK $(GO_TEST_FLAGS ) &
217124 sleep 60
218125 cd sdk/python && python -m unittest -v test.IntegTest.test_Broadcast_GetPut
219126 -fuser -k 50005/tcp
220127 -fuser -k 50007/tcp
221128
222- python-noCopy-get-put-test : export ROUTING = Store&Forward
223- python-noCopy-get-put-test : export NO_COPY = true
224- python-noCopy-get-put-test :
225- cd tests && go test ./integration_test.go -run TestPython_SDK $(GO_TEST_FLAGS ) &
226- sleep 60
227- cd sdk/python && python -m unittest -v test.IntegTest.test_GetPut
228- -fuser -k 50005/tcp
229- -fuser -k 50006/tcp
230- -fuser -k 50007/tcp
129+ all-images-push :
130+ cd user-functions/fx && ko publish ./ -B
131+ cd user-functions/dQP && ko publish ./ -B
132+ cd user-functions/gx && ko publish ./ -B
231133
232- python-noCopy-broadcast-get-put-test : export ROUTING = Store&Forward
233- python-noCopy-broadcast-get-put-test : export NO_COPY = true
234- python-noCopy-broadcast-get-put-test :
235- cd tests && go test ./integration_test.go -run TestPython_SDK $(GO_TEST_FLAGS ) &
236- sleep 60
237- cd sdk/python && python -m unittest -v test.IntegTest.test_Broadcast_GetPut
238- -fuser -k 50005/tcp
239- -fuser -k 50006/tcp
240- -fuser -k 50007/tcp
241-
242- docker-images-push :
243- cd user-functions/fx && ko publish ./ -B --tags=capnp
244- cd user-functions/dQP && ko publish ./ -B --tags=capnp
245- cd user-functions/gx && ko publish ./ -B --tags=capnp
246-
247- python-images-push :
248134 DOCKER_BUILDKIT=1 docker build \
249135 -t vhiveease/pyfx :latest \
250136 --target pyfx \
@@ -257,14 +143,12 @@ python-images-push:
257143 $(ROOT)
258144 docker push vhiveease/pygx:latest
259145 docker push vhiveease/pyfx:latest
260- benchmark-XDT : export ROUTING = CutThrough
146+
261147benchmark-XDT :
262148 cd tests && go test ./integration_test.go -run TestBenchmark_XDT -v
263149
264- get-put-test : export ROUTING = Store&Forward
265150get-put-test :
266151 cd tests && go test ./integration_test.go -run TestGet_Put $(GO_TEST_FLAGS )
267152
268- broadcast-test : export ROUTING = Store&Forward
269153broadcast-test :
270154 cd tests && go test ./integration_test.go -run TestBroadcast_GetPut $(GO_TEST_FLAGS )
0 commit comments