-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multinode cluster logging #4097
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be a generic change. Can you make sure that this doesn't impact other plugins? CC: @peterzhuamazon @gaiksaya There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it might impact the resports workflows that @zelinh was working on. Need confirmation on how he retrieve the logs. Thanks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so. The test report just dumps grabs and dumps everything in integ-test folder to manifest. It does not parse each folder for logs I believe. @zelinh can confirm. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I was worried this might impact the logs path for component yml file we generated during test record; but i just checked and confirmed that we are walking through the test folder here. The inside file/directory structure should also be recorded properly. |
||
os.makedirs(dest_directory, exist_ok=True) | ||
logging.info( | ||
f"Recording local cluster logs for {test_result_data.component_name} with test configuration as " | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with this design as per your log, is that once with-security test complete, the id will not reset and result in id-2/id-3 in without-security dir.
Would suggest reset the number after each run. So it will results in this:
instead of:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are triggered separately for with and without security so we should be good I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current behavior continues to increase the id throughout different components.