[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Bug Safari Project
From:       Ben Bonacci <ben () benbonacci ! com>
Date:       2023-07-24 11:00:47
Message-ID: 82ea5e44-9a0c-a3f4-6a85-2085144f709a () benbonacci ! com
[Download RAW message or body]

Hi Nate,

I've recorded the script in action which can be accessed with this link: 
https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4 (Expires in 1 
week)

Regards,

Ben

On 23/7/23 23:43, Nate Graham wrote:
> Very cool stuff. Can we see it in action anywhere?
>
> Nate
>
>
> On 7/23/23 01:38, Ben Bonacci wrote:
>> Hi Ben,
>>
>> Thanks for the suggestion! Now after each request the script will 
>> wait 1-5 seconds before making the next request.
>>
>> Regards,
>>
>> Ben
>>
>> On 22/7/23 22:30, Ben Cooksley wrote:
>>> On Sun, Jul 23, 2023 at 12:18 AM Ben Bonacci <ben@benbonacci.com> 
>>> 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
>>>
>> -- 
>> Ben Bonacci
>> https://benbonacci.com
>> C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
>>
>> Quote of the Day: "If you only read the books that everyone else is 
>> reading, you can only think what everyone else is thinking." - Haruki 
>> Murakami
>>
-- 
Ben Bonacci
https://benbonacci.com
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976

Quote of the Day: "It does not matter how slowly you go as long as you do not stop." - Confucius

[Attachment #3 (text/html)]

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Nate,</p>
    <p>I've recorded the script in action which can be accessed with
      this link:
      <a class="moz-txt-link-freetext" \
href="https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4">https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4</a>
  (Expires in 1 week)</p>
    <p>Regards,</p>
    <p>Ben<br>
      <span style="font-family:monospace"></span></p>
    <div class="moz-cite-prefix">On 23/7/23 23:43, Nate Graham wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1533e394-d4ee-c584-d890-025c9786e776@kde.org">Very cool
      stuff. Can we see it in action anywhere?
      <br>
      <br>
      Nate
      <br>
      <br>
      <br>
      On 7/23/23 01:38, Ben Bonacci wrote:
      <br>
      <blockquote type="cite">Hi Ben,
        <br>
        <br>
        Thanks for the suggestion! Now after each request the script
        will wait 1-5 seconds before making the next request.
        <br>
        <br>
        Regards,
        <br>
        <br>
        Ben
        <br>
        <br>
        On 22/7/23 22:30, Ben Cooksley wrote:
        <br>
        <blockquote type="cite">On Sun, Jul 23, 2023 at 12:18 AM Ben
          Bonacci <a class="moz-txt-link-rfc2396E" \
href="mailto:ben@benbonacci.com">&lt;ben@benbonacci.com&gt;</a> wrote:  <br>
          <br>
              Hi everyone!
          <br>
          <br>
          <br>
          Hi Ben,
          <br>
          <br>
          <br>
              For the past few days I've been working on Bug Safari,
          which is a
          <br>
              Python
          <br>
              script that gets statistics for Plasma bugs and sends a
          report to the
          <br>
              #plasma room on Matrix, which is one of the dot points for
          KDE's
          <br>
              Automation goal.
          <br>
          <br>
              I've now got the script uploaded to Invent at
          <br>
              <a class="moz-txt-link-freetext" \
href="https://invent.kde.org/bbonacci/bug-safari">https://invent.kde.org/bbonacci/bug-safari</a> \
for anyone to  look
          <br>
              over, make
          <br>
              improvements or implement.
          <br>
          <br>
          <br>
          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.
          <br>
          <br>
          One small suggestion would be to add some small sleeps in to
          ensure that the server endpoints don't get hammered by your
          requests.
          <br>
          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).
          <br>
          <br>
          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.
          <br>
          <br>
          <br>
              Regards,
          <br>
          <br>
              Ben
          <br>
          <br>
          <br>
          Cheers,
          <br>
          Ben
          <br>
          <br>
          <br>
              --     Ben Bonacci
          <br>
              <a class="moz-txt-link-freetext" \
href="https://benbonacci.com">https://benbonacci.com</a>  <br>
              C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
          <br>
          <br>
              Quote of the Day: "What's the good of living if you don't
          try a
          <br>
              few things?" - Charles M. Schulz
          <br>
          <br>
        </blockquote>
        -- <br>
        Ben Bonacci
        <br>
        <a class="moz-txt-link-freetext" \
href="https://benbonacci.com">https://benbonacci.com</a>  <br>
        C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
        <br>
        <br>
        Quote of the Day: "If you only read the books that everyone else
        is reading, you can only think what everyone else is thinking."
        - Haruki Murakami
        <br>
        <br>
      </blockquote>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Ben Bonacci
<a class="moz-txt-link-freetext" \
href="https://benbonacci.com">https://benbonacci.com</a> C0A9 E67F 8CDC B1A1 0860 \
1807 E018 065C C7DF 3976

Quote of the Day: "It does not matter how slowly you go as long as you do not stop." \
- Confucius</pre>  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic