idbeta commented on issue #2573:
URL: https://github.com/apache/apisix/issues/2573#issuecomment-738703201


   Hello @gxthrj @nic-chen, I have two questions, need your help.  
   1. I deployed Centos7 by using a docker container in the CI server, deployed 
APISIX in it, and executed all cases, some succeeded, like:
   ```
   /admin/*.t
   /config-center-yaml/*.t
   /debug/*.t
   /router/*.t
   /script/*.t
   /stream-node/*.t
   /stream-plugin/*.t
   /utils/*.t
   ```
   but some cases failed for strange reasons. Do you know the reason? 
   ```
   Cannot detect source of 't/certs/*.t'! at 
/usr/share/perl5/vendor_perl/TAP/Parser/IteratorFactory.pm line 263.
        
TAP::Parser::IteratorFactory::detect_source('TAP::Parser::IteratorFactory=HASH(0x1559df0)',
 'TAP::Parser::Source=HASH(0x144fec0)') called at 
/usr/share/perl5/vendor_perl/TAP/Parser/IteratorFactory.pm line 213
        
TAP::Parser::IteratorFactory::make_iterator('TAP::Parser::IteratorFactory=HASH(0x1559df0)',
 'TAP::Parser::Source=HASH(0x144fec0)') called at 
/usr/share/perl5/vendor_perl/TAP/Parser.pm line 469
        TAP::Parser::_initialize('TAP::Parser=HASH(0x154ecd0)', 
'HASH(0x10e5638)') called at /usr/share/perl5/vendor_perl/TAP/Object.pm line 58
   ```
   2. Because some plugins cases need to deploy docker containers (like 
zookeeper, kafka etc.), I don’t know how to combine Centos7 containers with 
these containers, can you give some advice?
   
   here is my workflow file:
   ```
   jobs:     
     test_apisix:
       name: test_apisix
       runs-on: ubuntu-latest
       container: docker.io/centos:7
       steps:
       - uses: actions/checkout@v2
    
       - name: intall deps
         run: |
           yum install -y wget tar gcc automake autoconf libtool make
           wget 
http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
           rpm -ivh epel-release-latest-7.noarch.rpm
           yum install -y curl git luarocks lua-devel which
           wget 
https://github.com/etcd-io/etcd/releases/download/v3.4.13/etcd-v3.4.13-linux-amd64.tar.gz
           tar -xvf etcd-v3.4.13-linux-amd64.tar.gz && cd 
etcd-v3.4.13-linux-amd64 && cp -a etcd etcdctl /usr/bin/
           cd ..
           etcd &
           yum install -y yum-utils
           yum-config-manager --add-repo 
https://openresty.org/package/centos/openresty.repo
           yum install -y openresty-debug
           yum install -y openresty
           
PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
   
       - name: run test
         run: |
           git clone https://github.com/apache/apisix.git
           cd apisix
           make deps
   
           export PERL5LIB=.:$PERL5LIB
           export OPENRESTY_PREFIX="/usr/local/openresty-debug"
           export 
PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$OPENRESTY_PREFIX/bin:$PATH
   
           yum install -y cpanminus build-essential libncurses5-dev 
libreadline-dev libssl-dev perl
           cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat 
build.log && exit 1)
           make test
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to