Skip to content

Commit 2ce6dbc

Browse files
committed
[system] Fix regression initialization for Openwhisk
1 parent 4616b99 commit 2ce6dbc

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

sebs/regression.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,14 @@ class OpenWhiskTestSequencePython(
333333
def get_deployment(self, benchmark_name, architecture, deployment_type):
334334
deployment_name = "openwhisk"
335335
assert cloud_config
336+
337+
config_copy = cloud_config.copy()
338+
config_copy["experiments"]["architecture"] = architecture
339+
config_copy["experiments"]["container_deployment"] = deployment_type == "container"
340+
336341
f = f"regression_{deployment_name}_{benchmark_name}_{architecture}_{deployment_type}.log"
337342
deployment_client = self.client.get_deployment(
338-
cloud_config,
343+
config_copy,
339344
logging_filename=os.path.join(self.client.output_dir, f),
340345
)
341346
with OpenWhiskTestSequencePython.lock:
@@ -355,9 +360,14 @@ class OpenWhiskTestSequenceNodejs(
355360
def get_deployment(self, benchmark_name, architecture, deployment_type):
356361
deployment_name = "openwhisk"
357362
assert cloud_config
363+
364+
config_copy = cloud_config.copy()
365+
config_copy["experiments"]["architecture"] = architecture
366+
config_copy["experiments"]["container_deployment"] = deployment_type == "container"
367+
358368
f = f"regression_{deployment_name}_{benchmark_name}_{architecture}_{deployment_type}.log"
359369
deployment_client = self.client.get_deployment(
360-
cloud_config,
370+
config_copy,
361371
logging_filename=os.path.join(self.client.output_dir, f),
362372
)
363373
with OpenWhiskTestSequenceNodejs.lock:

0 commit comments

Comments
 (0)