@@ -110,6 +110,7 @@ def main():
110110 )
111111 logging .error ("Error message {}" .format (e .__str__ ()))
112112 exit (1 )
113+ rts = None
113114 if args .datasink_push_results_redistimeseries :
114115 logging .info (
115116 "Checking redistimeseries datasink connection is available at: {}:{} to push the timeseries data" .format (
@@ -124,7 +125,7 @@ def main():
124125 password = args .datasink_redistimeseries_pass ,
125126 username = args .datasink_redistimeseries_user ,
126127 )
127- rts .ping ()
128+ rts .redis . ping ()
128129 except redis .exceptions .ConnectionError as e :
129130 logging .error (
130131 "Unable to connect to redis available at: {}:{}" .format (
@@ -156,6 +157,7 @@ def main():
156157 rts ,
157158 testsuite_spec_files ,
158159 topologies_map ,
160+ args .platform_name ,
159161 )
160162
161163
@@ -189,6 +191,7 @@ def self_contained_coordinator_blocking_read(
189191 rts ,
190192 testsuite_spec_files ,
191193 topologies_map ,
194+ platform_name ,
192195):
193196 num_process_streams = 0
194197 overall_result = False
@@ -213,8 +216,29 @@ def self_contained_coordinator_blocking_read(
213216 rts ,
214217 testsuite_spec_files ,
215218 topologies_map ,
219+ platform_name ,
216220 )
217221 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+ )
218242 return overall_result , stream_id , num_process_streams
219243
220244
@@ -226,6 +250,7 @@ def process_self_contained_coordinator_stream(
226250 rts ,
227251 testsuite_spec_files ,
228252 topologies_map ,
253+ running_platform ,
229254):
230255 stream_id , testDetails = newTestInfo [0 ][1 ][0 ]
231256 stream_id = stream_id .decode ()
@@ -234,6 +259,8 @@ def process_self_contained_coordinator_stream(
234259
235260 if b"git_hash" in testDetails :
236261 (
262+ build_variant_name ,
263+ metadata ,
237264 build_artifacts ,
238265 git_hash ,
239266 git_branch ,
@@ -276,8 +303,14 @@ def process_self_contained_coordinator_stream(
276303 testcases_setname ,
277304 tsname_project_total_failures ,
278305 tsname_project_total_success ,
306+ running_platforms_setname ,
307+ testcases_build_variant_setname ,
279308 ) = 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 ,
281314 )
282315
283316 benchmark_tool = "redis-benchmark"
@@ -447,6 +480,9 @@ def process_self_contained_coordinator_stream(
447480 tf_github_repo ,
448481 tf_triggering_env ,
449482 tsname_project_total_success ,
483+ metadata ,
484+ build_variant_name ,
485+ running_platform ,
450486 )
451487 test_result = True
452488
@@ -505,7 +541,13 @@ def get_benchmark_specs(testsuites_folder):
505541def extract_build_info_from_streamdata (testDetails ):
506542 git_version = None
507543 git_branch = None
544+ metadata = None
545+ build_variant_name = None
508546 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 ()
509551 if b"git_branch" in testDetails :
510552 git_branch = testDetails [b"git_branch" ]
511553 if type (git_branch ) == bytes :
@@ -525,7 +567,17 @@ def extract_build_info_from_streamdata(testDetails):
525567 if b"build_artifacts" in testDetails :
526568 build_artifacts_str = testDetails [b"build_artifacts" ].decode ()
527569 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+ )
529581
530582
531583def generate_cpuset_cpus (ceil_db_cpu_limit , current_cpu_pos ):
0 commit comments