RFR: 2470: Mailing list bridge is failing to send some emails

Erik Joelsson erikj at openjdk.org
Tue Apr 8 21:12:36 UTC 2025


On Mon, 7 Apr 2025 22:09:44 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> The mlbridge bot sometimes fails to send emails based on PR activity/comments. The emails get generated and the bot attempts to store them in the mailing list archive repo, which we are storing in a GitLab server. The PUT call returns 400, which the bot interprets as a failure and aborts the WorkItem. On the next run of that WorkItem, the emails are found in the archive, which the bot interprets as having been sent, so no new attempt is made. The issue here is that GitLab returns a failure code but still stores the data.
> 
> To try to work around this, I'm adding a fallback check when receiving 400 when storing a file. The check tries to fetch the current contents of the file and compares it to what we attempted to store. If equal, the error is ignored and the store procedure is considered successful.
> 
> Testing this is tricky, so this code is basically untested. I'm also adding more logging and more information to existing related logging so that we can monitor this behavior better and see if this workaround is having any effect.

Test comment

-------------

PR Comment: https://git.openjdk.org/skara/pull/1713#issuecomment-2787670387


More information about the skara-dev mailing list