A new request with request id 18155 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is :

Title : Koha-devel Digest, Vol 186, Issue 20
Category :
Description :
Send Koha-devel mailing list submissions to
    koha-devel@lists.koha-community.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
or, via email, send a message with subject or body 'help' to
    koha-devel-request@lists.koha-community.org

You can reach the person managing the list at
    koha-devel-owner@lists.koha-community.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Koha-devel digest..."


Today's Topics:

1. Koha 19.11.18 released, ⚠ security release
(Victor Grousset/tuxayo)
2. Thoughts on reloading Koha plugins (dcook@prosentient.com.au)
3. Re: Deadlock issues when running the tests in parallel, and
maybe not only in the tests? (Mason James)
4. Re: Thoughts on reloading Koha plugins (Arthur)
5. Re: [Koha] Release of Koha 20.11.06 (Mason James)
6. Re: Thoughts on reloading Koha plugins (dcook@prosentient.com.au)


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

Message: 1
Date: Tue, 25 May 2021 19:38:54 +0200
From: Victor Grousset/tuxayo <victor@tuxayo.net>
To: Koha@lists.katipo.co.nz, koha-devel
    <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Koha 19.11.18 released, ⚠ security release
Message-ID: <31619e35-8d38-f444-6669-f247b9936236@tuxayo.net>
Content-Type: text/plain; charset=utf-8; format=flowed

Hello!

The Koha Community is happy to announce the release of Koha 19.11.18

The full release notes can be found at:
https://koha-community.org/koha-19-11-18-released/

Debian packages should be available shortly.

Thanks to everyone involved :)


Cheers,

--
Victor Grousset/tuxayo


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

Message: 2
Date: Wed, 26 May 2021 10:10:32 +1000
From: <dcook@prosentient.com.au>
To: <koha-devel@lists.koha-community.org>
Cc: "'Tomas Cohen Arazi'" <tomascohen@theke.io>, "'Kyle Hall'"
    <kyle@bywatersolutions.com>
Subject: [Koha-devel] Thoughts on reloading Koha plugins
Message-ID: <010101d751c3$8b780450$a2680cf0$@prosentient.com.au>
Content-Type: text/plain; charset="utf-8"

Hi all,



It seems to me that installing Koha plugins is easy enough. Each Starman
process will load the plugin into memory because it hasn't seen it before.



However, if you're updating/upgrading a plugin, each Starman process has
already loaded it, so it won't know that it needs to reload it. I think most
of us work around this at the moment either by restarting Plack or just
letting the Starman workers die and be replaced by new ones that use the
updated code. But that doesn't seem optimal for an environment that allows
user plugins.



That said,
https://advent.plackperl.org/2009/12/day-4-reloading-applications.html and
https://metacpan.org/pod/Module::Reload have a few points on how reloading
code in a persistent process is a good way to get bugs.



I recall Kyle saying Wordpress was his inspiration for the plugins. I'm
curious how Wordpress handles plugin upgrades.



David Cook

Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia



Office: 02 9212 0899

Online: 02 8005 0595



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210526/722b33d9/attachment-0001.htm>

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

Message: 3
Date: Wed, 26 May 2021 12:37:50 +1200
From: Mason James <mtj@kohaaloha.com>
To: Victor Grousset/tuxayo <victor@tuxayo.net>, koha-devel
    <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] Deadlock issues when running the tests in
    parallel, and maybe not only in the tests?
Message-ID: <39abe900-eaa7-1725-53a0-122dbbd9a768@kohaaloha.com>
Content-Type: text/plain; charset=utf-8; format=flowed


On 26/05/21 3:45 am, Victor Grousset/tuxayo wrote:
> Hi :)
>
> IIUC this is where the CI calls "prove" to run the tests
> https://gitlab.com/koha-community/koha-testing-docker/-/blob/master/files/run.sh#L213
>
> And this is the place where KOHA_PROVE_CPUS is set.
> https://gitlab.com/koha-community/koha-testing-docker/-/blob/master/files/run.sh#L155
> It's not set in ".env" file so it should use "nproc" and this calls "prove" with more than one thread.
>
> Is that really the case? I tried locally use to "prove -j 4" and I'm getting deadlocks with the database after a few minutes.

hi Victor

it is known behaviour with the test suite, i think its caused by the tests mocking database tables in parallel - which is something that would not happen during normal/production usage

you can see that all the database tests are forced to run sequentially...

   prove -j ${KOHA_PROVE_CPUS} --rules='seq=t/db_dependent/**.t'

https://gitlab.com/koha-community/koha-testing-docker/-/blob/master/files/run.sh#L213



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

Message: 4
Date: Wed, 26 May 2021 06:09:37 +0200
From: Arthur <arthur.suzuki@biblibre.com>
To: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins
Message-ID: <1f869d95-b162-2fb1-8296-ce70d512395a@biblibre.com>
Content-Type: text/plain; charset="windows-1252"

Hi David,

From what I recall about wordpress, it doesn't use any code-caching
system. (wordpress hosters could use FastCGI though).

It's reloaded at each calls.

Arthur

On 26/05/2021 02:10, dcook@prosentient.com.au wrote:
>
> Hi all,
>
>  
>
> It seems to me that installing Koha plugins is easy enough. Each
> Starman process will load the plugin into memory because it hasn’t
> seen it before.
>
>  
>
> However, if you’re updating/upgrading a plugin, each Starman process
> has already loaded it, so it won’t know that it needs to reload it. I
> think most of us work around this at the moment either by restarting
> Plack or just letting the Starman workers die and be replaced by new
> ones that use the updated code. But that doesn’t seem optimal for an
> environment that allows user plugins…
>
>  
>
> That said,
> https://advent.plackperl.org/2009/12/day-4-reloading-applications.html
> <https://advent.plackperl.org/2009/12/day-4-reloading-applications.html>
> and https://metacpan.org/pod/Module::Reload
> <https://metacpan.org/pod/Module::Reload> have a few points on how
> reloading code in a persistent process is a good way to get bugs.
>
>  
>
> I recall Kyle saying Wordpress was his inspiration for the plugins.
> I’m curious how Wordpress handles plugin upgrades.
>
>  
>
> David Cook
>
> Software Engineer
>
> Prosentient Systems
>
> Suite 7.03
>
> 6a Glen St
>
> Milsons Point NSW 2061
>
> Australia
>
>  
>
> Office: 02 9212 0899
>
> Online: 02 8005 0595
>
>  
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel@lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : https://www.koha-community.org/
> git : https://git.koha-community.org/
> bugs : https://bugs.koha-community.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210526/b158b315/attachment-0001.htm>

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

Message: 5
Date: Wed, 26 May 2021 16:13:57 +1200
From: Mason James <mtj@kohaaloha.com>
To: Fridolin SOMERS <fridolin.somers@biblibre.com>, koha-devel
    <koha-devel@lists.koha-community.org>, "koha@lists.katipo.co.nz"
    <koha@lists.katipo.co.nz>
Subject: Re: [Koha-devel] [Koha] Release of Koha 20.11.06
Message-ID: <af17b4fd-41e5-aff0-be02-45ec1e181b2e@kohaaloha.com>
Content-Type: text/plain; charset=utf-8; format=flowed


On 26/05/21 2:25 am, Fridolin SOMERS wrote:
> Hello everyone 🤗
>
> The Koha community is proud to announce the release of Koha 20.11.06.
>
> It is a maintenance release with 3 security fixes.
>
> The full release notes are available here:
> https://koha-community.org/koha-20-11-06-released/
>
> Debian packages should be available in a few days.
>

Kia ora community, the Debian packages are uploaded

cheers, Mason


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

Message: 6
Date: Wed, 26 May 2021 15:16:58 +1000
From: <dcook@prosentient.com.au>
To: "'Arthur'" <arthur.suzuki@biblibre.com>,
    <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins
Message-ID: <015c01d751ee$59d18a90$0d749fb0$@prosentient.com.au>
Content-Type: text/plain; charset="utf-8"

Hmm interesting. I see instructions on setting up Wordpress with FastCGI but
no comments about any impact that would have on plugins. Maybe they just
don't worry about it the same way most Koha folk don't worry about it hehe.



David Cook

Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia



Office: 02 9212 0899

Online: 02 8005 0595



From: Koha-devel <koha-devel-bounces@lists.koha-community.org> On Behalf Of
Arthur
Sent: Wednesday, 26 May 2021 2:10 PM
To: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins



Hi David,

>From what I recall about wordpress, it doesn't use any code-caching system.
(wordpress hosters could use FastCGI though).

It's reloaded at each calls.

Arthur

On 26/05/2021 02:10, dcook@prosentient.com.au
<mailto:dcook@prosentient.com.au> wrote:

Hi all,



It seems to me that installing Koha plugins is easy enough. Each Starman
process will load the plugin into memory because it hasn't seen it before.



However, if you're updating/upgrading a plugin, each Starman process has
already loaded it, so it won't know that it needs to reload it. I think most
of us work around this at the moment either by restarting Plack or just
letting the Starman workers die and be replaced by new ones that use the
updated code. But that doesn't seem optimal for an environment that allows
user plugins.



That said,
https://advent.plackperl.org/2009/12/day-4-reloading-applications.html and
https://metacpan.org/pod/Module::Reload have a few points on how reloading
code in a persistent process is a good way to get bugs.



I recall Kyle saying Wordpress was his inspiration for the plugins. I'm
curious how Wordpress handles plugin upgrades.



David Cook

Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia



Office: 02 9212 0899

Online: 02 8005 0595







_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
<mailto:Koha-devel@lists.koha-community.org>
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210526/33d6c8f5/attachment.htm>

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

Subject: Digest Footer

_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/


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

End of Koha-devel Digest, Vol 186, Issue 20
*******************************************


NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.