Re: Bug Safari Project

2023-07-22 Thread Ben Cooksley
On Sun, Jul 23, 2023 at 12:18 AM Ben Bonacci  wrote:

> Hi everyone!
>

Hi Ben,


>
> For the past few days I've been working on Bug Safari, which is a Python
> script that gets statistics for Plasma bugs and sends a report to the
> #plasma room on Matrix, which is one of the dot points for KDE's
> Automation goal.
>
> I've now got the script uploaded to Invent at
> https://invent.kde.org/bbonacci/bug-safari for anyone to look over, make
> improvements or implement.
>

Thanks for this, I have just had a quick look over the code and it overall
looks pretty reasonable, and also follows best practice of setting it's own
user agent.

One small suggestion would be to add some small sleeps in to ensure that
the server endpoints don't get hammered by your requests.
While the script by itself is fairly innocent, if similar scripts were
added for a series of other channels and they all ran at the same time,
this could result in a rush on the server that could make it inaccessible
to normal users (or at the very least impact responsiveness).

Adding some sleeps (ideally for a random number of seconds as people tend
to pick the same cron times to run stuff on) will ensure this doesn't
become an issue.


> Regards,
>
> Ben
>

Cheers,
Ben


>
> --
> Ben Bonacci
> https://benbonacci.com
> C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
>
> Quote of the Day: "What's the good of living if you don't try a few
> things?" - Charles M. Schulz
>
>


Re: Bug Safari Project

2023-07-22 Thread Harald Sitter
Amazing stuff!

You should look into making your project reuse compliant
https://apachelog.wordpress.com/2021/04/06/reuse-licensing-helper/
and add ci for it
https://invent.kde.org/plasma/plasma-disks/-/blob/master/.gitlab-ci.yml#L5

On Sat, Jul 22, 2023 at 2:18 PM Ben Bonacci  wrote:
>
> Hi everyone!
>
> For the past few days I've been working on Bug Safari, which is a Python
> script that gets statistics for Plasma bugs and sends a report to the
> #plasma room on Matrix, which is one of the dot points for KDE's
> Automation goal.
>
> I've now got the script uploaded to Invent at
> https://invent.kde.org/bbonacci/bug-safari for anyone to look over, make
> improvements or implement.
>
> Regards,
>
> Ben
>
> --
> Ben Bonacci
> https://benbonacci.com
> C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
>
> Quote of the Day: "What's the good of living if you don't try a few things?" 
> - Charles M. Schulz
>


Re: Bug Safari Project

2023-07-22 Thread Justin Zobel
I did have something basic written up for this but it's in bash and it 
stopped working and I hadn't got around to fixing it. At least with 
python it's likely a bit more solid. Thanks for you work on automation!


On 22/7/23 21:34, Ben Bonacci wrote:

Hi everyone!

For the past few days I've been working on Bug Safari, which is a 
Python script that gets statistics for Plasma bugs and sends a report 
to the #plasma room on Matrix, which is one of the dot points for 
KDE's Automation goal.


I've now got the script uploaded to Invent at 
https://invent.kde.org/bbonacci/bug-safari for anyone to look over, 
make improvements or implement.


Regards,

Ben



Bug Safari Project

2023-07-22 Thread Ben Bonacci

Hi everyone!

For the past few days I've been working on Bug Safari, which is a Python 
script that gets statistics for Plasma bugs and sends a report to the 
#plasma room on Matrix, which is one of the dot points for KDE's 
Automation goal.


I've now got the script uploaded to Invent at 
https://invent.kde.org/bbonacci/bug-safari for anyone to look over, make 
improvements or implement.


Regards,

Ben

--
Ben Bonacci
https://benbonacci.com
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976

Quote of the Day: "What's the good of living if you don't try a few things?" - 
Charles M. Schulz



Downtime notification - Gitlab server migration

2023-07-22 Thread Ben Cooksley
Good morning all,

This evening (UTC time) I will be moving Gitlab from the current system it
is located on to a new server.

This move is being undertaken to ensure we have the most up to date
software stack, as well as take advantage of newer hardware that is both
more efficient and more powerful (the existing server is around 4 years old
or so).

Based on performance benchmarks, the new system should have a significant
performance uplift, which will help ensure we're able to support new
workloads - such as the incoming migration of binary build jobs from the
Binary Factory.

This migration will take several hours unfortunately, during which time
Gitlab will be completely unavailable. This includes read and write
operations to Git repositories, authentication services for KDE.org sites
that use Invent login, issues, wiki pages and everything else hosted by
Gitlab.

This migration will be undertaken from approximately 10pm UTC, Saturday
22nd July.

Please let me know if you have any questions on the above.

Cheers,
Ben


Downtime notification - Gitlab server migration

2023-07-22 Thread Ben Cooksley
Good morning all,

This evening (UTC time) I will be moving Gitlab from the current system it
is located on to a new server.

This move is being undertaken to ensure we have the most up to date
software stack, as well as take advantage of newer hardware that is both
more efficient and more powerful (the existing server is around 4 years old
or so).

Based on performance benchmarks, the new system should have a significant
performance uplift, which will help ensure we're able to support new
workloads - such as the incoming migration of binary build jobs from the
Binary Factory.

This migration will take several hours unfortunately, during which time
Gitlab will be completely unavailable. This includes read and write
operations to Git repositories, authentication services for KDE.org sites
that use Invent login, issues, wiki pages and everything else hosted by
Gitlab.

This migration will be undertaken from approximately 10pm UTC, Saturday
22nd July.

Please let me know if you have any questions on the above.

Cheers,
Ben