diff --git a/abr-testing/abr_testing/automation/jira_tool.py b/abr-testing/abr_testing/automation/jira_tool.py index 5c0a2556dfb..e3851fb395e 100644 --- a/abr-testing/abr_testing/automation/jira_tool.py +++ b/abr-testing/abr_testing/automation/jira_tool.py @@ -86,7 +86,7 @@ def create_ticket( } try: response = requests.post( - f"{self.url}/rest/api/3/issue/", + f"{self.url}/rest/api/3/issue", headers=self.headers, auth=self.auth, json=data, diff --git a/abr-testing/abr_testing/data_collection/abr_robot_error.py b/abr-testing/abr_testing/data_collection/abr_robot_error.py index 231b8077eed..0eb67061e58 100644 --- a/abr-testing/abr_testing/data_collection/abr_robot_error.py +++ b/abr-testing/abr_testing/data_collection/abr_robot_error.py @@ -130,6 +130,7 @@ def get_error_info_from_robot( board_id = args.board_id[0] reporter_id = args.reporter_id[0] ticket = jira_tool.JiraTicket(url, api_token, email) + ticket.issues_on_board(board_id) try: error_runs = get_error_runs_from_robot(ip) except requests.exceptions.InvalidURL: diff --git a/abr-testing/abr_testing/data_collection/read_robot_logs.py b/abr-testing/abr_testing/data_collection/read_robot_logs.py index 7539e913057..21f63094a0b 100644 --- a/abr-testing/abr_testing/data_collection/read_robot_logs.py +++ b/abr-testing/abr_testing/data_collection/read_robot_logs.py @@ -486,11 +486,10 @@ def get_logs(storage_directory: str, ip: str) -> List[str]: ) response.raise_for_status() log_data = response.text - log_name = ip + "_" + log_type.split(".")[0] + ".json" + log_name = ip + "_" + log_type.split(".")[0] + ".log" file_path = os.path.join(storage_directory, log_name) with open(file_path, mode="w", encoding="utf-8") as file: - file.write(response.text) - json.dump(log_data, open(file_path, mode="w")) + file.write(log_data) except RuntimeError: print(f"Request exception. Did not save {log_type}") continue