[Libre-soc-bugs] [Bug 190] Setup Gitlab CI Runner for Kazan on a computer

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Jun 21 10:32:53 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=190

--- Comment #77 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Jacob Lifshay from comment #76)
> I added code for unsubscribe/resubscribe, but didn't enable it yet...review
> of the CGI script appreciated!

After experiencing bash's propensity for inadvertently ignoring errors, which
makes it particularly terrible for CGI scripts, I rewrote it in rust:
https://salsa.debian.org/Kazan-team/gitlab-ci-archiver/-/tree/master/email_manage

that link is to both the unsubscribe cgi binary and the email-manage binary
(used for changing who gets emails for which projects from the command line, as
well as generating urls to access the subscription editor). they're both
actually symlinks to the same file like busybox.

I added per-project email subscriptions, so, for example, lkcl can be
subscribed to nmutil but not soc since nmutil should pass CI so therefore he'd
probably want to know when he broke it, but soc currently doesn't pass CI so
the build failure messages are just annoying.

I added a second email verification step to avoid the issue where build log
emails get posted to mailing lists and someone clicking on your unsubscribe
link to try and fiddle with all the settings, now all they'll be able to do is
send you unwanted email verification emails.

the verification emails are rate limited with exponential backoff, the default
settings are you can send 2 emails immediately, then you have to wait 6hr, then
12hr, then 1 day, and so on till the link expires in 3 days. I figured that's a
decent balance between not getting 7000 spam emails and actually being able to
send yourself another verification email when necessary.

I'll enable it on the build server in the morning when I can be awake in case
anything breaks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list