[pkg-lua-devel] lua-resty-{core,lrucache} packages

Jan Mojzis jan.mojzis at gmail.com
Thu Jul 28 14:40:25 BST 2022


> On 27. 7. 2022, at 16:24, Jérémy Lal <kapouer at melix.org> wrote:
> 
> (fixed reply style to the bottom)
>  
> Le mer. 27 juil. 2022 à 16:17, Jan Mojzis <jan.mojzis at gmail.com <mailto:jan.mojzis at gmail.com>> a écrit :
>> On 27. 7. 2022, at 10:22, Jérémy Lal <kapouer at melix.org <mailto:kapouer at melix.org>> wrote:
>> 
>> 
>> 
>> Le mer. 27 juil. 2022 à 09:57, Jan Mojzis <jan.mojzis at gmail.com <mailto:jan.mojzis at gmail.com>> a écrit :
>> Hi,
>> https://salsa.debian.org/lua-team/lua-resty-lrucache <https://salsa.debian.org/lua-team/lua-resty-lrucache>
>> is also ready.
>> 
>> 
>> Everything looks good to me, except that it doesn't run the tests.
>> I think we need to package
>> https://metacpan.org/pod/Test::Nginx#DEBIAN-PACKAGES <https://metacpan.org/pod/Test::Nginx#DEBIAN-PACKAGES>
>> 
>> and see how it goes from there ? Do you mind ?
> 
> Hello,
> the test is too complicated and will not be easy to run it.
> There are more problems than only Test:Nginx missing perl package.
> There is problem in module Test:Nginx itself.
> Here I made autopkg test for it: https://salsa.debian.org/lua-team/lua-resty-lrucache/-/jobs/3042172 <https://salsa.debian.org/lua-team/lua-resty-lrucache/-/jobs/3042172>
> and fails to run nginx:
> ~~~
> nginx: [emerg] unknown directive "lua_package_path" in /tmp/autopkgtest-lxc.fumlyung/downtmp/build.CCv/src/t/servroot/conf/nginx.conf:25
> nginx: [emerg] unknown directive "lua_package_path" in /tmp/autopkgtest-lxc.fumlyung/downtmp/build.CCv/src/t/servroot/conf/nginx.conf:25
> ...
> ~~~
> 
> That's normal, these tests require libnginx-mod-http-lua to be installed alongside nginx
> 
Hello,
https://salsa.debian.org/lua-team/lua-resty-lrucache <https://salsa.debian.org/lua-team/lua-resty-lrucache>
has an autopkg test that run the original tests.
And works.

But lua-resty-core tests has still problems:
https://salsa.debian.org/lua-team/lua-resty-core/-/jobs/3045933 <https://salsa.debian.org/lua-team/lua-resty-core/-/jobs/3045933>
It doesn't even work against openresty nginx.

Jan


More information about the pkg-lua-devel mailing list