This is an automated email from the ASF dual-hosted git repository.
wenming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 7f649bc4e ci: removed centos, chaos, fuzzing and fips CIs. (#11394)
7f649bc4e is described below
commit 7f649bc4efe12aba8a9464b67a83d719d5d7aad4
Author: Ming Wen <[email protected]>
AuthorDate: Mon Jul 8 17:55:54 2024 +0800
ci: removed centos, chaos, fuzzing and fips CIs. (#11394)
---
.github/workflows/centos7-ci.yml | 181 -----------------------------------
.github/workflows/chaos.yml.disabled | 88 -----------------
.github/workflows/fips.yml | 136 --------------------------
.github/workflows/fuzzing-ci.yaml | 86 -----------------
.github/workflows/source-install.yml | 1 -
5 files changed, 492 deletions(-)
diff --git a/.github/workflows/centos7-ci.yml b/.github/workflows/centos7-ci.yml
deleted file mode 100644
index 177e9c8fb..000000000
--- a/.github/workflows/centos7-ci.yml
+++ /dev/null
@@ -1,181 +0,0 @@
-name: CI Centos7
-
-on:
- push:
- branches: [master, 'release/**']
- paths-ignore:
- - 'docs/**'
- - '**/*.md'
- pull_request:
- branches: [master, 'release/**']
- paths-ignore:
- - 'docs/**'
- - '**/*.md'
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' &&
github.run_number || github.ref }}
- cancel-in-progress: true
-
-permissions:
- contents: read
-
-jobs:
- test_apisix:
- name: run ci on centos7
- runs-on: ubuntu-20.04
- timeout-minutes: 90
- strategy:
- fail-fast: false
- matrix:
- events_module:
- - lua-resty-worker-events
- - lua-resty-events
- test_dir:
- - t/plugin/[a-k]*
- - t/plugin/[l-z]*
- - t/admin t/cli t/config-center-yaml t/control t/core t/debug
t/discovery t/error_page t/misc
- - t/node t/pubsub t/router t/script t/secret t/stream-node t/utils
t/xds-library
-
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- with:
- submodules: recursive
-
- - name: Cache deps
- uses: actions/cache@v4
- env:
- cache-name: cache-deps
- with:
- path: deps
- key: ${{ runner.os }}-${{ env.cache-name }}-centos7-${{
hashFiles('apisix-master-0.rockspec') }}
-
- - name: Extract branch name
- if: ${{ startsWith(github.ref, 'refs/heads/release/') }}
- id: branch_env
- shell: bash
- run: |
- echo "version=${GITHUB_REF##*/}" >>$GITHUB_OUTPUT
-
- - name: Extract test type
- shell: bash
- id: test_env
- run: |
- test_dir="${{ matrix.test_dir }}"
- if [[ $test_dir =~ 't/plugin' ]]; then
- echo "type=plugin" >>$GITHUB_OUTPUT
- fi
- if [[ $test_dir =~ 't/admin ' ]]; then
- echo "type=first" >>$GITHUB_OUTPUT
- fi
- if [[ $test_dir =~ ' t/xds-library' ]]; then
- echo "type=last" >>$GITHUB_OUTPUT
- fi
-
- - name: Free disk space
- run: |
- bash ./ci/free_disk_space.sh
-
- - name: Linux launch common services
- run: |
- make ci-env-up project_compose_ci=ci/pod/docker-compose.common.yml
- sudo ./ci/init-common-test-service.sh
-
- - name: Build rpm package
- if: ${{ startsWith(github.ref, 'refs/heads/release/') }}
- run: |
- export VERSION=${{ steps.branch_env.outputs.version }}
- sudo gem install --no-document fpm
- git clone --depth 1 https://github.com/api7/apisix-build-tools.git
-
- # move codes under build tool
- mkdir ./apisix-build-tools/apisix
- for dir in `ls|grep -v "^apisix-build-tools$"`;do cp -r $dir
./apisix-build-tools/apisix/;done
-
- cd apisix-build-tools
- make package type=rpm app=apisix version=${VERSION}
checkout=release/${VERSION} image_base=centos image_tag=7
local_code_path=./apisix
- cd ..
- rm -rf $(ls -1 -I apisix-build-tools -I t -I utils -I ci
--ignore=Makefile -I "*.rockspec")
-
- - name: Start Dubbo Backend
- run: |
- cur_dir=$(pwd)
- sudo apt update
- sudo apt install -y maven
- cd t/lib/dubbo-backend
- mvn package
- cd dubbo-backend-provider/target
- java -Djava.net.preferIPv4Stack=true -jar
dubbo-demo-provider.one-jar.jar > /tmp/java.log &
- cd $cur_dir/t/lib/dubbo-serialization-backend
- mvn package
- cd dubbo-serialization-backend-provider/target
- java -Djava.net.preferIPv4Stack=true -jar
dubbo-demo-provider.one-jar.jar > /tmp/java2.log &
-
-
- - name: Build xDS library
- if: steps.test_env.outputs.type == 'last'
- run: |
- cd t/xds-library
- go build -o libxds.so -buildmode=c-shared main.go export.go
-
- - name: Run centos7 docker and mapping apisix into container
- env:
- TEST_FILE_SUB_DIR: ${{ matrix.test_dir }}
- TEST_EVENTS_MODULE: ${{ matrix.events_module }}
- run: |
- docker run -itd -v ${{ github.workspace }}:/apisix --env
TEST_FILE_SUB_DIR="$TEST_FILE_SUB_DIR" --env
TEST_EVENTS_MODULE="$TEST_EVENTS_MODULE" --name centos7Instance --net="host"
--dns 8.8.8.8 --dns-search apache.org docker.io/centos:7 /bin/bash
- # docker exec centos7Instance bash -c "cp -r /tmp/apisix ./"
-
- - name: Cache images
- id: cache-images
- uses: actions/cache@v4
- env:
- cache-name: cache-apisix-docker-images
- with:
- path: docker-images-backup
- key: ${{ runner.os }}-${{ env.cache-name }}-${{
steps.test_env.outputs.type }}-${{
hashFiles(format('./ci/pod/docker-compose.{0}.yml', steps.test_env.outputs.type
)) }}
-
- - if: ${{ steps.cache-images.outputs.cache-hit == 'true' }}
- name: Load saved docker images
- run: |
- if [[ -f docker-images-backup/apisix-images.tar ]]; then
- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo
./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh before
- docker load --input docker-images-backup/apisix-images.tar
- rm docker-images-backup/apisix-images.tar
- make ci-env-up project_compose_ci=ci/pod/docker-compose.${{
steps.test_env.outputs.type }}.yml
- echo "loaded docker images"
- if [[ ${{ steps.test_env.outputs.type }} != first ]]; then
- sudo ./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh
after
- fi
- fi
- - if: ${{ steps.cache-images.outputs.cache-hit != 'true' }}
- name: Linux launch services
- run: |
- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo
./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh before
- [[ ${{ steps.test_env.outputs.type }} == plugin ]] &&
./ci/pod/openfunction/build-function-image.sh
- make ci-env-up project_compose_ci=ci/pod/docker-compose.${{
steps.test_env.outputs.type }}.yml
- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo
./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh after
- echo "Linux launch services, done."
-
- - name: Install dependencies
- run: |
- docker exec centos7Instance bash -c "cd apisix && ./ci/centos7-ci.sh
install_dependencies"
-
- - name: Install rpm package
- if: ${{ startsWith(github.ref, 'refs/heads/release/') }}
- run: |
- docker exec centos7Instance bash -c "cd apisix && rpm -iv
--prefix=/apisix ./apisix-build-tools/output/apisix-${{
steps.branch_env.outputs.version }}-0.el7.x86_64.rpm"
- # Dependencies are attached with rpm, so revert `make deps`
- docker exec centos7Instance bash -c "cd apisix && rm -rf deps"
- docker exec centos7Instance bash -c "cd apisix && mv usr/bin . && mv
usr/local/apisix/* ."
-
- - name: Run test cases
- run: |
- docker exec centos7Instance bash -c "cd apisix && ./ci/centos7-ci.sh
run_case"
-
- - if: ${{ steps.cache-images.outputs.cache-hit != 'true' }}
- name: Save docker images
- run: |
- echo "start backing up, $(date)"
- bash ./ci/backup-docker-images.sh ${{ steps.test_env.outputs.type }}
- echo "backup done, $(date)"
diff --git a/.github/workflows/chaos.yml.disabled
b/.github/workflows/chaos.yml.disabled
deleted file mode 100644
index 7b47664c5..000000000
--- a/.github/workflows/chaos.yml.disabled
+++ /dev/null
@@ -1,88 +0,0 @@
-name: Chaos Test
-
-on:
- pull_request:
- branches: [master, 'release/**']
- paths-ignore:
- - 'docs/**'
- - '**/*.md'
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' &&
github.run_number || github.ref }}
- cancel-in-progress: true
-
-permissions:
- contents: read
-
-jobs:
- chaos-test:
- runs-on: ubuntu-latest
- timeout-minutes: 35
- steps:
- - uses: actions/checkout@v4
- with:
- submodules: recursive
-
- - name: Setup go
- uses: actions/setup-go@v4
- with:
- go-version: "1.17"
-
- - uses: actions/cache@v3
- with:
- path: |
- ~/.cache/go-build
- ~/go/pkg/mod
- key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- restore-keys: |
- ${{ runner.os }}-go-
-
- - name: Creating minikube cluster
- run: |
- bash ./t/chaos/utils/setup_chaos_utils.sh start_minikube
- mkdir logs
- docker build -t apache/apisix:alpine-local --build-arg APISIX_PATH=.
-f ./t/chaos/utils/Dockerfile .
- minikube cache add apache/apisix:alpine-local -v 7 --alsologtostderr
-
- - name: Print cluster information
- run: |
- kubectl config view
- kubectl cluster-info
- kubectl get nodes
- kubectl get pods -n kube-system
- kubectl version
-
- - name: Deploy etcd with Helm
- run: |
- curl
https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- helm repo add bitnami https://charts.bitnami.com/bitnami
- helm install etcd bitnami/etcd --set replicaCount=3 --set
auth.rbac.create=false
- kubectl wait pods -l app.kubernetes.io/instance=etcd
--for=condition=Ready --timeout=300s --all
-
-
- - name: Deploy APISIX
- run: |
- bash ./t/chaos/utils/setup_chaos_utils.sh modify_config
- kubectl create configmap apisix-gw-config.yaml
--from-file=./conf/config.yaml
- kubectl apply -f ./t/chaos/kubernetes/deployment.yaml
- kubectl apply -f ./t/chaos/kubernetes/service.yaml
- kubectl wait pods -l app=apisix-gw --for=condition=Ready
--timeout=300s \
- || (kubectl logs -l app=apisix-gw && exit 1)
- kubectl apply -f
https://raw.githubusercontent.com/istio/istio/master/samples/httpbin/httpbin.yaml
- kubectl wait pods -l app=httpbin --for=condition=Ready
--timeout=300s \
- || (kubectl logs -l app=httpbin && exit 1)
- bash ./t/chaos/utils/setup_chaos_utils.sh port_forward
-
- - name: Deploy Chaos Mesh
- run: |
- curl -sSL https://mirrors.chaos-mesh.org/v2.0.1/install.sh | bash
-
-
- - name: Install Ginkgo
- run: |
- go get -u github.com/onsi/ginkgo/ginkgo
- sudo cp ~/go/bin/ginkgo /usr/local/bin
-
- - name: Run test
- working-directory: ./t/chaos
- run: ginkgo -r --v --progress --trace
diff --git a/.github/workflows/fips.yml b/.github/workflows/fips.yml
deleted file mode 100644
index 2be0f3a1d..000000000
--- a/.github/workflows/fips.yml
+++ /dev/null
@@ -1,136 +0,0 @@
-name: CI FIPS
-
-on:
- push:
- branches: [master]
- paths-ignore:
- - 'docs/**'
- - '**/*.md'
- pull_request:
- branches: [master]
- paths-ignore:
- - 'docs/**'
- - '**/*.md'
-
-permissions:
- contents: read
-
-jobs:
- build:
- strategy:
- fail-fast: false
- matrix:
- platform:
- - ubuntu-20.04
- os_name:
- - linux_openresty
- test_dir:
- # all plugins only use three parts of openssl API: RSA via ffi, SHA
via ffi and SSL API wrapped by nginx.
- # The latter one is already covered by the core tests, so no need to
repeat it in plugin tests.
- # The RSA and SHA tests are fully covered by jwt-auth and hmac-auth
plugin tests, while other plugins only repeat such tests.
- - t/plugin/jwt-auth2.t t/plugin/jwt-auth.t t/plugin/hmac-auth.t
- # all SSL related core tests are covered by below two lists.
- - t/admin/ssl* t/admin/schema.t t/admin/upstream.t
t/config-center-yaml/ssl.t t/core/etcd-mtls.t t/core/config_etcd.t
t/misc/patch.t
- - t/node/grpc-proxy-unary.t t/node/upstream-keepalive-pool.t
t/node/upstream-websocket.t t/node/client-mtls.t t/node/upstream-mtls.t
t/pubsub/kafka.t t/router/radixtree-sni2.t t/router/multi-ssl-certs.t
t/router/radixtree-sni.t t/stream-node/mtls.t t/stream-node/tls.t
t/stream-node/upstream-tls.t t/stream-node/sni.t
- - t/fips
-
- runs-on: ${{ matrix.platform }}
- timeout-minutes: 90
- env:
- SERVER_NAME: ${{ matrix.os_name }}
- OPENRESTY_VERSION: default
- ENABLE_FIPS: true
-
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- with:
- submodules: recursive
-
- - name: Cache deps
- uses: actions/cache@v4
- env:
- cache-name: cache-deps
- with:
- path: deps
- key: ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.os_name
}}-${{ hashFiles('apisix-master-0.rockspec') }}
-
- - name: Extract test type
- shell: bash
- id: test_env
- run: |
- test_dir="${{ matrix.test_dir }}"
- if [[ $test_dir =~ 't/plugin' ]]; then
- echo "type=plugin" >>$GITHUB_OUTPUT
- fi
- if [[ $test_dir =~ 't/fips' ]]; then
- echo "type=plugin" >>$GITHUB_OUTPUT
- fi
- if [[ $test_dir =~ 't/admin' ]]; then
- echo "type=first" >>$GITHUB_OUTPUT
- fi
- if [[ $test_dir =~ 't/node' ]]; then
- echo "type=last" >>$GITHUB_OUTPUT
- fi
-
- - name: Free disk space
- run: |
- bash ./ci/free_disk_space.sh
-
- - name: Linux launch common services
- run: |
- make ci-env-up project_compose_ci=ci/pod/docker-compose.common.yml
- sudo ./ci/init-common-test-service.sh
-
- - name: Cache images
- id: cache-images
- uses: actions/cache@v4
- env:
- cache-name: cache-apisix-docker-images
- with:
- path: docker-images-backup
- key: ${{ runner.os }}-${{ env.cache-name }}-${{
steps.test_env.outputs.type }}-${{
hashFiles(format('./ci/pod/docker-compose.{0}.yml', steps.test_env.outputs.type
)) }}
-
- - if: ${{ steps.cache-images.outputs.cache-hit == 'true' }}
- name: Load saved docker images
- run: |
- if [[ -f docker-images-backup/apisix-images.tar ]]; then
- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo
./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh before
- docker load --input docker-images-backup/apisix-images.tar
- rm docker-images-backup/apisix-images.tar
- make ci-env-up project_compose_ci=ci/pod/docker-compose.${{
steps.test_env.outputs.type }}.yml
- echo "loaded docker images"
- if [[ ${{ steps.test_env.outputs.type }} != first ]]; then
- sudo ./ci/init-${{ steps.test_env.outputs.type
}}-test-service.sh after
- fi
- fi
- - if: ${{ steps.cache-images.outputs.cache-hit != 'true' }}
- name: Linux launch services
- run: |
- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo
./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh before
- [[ ${{ steps.test_env.outputs.type }} == plugin ]] &&
./ci/pod/openfunction/build-function-image.sh
- make ci-env-up project_compose_ci=ci/pod/docker-compose.${{
steps.test_env.outputs.type }}.yml
- echo "make ci-env-up, done"
- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo
./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh after
- echo "Linux launch services, done"
-
- - name: Linux Before install
- run: sudo ./ci/${{ matrix.os_name }}_runner.sh before_install
-
- - name: Linux Install
- run: |
- sudo --preserve-env=ENABLE_FIPS \
- ./ci/${{ matrix.os_name }}_runner.sh do_install
-
- - name: Linux Script
- env:
- OPENSSL_FIPS: yes
- TEST_FILE_SUB_DIR: ${{ matrix.test_dir }}
- run: sudo -E ./ci/${{ matrix.os_name }}_runner.sh script
-
- - if: ${{ steps.cache-images.outputs.cache-hit != 'true' }}
- name: Save docker images
- run: |
- echo "start backing up, $(date)"
- bash ./ci/backup-docker-images.sh ${{ steps.test_env.outputs.type }}
- echo "backup done, $(date)"
diff --git a/.github/workflows/fuzzing-ci.yaml
b/.github/workflows/fuzzing-ci.yaml
deleted file mode 100644
index bd88fd0ed..000000000
--- a/.github/workflows/fuzzing-ci.yaml
+++ /dev/null
@@ -1,86 +0,0 @@
-name: fuzzing
-
-on:
- push:
- branches: [master, 'release/**']
- paths-ignore:
- - 'docs/**'
- - '**/*.md'
- pull_request:
- branches: [master, 'release/**']
- paths-ignore:
- - 'docs/**'
- - '**/*.md'
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' &&
github.run_number || github.ref }}
- cancel-in-progress: true
-
-permissions:
- contents: read
-
-jobs:
- test_apisix:
- name: run fuzzing
- runs-on: ubuntu-latest
- timeout-minutes: 30
-
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- with:
- submodules: recursive
-
- - name: Cache deps
- uses: actions/cache@v4
- env:
- cache-name: cache-deps
- with:
- path: deps
- key: ${{ runner.os }}-${{ env.cache-name }}-${{
hashFiles('apisix-master-0.rockspec') }}
-
- - name: Linux launch common services
- run: |
- project_compose_ci=ci/pod/docker-compose.common.yml make ci-env-up
-
- - name: Linux Before install
- run: sudo ./ci/linux_openresty_runner.sh before_install
-
- - name: Linux Install
- run: |
- sudo --preserve-env=OPENRESTY_VERSION \
- ./ci/linux_openresty_runner.sh do_install
-
- - name: run apisix
- run: |
- source ./ci/common.sh
- export_version_info
- export_or_prefix
- make init
- make run
-
- - name: run upstream
- run: |
- source ./ci/common.sh
- export_version_info
- export_or_prefix
- sudo /usr/local/openresty/bin/openresty -c
$PWD/t/fuzzing/upstream/nginx.conf
-
- - name: install boofuzz
- run: |
- # Avoid "ERROR: flask has requirement click>=8.0, but you'll have
click 7.0 which is incompatible"
- sudo apt remove python3-click
- pip install -r $PWD/t/fuzzing/requirements.txt
-
- - name: run tests
- run: |
- source ./ci/common.sh
- export_version_info
- export_or_prefix
- export APISIX_FUZZING_PWD=$PWD
- python $PWD/t/fuzzing/simpleroute_test.py
- python $PWD/t/fuzzing/serverless_route_test.py
- python $PWD/t/fuzzing/vars_route_test.py
- python $PWD/t/fuzzing/client_abort.py
- python $PWD/t/fuzzing/simple_http.py
- python $PWD/t/fuzzing/http_upstream.py
diff --git a/.github/workflows/source-install.yml
b/.github/workflows/source-install.yml
index b8c0dcb8e..62d192287 100644
--- a/.github/workflows/source-install.yml
+++ b/.github/workflows/source-install.yml
@@ -27,7 +27,6 @@ jobs:
platform:
- ubuntu-20.04
os_platform:
- - centos7
- ubuntu
- redhat
services: