Skip to content

Fix upstream NodeJS tests reports #165

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

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions daily_tests/daily_nightly_tests_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,23 +360,25 @@ def generate_email_body(self):

def generate_failed_containers(self):
for test_case, plan, msg in self.available_test_case:
print(
f"generate_email_body_for_failed_containers: {test_case}, {plan}, {msg}"
)
if test_case not in self.data_dict:
continue
print(
f"generate_email_body_for_failed_containers: {self.data_dict[test_case]}"
)
self.body += f"<br><b>{msg}</b><br>List of failed containers:<br>"
for full_log_name, name in self.data_dict[test_case]:
paste_bin_file = f"{full_log_name}.txt"
self.send_file_to_pastebin(
log_path=full_log_name, log_name=paste_bin_file
)
self.body += (
f"<a href='{self.get_pastebin_url(log_name=full_log_name)}'>{name}</a>"
f"<a href='{self.get_pastebin_url(log_name=paste_bin_file)}'>{name}</a>"
f"<br>"
)

def generate_success_containers(self):
for test_case, cont_path, log_name in self.data_dict["SUCCESS_DATA"]:
print(f"generate_success_containers: {self.data_dict[test_case]}")
if os.path.exists(log_name):
self.body += (
f" <a href='{self.get_pastebin_url(log_name=log_name)}'>See logs</a>"
Expand Down