[pgpool-hackers: 4167] Re: Allow pgpool_setup to test sample scripts and config files included in RPMs

Bo Peng pengbo at sraoss.co.jp
Wed Jun 8 20:31:32 JST 2022


Hi Ishii-san,

> > Currently, pgpool_setup generates scripts (e.g. failover.sh, follow_primary.sh)
> > to test pgpool.
> > 
> > The attached patch addes a new option "-c" in src/test/regression/regress.sh
> > and allows pgpool_setup to test sample scripts and config files included in RPMs.
> > This patch also changes "backend_hostnameX = '/tmp'" to "backend_hostnameX = 'localhost'".
> > 
> > In addition, for automated RPMs testing, the following repository
> > has been updated to automatically create RPMs and use the created
> > RPMs to run regression tests.
> > 
> > https://github.com/pgpool/pgpool-II-buildfarm
> 
> Thank you for the patch.  Unfortunately after applying the patch,
> 055.backend_all_down test constantly fails with timeout
> error. Attached is pgpool.log. This is on master branch.

Thank you for testing my patch.
I have fixed this timeout error. Patch is attached.

Because I have changed the backend_hostname to "lcoalhost",
I need to change $PGSOCKET_DIR to "localhost" in test 055.

  grep "Failover done. shutdown host $PGSOCKET_DIR(11003)" log/pgpool.log > /dev/null 2>&1


Best regards,
-- 
Bo Peng <pengbo at sraoss.co.jp>
SRA OSS, Inc. Japan
https://www.sraoss.co.jp/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_rpms_v2.patch
Type: application/octet-stream
Size: 21564 bytes
Desc: not available
URL: <http://www.pgpool.net/pipermail/pgpool-hackers/attachments/20220608/9f84c94c/attachment-0001.obj>


More information about the pgpool-hackers mailing list