Skip to content

Fix email sent for errors in Update.xml#1508

Merged
williamjallen merged 2 commits into
masterfrom
update_emails_error
Jun 21, 2023
Merged

Fix email sent for errors in Update.xml#1508
williamjallen merged 2 commits into
masterfrom
update_emails_error

Conversation

@williamjallen
Copy link
Copy Markdown
Collaborator

@williamjallen williamjallen commented Jun 20, 2023

CDash currently throws an HTTP 500 response when attempting to send an email
about errors in a submitted Update.xml file.

This PR fixes the 500 error and cleans up a variety of other small issues in the notification code. In the future, it would be good to give the notification code a more thorough cleanup, since the current code is difficult to debug due to the lack of correct type annotations, complex inheritance hierarchy, and large amounts of dead code.

Fixes #1498

@williamjallen williamjallen force-pushed the update_emails_error branch 2 times, most recently from bc12de6 to a33330b Compare June 20, 2023 15:02
Comment on lines +52 to +54
if ($collection === null) {
continue;
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix for the primary issue.

CDash currently throws an HTTP 500 response when attempting to send an email
about errors in a submitted Update.xml file.
Copy link
Copy Markdown
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues consuming Nightly and Continuous submissions from my test repo now. Great work!

@williamjallen williamjallen merged commit 459f0af into master Jun 21, 2023
@williamjallen williamjallen deleted the update_emails_error branch June 21, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CDash throws an error when sending "update error" emails

3 participants