Skip to content

Commit

Permalink
Support multinode cluster logging
Browse files Browse the repository at this point in the history
Signed-off-by: monusingh-1 <msnghgw@amazon.com>
  • Loading branch information
monusingh-1 committed Oct 3, 2023
1 parent 1a62673 commit c636f79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test_workflow/test_recorder/test_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ class LocalClusterLogs(LogRecorder):

def __init__(self, parent_class: TestRecorder) -> None:
self.parent_class = parent_class
self.number_of_nodes = 0

def save_test_result_data(self, test_result_data: TestResultData) -> None:
base = self.parent_class._create_base_folder_structure(test_result_data.component_name, test_result_data.component_test_config)
dest_directory = os.path.join(base, "local-cluster-logs")
dest_directory = os.path.join(base, "local-cluster-logs/id-" + str(self.number_of_nodes))
self.number_of_nodes += 1
os.makedirs(dest_directory, exist_ok=True)
logging.info(
f"Recording local cluster logs for {test_result_data.component_name} with test configuration as "
Expand Down

0 comments on commit c636f79

Please sign in to comment.