@@ -234,6 +234,7 @@ def builder_process_stream(
234234 if b"git_hash" in testDetails :
235235 git_hash = testDetails [b"git_hash" ]
236236 logging .info ("Received commit hash specifier {}." .format (git_hash ))
237+ logging .info (f"Received the following build stream: { testDetails } ." )
237238 binary_zip_key = testDetails [b"zip_archive_key" ]
238239 logging .info (
239240 "Retriving zipped source from key {}." .format (
@@ -271,6 +272,16 @@ def builder_process_stream(
271272 if b"tests_groups_regexp" in testDetails :
272273 tests_groups_regexp = testDetails [b"tests_groups_regexp" ].decode ()
273274
275+ github_org = "redis"
276+ if b"github_org" in testDetails :
277+ github_org = testDetails [b"github_org" ].decode ()
278+ logging .info (f"detected github_org info on build stream { github_org } " )
279+
280+ github_repo = "redis"
281+ if b"github_repo" in testDetails :
282+ github_repo = testDetails [b"github_repo" ].decode ()
283+ logging .info (f"detected github_repo info on build stream { github_repo } " )
284+
274285 # github updates
275286 is_actionable_pr = False
276287 contains_regression_comment = False
@@ -321,6 +332,14 @@ def builder_process_stream(
321332 build_artifacts = ["redis-server" ]
322333 if "build_artifacts" in build_config :
323334 build_artifacts = build_config ["build_artifacts" ]
335+ if b"build_artifacts" in testDetails :
336+ new_build_artifacts = (
337+ testDetails [b"build_artifacts" ].decode ().split ("," )
338+ )
339+ logging .info (
340+ f"overriding default build artifacts { build_artifacts } by { new_build_artifacts } "
341+ )
342+ build_artifacts = new_build_artifacts
324343 build_vars_str = ""
325344 if "env" in build_config :
326345 if build_config ["env" ] is not None :
@@ -361,6 +380,12 @@ def builder_process_stream(
361380 "redis-server" ,
362381 build_vars_str ,
363382 )
383+ if b"build_command" in testDetails :
384+ build_command = testDetails [b"build_command" ].decode ()
385+ server_name = "redis"
386+ if b"server_name" in testDetails :
387+ server_name = testDetails [b"server_name" ].decode ()
388+
364389 build_start_datetime = datetime .datetime .utcnow ()
365390 logging .info (
366391 "Using the following build command {}." .format (build_command )
@@ -435,6 +460,9 @@ def builder_process_stream(
435460 tests_priority_upper_limit ,
436461 tests_regexp ,
437462 use_git_timestamp ,
463+ server_name ,
464+ github_org ,
465+ github_repo ,
438466 )
439467 if result is True :
440468 benchmark_stream_id = conn .xadd (
@@ -572,6 +600,9 @@ def generate_benchmark_stream_request(
572600 tests_priority_upper_limit = 10000 ,
573601 tests_regexp = ".*" ,
574602 use_git_timestamp = False ,
603+ server_name = "redis" ,
604+ github_org = "redis" ,
605+ github_repo = "redis" ,
575606):
576607 build_stream_fields = {
577608 "id" : id ,
@@ -584,6 +615,9 @@ def generate_benchmark_stream_request(
584615 "tests_priority_upper_limit" : tests_priority_upper_limit ,
585616 "tests_priority_lower_limit" : tests_priority_lower_limit ,
586617 "tests_groups_regexp" : tests_groups_regexp ,
618+ "server_name" : server_name ,
619+ "github_org" : github_org ,
620+ "github_repo" : github_repo ,
587621 }
588622 if build_config_metadata is not None :
589623 build_stream_fields ["metadata" ] = json .dumps (build_config_metadata )
@@ -594,6 +628,7 @@ def generate_benchmark_stream_request(
594628 if build_vars_str is not None :
595629 build_stream_fields ["build_vars" ] = build_vars_str
596630 if build_command is not None :
631+ logging .info (f"adding build_command: { build_command } " )
597632 build_stream_fields ["build_command" ] = build_command
598633 if build_image is not None :
599634 build_stream_fields ["build_image" ] = build_image
0 commit comments