Skip to content

Commit

Permalink
Merge branch 'apache:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
soulbird authored Sep 27, 2022
2 parents 076bc4c + 3c18031 commit 13385bf
Show file tree
Hide file tree
Showing 599 changed files with 26,941 additions and 8,992 deletions.
15 changes: 13 additions & 2 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@

github:
description: The Cloud-Native API Gateway
homepage: https://apisix.apache.org/
homepage: https://apisix.apache.org/blog/
labels:
- api-gateway
- cloud-native
- nginx
- lua
- luajit
- apigateway
- microservices
- api
- apis
- loadbalancing
- reverse-proxy
- api-management
Expand All @@ -36,6 +36,9 @@ github:
- devops
- kubernetes
- docker
- kubernetes-ingress
- kubernetes-ingress-controller
- service-mesh

enabled_merge_buttons:
squash: true
Expand All @@ -50,6 +53,14 @@ github:
dismiss_stale_reviews: true
require_code_owner_reviews: true
required_approving_review_count: 2
release/2.99:
required_pull_request_reviews:
require_code_owner_reviews: true
required_approving_review_count: 2
release/2.15:
required_pull_request_reviews:
require_code_owner_reviews: true
required_approving_review_count: 2
release/2.14:
required_pull_request_reviews:
require_code_owner_reviews: true
Expand Down
1 change: 1 addition & 0 deletions .github/actions/action-semantic-pull-request
15 changes: 0 additions & 15 deletions .github/semantic.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
fail-fast: false
matrix:
platform:
- ubuntu-18.04
- ubuntu-20.04
os_name:
- linux_openresty
- linux_openresty_1_17
- linux_openresty_1_19
test_dir:
- t/plugin
- t/admin t/cli t/config-center-yaml t/control t/core t/debug t/deployment t/discovery t/error_page t/misc
Expand Down Expand Up @@ -106,6 +106,10 @@ jobs:
- name: Start CI env (PLUGIN_TEST)
if: steps.test_env.outputs.type == 'plugin'
run: |
# download keycloak cas provider
sudo wget https://github.com/jacekkow/keycloak-protocol-cas/releases/download/18.0.2/keycloak-protocol-cas-18.0.2.jar -O /opt/keycloak-protocol-cas-18.0.2.jar
sh ci/pod/openfunction/build-function-image.sh
make ci-env-up project_compose_ci=ci/pod/docker-compose.${{ steps.test_env.outputs.type }}.yml
sudo ./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/centos7-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
- name: Start CI env (PLUGIN_TEST)
if: steps.test_env.outputs.type == 'plugin'
run: |
# download keycloak cas provider
sudo wget https://github.com/jacekkow/keycloak-protocol-cas/releases/download/18.0.2/keycloak-protocol-cas-18.0.2.jar -O /opt/keycloak-protocol-cas-18.0.2.jar
sh ci/pod/openfunction/build-function-image.sh
make ci-env-up project_compose_ci=ci/pod/docker-compose.${{ steps.test_env.outputs.type }}.yml
./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chaos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: "1.16"
go-version: "1.17"

- uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
matrix:
job_name:
- linux_apisix_master_luarocks
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
timeout-minutes: 15
env:
OPENRESTY_VERSION: default
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fail-fast: false
matrix:
platform:
- ubuntu-18.04
- ubuntu-20.04
job_name:
- linux_apisix_current_luarocks
- linux_apisix_current_luarocks_in_customed_nginx
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/doc-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Doc Lint

on:
push:
paths:
- 'docs/**'
- '**/*.md'
pull_request:
branches: [master, 'release/**']
paths:
Expand All @@ -18,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: 🚀 Use Node.js
uses: actions/setup-node@v3.3.0
uses: actions/setup-node@v3.4.1
with:
node-version: '12.x'
- run: npm install -g markdownlint-cli@0.25.0
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/fuzzing-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,15 @@ jobs:
- 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 simpleroute test
- name: run tests
run: |
python $PWD/t/fuzzing/simpleroute_test.py
- name: run serverless route test
run: |
python $PWD/t/fuzzing/serverless_route_test.py
- name: run vars route test
run: |
python $PWD/t/fuzzing/vars_route_test.py
- name: run check leak test
run: |
python $PWD/t/fuzzing/client_abort.py
python $PWD/t/fuzzing/simple_http.py
python $PWD/t/fuzzing/http_upstream.py
23 changes: 9 additions & 14 deletions .github/workflows/kubernetes-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
fail-fast: false
matrix:
platform:
- ubuntu-18.04
- ubuntu-20.04
os_name:
- linux_openresty
- linux_openresty_1_17
- linux_openresty_1_19

runs-on: ${{ matrix.platform }}
timeout-minutes: 15
Expand All @@ -44,22 +44,17 @@ jobs:

- name: Setup kubernetes cluster
run: |
KIND_VERSION="v0.11.1"
KUBECTL_VERSION="v1.22.0"
curl -Lo ./kind "https://kind.sigs.k8s.io/dl/${KIND_VERSION}/kind-$(uname)-amd64"
curl -Lo ./kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl"
chmod +x ./kind
chmod +x ./kubectl
KUBERNETES_VERSION="v1.22.7"
./kind create cluster --name apisix-test --config ./t/kubernetes/configs/kind.yaml
kind create cluster --name apisix-test --config ./t/kubernetes/configs/kind.yaml --image kindest/node:${KUBERNETES_VERSION}
./kubectl wait --for=condition=Ready nodes --all --timeout=180s
kubectl wait --for=condition=Ready nodes --all --timeout=180s
./kubectl apply -f ./t/kubernetes/configs/account.yaml
kubectl apply -f ./t/kubernetes/configs/account.yaml
./kubectl apply -f ./t/kubernetes/configs/endpoint.yaml
kubectl apply -f ./t/kubernetes/configs/endpoint.yaml
KUBERNETES_CLIENT_TOKEN_CONTENT=$(./kubectl get secrets | grep apisix-test | awk '{system("./kubectl get secret -o jsonpath={.data.token} "$1" | base64 --decode")}')
KUBERNETES_CLIENT_TOKEN_CONTENT=$(kubectl get secrets | grep apisix-test | awk '{system("kubectl get secret -o jsonpath={.data.token} "$1" | base64 --decode")}')
KUBERNETES_CLIENT_TOKEN_DIR="/tmp/var/run/secrets/kubernetes.io/serviceaccount"
Expand All @@ -73,7 +68,7 @@ jobs:
echo 'KUBERNETES_CLIENT_TOKEN='"${KUBERNETES_CLIENT_TOKEN_CONTENT}"
echo 'KUBERNETES_CLIENT_TOKEN_FILE='${KUBERNETES_CLIENT_TOKEN_FILE}
./kubectl proxy -p 6445 &
kubectl proxy -p 6445 &
- name: Linux Install
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Check License Header
uses: apache/skywalking-eyes@v0.3.0
uses: apache/skywalking-eyes@v0.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ❄️ Lint

on: [pull_request]
on: [push, pull_request]

permissions:
contents: read
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup Nodejs env
uses: actions/setup-node@v3.3.0
uses: actions/setup-node@v3.4.1
with:
node-version: '12'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
jobs:
performance:
if: github.event_name == 'pull_request' && github.event.label.name == 'performance'
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
timeout-minutes: 45

steps:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "PR Lint"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: recursive
- uses: ./.github/actions/action-semantic-pull-request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
change
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Prune Stale
uses: actions/stale@v5
uses: actions/stale@v6
with:
days-before-issue-stale: 350
days-before-issue-close: 14
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tars-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
fail-fast: false
matrix:
platform:
- ubuntu-18.04
- ubuntu-20.04
os_name:
- linux_openresty
- linux_openresty_1_17
- linux_openresty_1_19

runs-on: ${{ matrix.platform }}
timeout-minutes: 15
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ t/fuzzing/__pycache__/
boofuzz-results/
*.pyc
*.wasm
t/grpc_server_example/grpc_server_example
t/plugin/grpc-web/grpc-web-server
t/plugin/grpc-web/node_modules/

# release tar package
*.tgz
release/*
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "t/toolkit"]
path = t/toolkit
url = https://github.com/api7/test-toolkit.git
[submodule ".github/actions/action-semantic-pull-request"]
path = .github/actions/action-semantic-pull-request
url = https://github.com/amannn/action-semantic-pull-request.git
2 changes: 1 addition & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ header:
spdx-id: Apache-2.0
copyright-owner: Apache Software Foundation

license-location-threshold: 350
license-location-threshold: 360

paths-ignore:
- '.gitignore'
Expand Down
Loading

0 comments on commit 13385bf

Please sign in to comment.