apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: support centos 7, centos 8 in CI

Open moonming opened this issue 6 years ago • 13 comments

Issue description

Environment

  • apisix version (cmd: apisix version):
  • OS:

moonming avatar Oct 30 '20 04:10 moonming

Github action runs-on only supports a few systems: detail I think it is possible to test on centos7&8 by creating docker container Github action. I am willing to try it when I have time.

idbeta avatar Oct 30 '20 14:10 idbeta

Github action OS list:

image

membphis avatar Oct 30 '20 14:10 membphis

@idbeta any update?

moonming avatar Nov 15 '20 09:11 moonming

@idbeta this issue blocked 2.1 release

moonming avatar Nov 16 '20 01:11 moonming

I will start this thing as soon as possible.

idbeta avatar Nov 16 '20 04:11 idbeta

@idbeta please confirm you finish this job in this week. if not, we change this Milestone to 2.2

membphis avatar Nov 17 '20 00:11 membphis

Sorry, I think I can not finish it this week. @moonming @membphis

idbeta avatar Nov 17 '20 07:11 idbeta

Okay, I got it. I have changed the milestone to the 2.2.

membphis avatar Nov 17 '20 07:11 membphis

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? not a problem at all

  1. 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

idbeta avatar Dec 04 '20 10:12 idbeta

  1. I don’t know how to combine Centos7 containers with these containers

--net=host

membphis avatar Dec 04 '20 14:12 membphis

  1. 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?

I think service is good for that: https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers

nic-chen avatar Dec 04 '20 15:12 nic-chen

t/certs/*.t

t/certs/ has no test file at all.

nic-chen avatar Dec 04 '20 15:12 nic-chen

t/certs/*.t

t/certs/ has no test file at all.

Ok, I was cheated.

idbeta avatar Dec 04 '20 15:12 idbeta