@@ -110,6 +110,7 @@ def main():
110
110
)
111
111
logging .error ("Error message {}" .format (e .__str__ ()))
112
112
exit (1 )
113
+ rts = None
113
114
if args .datasink_push_results_redistimeseries :
114
115
logging .info (
115
116
"Checking redistimeseries datasink connection is available at: {}:{} to push the timeseries data" .format (
@@ -124,7 +125,7 @@ def main():
124
125
password = args .datasink_redistimeseries_pass ,
125
126
username = args .datasink_redistimeseries_user ,
126
127
)
127
- rts .ping ()
128
+ rts .redis . ping ()
128
129
except redis .exceptions .ConnectionError as e :
129
130
logging .error (
130
131
"Unable to connect to redis available at: {}:{}" .format (
@@ -156,6 +157,7 @@ def main():
156
157
rts ,
157
158
testsuite_spec_files ,
158
159
topologies_map ,
160
+ args .platform_name ,
159
161
)
160
162
161
163
@@ -189,6 +191,7 @@ def self_contained_coordinator_blocking_read(
189
191
rts ,
190
192
testsuite_spec_files ,
191
193
topologies_map ,
194
+ platform_name ,
192
195
):
193
196
num_process_streams = 0
194
197
overall_result = False
@@ -213,8 +216,29 @@ def self_contained_coordinator_blocking_read(
213
216
rts ,
214
217
testsuite_spec_files ,
215
218
topologies_map ,
219
+ platform_name ,
216
220
)
217
221
num_process_streams = num_process_streams + 1
222
+ if overall_result is True :
223
+ ack_reply = conn .xack (
224
+ STREAM_KEYNAME_NEW_BUILD_EVENTS ,
225
+ STREAM_GH_NEW_BUILD_RUNNERS_CG ,
226
+ stream_id ,
227
+ )
228
+ if type (ack_reply ) == bytes :
229
+ ack_reply = ack_reply .decode ()
230
+ if ack_reply == "1" :
231
+ logging .info (
232
+ "Sucessfully acknowledge build variation stream with id {}." .format (
233
+ stream_id
234
+ )
235
+ )
236
+ else :
237
+ logging .error (
238
+ "Unable to acknowledge build variation stream with id {}. XACK reply {}" .format (
239
+ stream_id , ack_reply
240
+ )
241
+ )
218
242
return overall_result , stream_id , num_process_streams
219
243
220
244
@@ -226,6 +250,7 @@ def process_self_contained_coordinator_stream(
226
250
rts ,
227
251
testsuite_spec_files ,
228
252
topologies_map ,
253
+ running_platform ,
229
254
):
230
255
stream_id , testDetails = newTestInfo [0 ][1 ][0 ]
231
256
stream_id = stream_id .decode ()
@@ -234,6 +259,8 @@ def process_self_contained_coordinator_stream(
234
259
235
260
if b"git_hash" in testDetails :
236
261
(
262
+ build_variant_name ,
263
+ metadata ,
237
264
build_artifacts ,
238
265
git_hash ,
239
266
git_branch ,
@@ -276,8 +303,14 @@ def process_self_contained_coordinator_stream(
276
303
testcases_setname ,
277
304
tsname_project_total_failures ,
278
305
tsname_project_total_success ,
306
+ running_platforms_setname ,
307
+ testcases_build_variant_setname ,
279
308
) = get_overall_dashboard_keynames (
280
- tf_github_org , tf_github_repo , tf_triggering_env
309
+ tf_github_org ,
310
+ tf_github_repo ,
311
+ tf_triggering_env ,
312
+ build_variant_name ,
313
+ running_platform ,
281
314
)
282
315
283
316
benchmark_tool = "redis-benchmark"
@@ -447,6 +480,9 @@ def process_self_contained_coordinator_stream(
447
480
tf_github_repo ,
448
481
tf_triggering_env ,
449
482
tsname_project_total_success ,
483
+ metadata ,
484
+ build_variant_name ,
485
+ running_platform ,
450
486
)
451
487
test_result = True
452
488
@@ -505,7 +541,13 @@ def get_benchmark_specs(testsuites_folder):
505
541
def extract_build_info_from_streamdata (testDetails ):
506
542
git_version = None
507
543
git_branch = None
544
+ metadata = None
545
+ build_variant_name = None
508
546
git_hash = testDetails [b"git_hash" ]
547
+ if b"id" in testDetails :
548
+ build_variant_name = testDetails [b"id" ]
549
+ if type (build_variant_name ) == bytes :
550
+ build_variant_name = build_variant_name .decode ()
509
551
if b"git_branch" in testDetails :
510
552
git_branch = testDetails [b"git_branch" ]
511
553
if type (git_branch ) == bytes :
@@ -525,7 +567,17 @@ def extract_build_info_from_streamdata(testDetails):
525
567
if b"build_artifacts" in testDetails :
526
568
build_artifacts_str = testDetails [b"build_artifacts" ].decode ()
527
569
build_artifacts = build_artifacts_str .split ("," )
528
- return build_artifacts , git_hash , git_branch , git_version , run_image
570
+ if b"metadata" in testDetails :
571
+ metadata = json .loads (testDetails [b"metadata" ].decode ())
572
+ return (
573
+ build_variant_name ,
574
+ metadata ,
575
+ build_artifacts ,
576
+ git_hash ,
577
+ git_branch ,
578
+ git_version ,
579
+ run_image ,
580
+ )
529
581
530
582
531
583
def generate_cpuset_cpus (ceil_db_cpu_limit , current_cpu_pos ):
0 commit comments