@@ -234,6 +234,7 @@ def builder_process_stream(
234
234
if b"git_hash" in testDetails :
235
235
git_hash = testDetails [b"git_hash" ]
236
236
logging .info ("Received commit hash specifier {}." .format (git_hash ))
237
+ logging .info (f"Received the following build stream: { testDetails } ." )
237
238
binary_zip_key = testDetails [b"zip_archive_key" ]
238
239
logging .info (
239
240
"Retriving zipped source from key {}." .format (
@@ -271,6 +272,16 @@ def builder_process_stream(
271
272
if b"tests_groups_regexp" in testDetails :
272
273
tests_groups_regexp = testDetails [b"tests_groups_regexp" ].decode ()
273
274
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
+
274
285
# github updates
275
286
is_actionable_pr = False
276
287
contains_regression_comment = False
@@ -321,6 +332,14 @@ def builder_process_stream(
321
332
build_artifacts = ["redis-server" ]
322
333
if "build_artifacts" in build_config :
323
334
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
324
343
build_vars_str = ""
325
344
if "env" in build_config :
326
345
if build_config ["env" ] is not None :
@@ -361,6 +380,12 @@ def builder_process_stream(
361
380
"redis-server" ,
362
381
build_vars_str ,
363
382
)
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
+
364
389
build_start_datetime = datetime .datetime .utcnow ()
365
390
logging .info (
366
391
"Using the following build command {}." .format (build_command )
@@ -435,6 +460,9 @@ def builder_process_stream(
435
460
tests_priority_upper_limit ,
436
461
tests_regexp ,
437
462
use_git_timestamp ,
463
+ server_name ,
464
+ github_org ,
465
+ github_repo ,
438
466
)
439
467
if result is True :
440
468
benchmark_stream_id = conn .xadd (
@@ -572,6 +600,9 @@ def generate_benchmark_stream_request(
572
600
tests_priority_upper_limit = 10000 ,
573
601
tests_regexp = ".*" ,
574
602
use_git_timestamp = False ,
603
+ server_name = "redis" ,
604
+ github_org = "redis" ,
605
+ github_repo = "redis" ,
575
606
):
576
607
build_stream_fields = {
577
608
"id" : id ,
@@ -584,6 +615,9 @@ def generate_benchmark_stream_request(
584
615
"tests_priority_upper_limit" : tests_priority_upper_limit ,
585
616
"tests_priority_lower_limit" : tests_priority_lower_limit ,
586
617
"tests_groups_regexp" : tests_groups_regexp ,
618
+ "server_name" : server_name ,
619
+ "github_org" : github_org ,
620
+ "github_repo" : github_repo ,
587
621
}
588
622
if build_config_metadata is not None :
589
623
build_stream_fields ["metadata" ] = json .dumps (build_config_metadata )
@@ -594,6 +628,7 @@ def generate_benchmark_stream_request(
594
628
if build_vars_str is not None :
595
629
build_stream_fields ["build_vars" ] = build_vars_str
596
630
if build_command is not None :
631
+ logging .info (f"adding build_command: { build_command } " )
597
632
build_stream_fields ["build_command" ] = build_command
598
633
if build_image is not None :
599
634
build_stream_fields ["build_image" ] = build_image
0 commit comments