Skip to content

Commit

Permalink
refactor: resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyDluffy6017 committed Sep 21, 2023
2 parents b1bf997 + 9078352 commit 520e974
Show file tree
Hide file tree
Showing 572 changed files with 21,538 additions and 8,431 deletions.
12 changes: 12 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ github:
dismiss_stale_reviews: true
require_code_owner_reviews: true
required_approving_review_count: 2
release/3.5:
required_pull_request_reviews:
require_code_owner_reviews: true
required_approving_review_count: 2
release/3.4:
required_pull_request_reviews:
require_code_owner_reviews: true
required_approving_review_count: 2
release/3.3:
required_pull_request_reviews:
require_code_owner_reviews: true
required_approving_review_count: 2
release/3.2:
required_pull_request_reviews:
require_code_owner_reviews: true
Expand Down
1 change: 1 addition & 0 deletions .github/actions/autocorrect
Submodule autocorrect added at 2aefca
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ jobs:
- ubuntu-20.04
os_name:
- linux_openresty
- linux_openresty_1_19
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/deployment t/discovery t/error_page t/misc
- 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/wasm t/xds-library t/xrpc

runs-on: ${{ matrix.platform }}
Expand All @@ -43,7 +42,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -137,7 +136,7 @@ jobs:
[[ ${{ steps.test_env.outputs.type }} != first ]] && sudo ./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh after
echo "Linux launch services, done."
- name: Start Dubbo Backend
if: matrix.os_name == 'linux_openresty' && steps.test_env.outputs.type == 'plugin'
if: matrix.os_name == 'linux_openresty' && (steps.test_env.outputs.type == 'plugin' || steps.test_env.outputs.type == 'last')
run: |
sudo apt install -y maven
cd t/lib/dubbo-backend
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/centos7-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
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/deployment t/discovery t/error_page t/misc
- 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/wasm t/xds-library

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chaos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4
with:
submodules: recursive

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 @@ -33,7 +33,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
- linux_apisix_current_luarocks_in_customed_nginx

runs-on: ${{ matrix.platform }}
timeout-minutes: 15
timeout-minutes: 30
env:
SERVER_NAME: ${{ matrix.job_name }}
OPENRESTY_VERSION: default

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/close-unresponded.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check Issues

on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *'

permissions:
contents: read

jobs:
prune_stale:
permissions:
issues: write # for actions/stale to close stale issues
name: Prune Unresponded
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Prune Stale
uses: actions/stale@v8
with:
days-before-issue-stale: 14
days-before-issue-close: 3
stale-issue-message: >
Due to lack of the reporter's response this issue has been labeled with "no response".
It will be close in 3 days if no further activity occurs. If this issue is still
relevant, please simply write any comment. Even if closed, you can still revive the
issue at any time or discuss it on the dev@apisix.apache.org list.
Thank you for your contributions.
close-issue-message: >
This issue has been closed due to lack of activity. If you think that
is incorrect, or the issue requires additional review, you can revive the issue at
any time.
# Issues with these labels will never be considered stale.
only-labels: 'wait for update'
stale-issue-label: 'no response'
ascending: true
4 changes: 2 additions & 2 deletions .github/workflows/code-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4
- name: Install
run: |
. ./ci/common.sh
Expand All @@ -37,7 +37,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4

- name: Shellcheck code
run: |
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/doc-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4
- name: 🚀 Use Node.js
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v3.8.1
with:
node-version: "12.x"
- run: npm install -g markdownlint-cli@0.25.0
Expand All @@ -47,8 +47,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Check Chinese copywriting
uses: huacnlee/autocorrect-action@v2.6.2
uses: ./.github/actions/autocorrect
with:
args: --lint --no-diff-bg-color docs/zh/latest/**.md
args: autocorrect --lint --no-diff-bg-color ./docs/zh/latest/
18 changes: 14 additions & 4 deletions .github/workflows/fips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
# 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/deployment/conf_server.t t/misc/patch.t
- 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
Expand All @@ -41,7 +42,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -62,13 +63,18 @@ jobs:
path: ~/openssl-3.0
key: ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.os_name }}

- name: set openssl prefix
id: set_openssl_prefix
shell: bash
run: |
echo "openssl3_prefix=$HOME" >>$GITHUB_OUTPUT
- name: Toggle openssl compile
id: test_ssl_env
shell: bash
if: steps.cache-openssl.outputs.cache-hit != 'true'
run: |
echo "openssl3=yes" >>$GITHUB_OUTPUT
echo "openssl3_prefix=$HOME" >>$GITHUB_OUTPUT
- name: Extract test type
shell: bash
Expand All @@ -78,6 +84,9 @@ jobs:
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
Expand All @@ -92,6 +101,7 @@ jobs:
- 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
Expand Down Expand Up @@ -131,7 +141,7 @@ jobs:
- name: Linux Install
env:
COMPILE_OPENSSL3: ${{ steps.test_ssl_env.outputs.openssl3 }}
OPENSSL3_PREFIX: ${{ steps.test_ssl_env.outputs.openssl3_prefix }}
OPENSSL3_PREFIX: ${{ steps.set_openssl_prefix.outputs.openssl3_prefix }}
USE_OPENSSL3: yes
run: |
sudo --preserve-env=OPENRESTY_VERSION \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzzing-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gm-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
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/deployment t/discovery t/error_page t/misc
- 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/stream-node t/utils t/wasm t/xds-library t/xrpc

runs-on: ${{ matrix.platform }}
Expand All @@ -33,7 +33,7 @@ jobs:
# scripts or a separate action?
steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -72,6 +72,7 @@ jobs:
- 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: Linux Before install
env:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/kubernetes-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- ubuntu-20.04
os_name:
- linux_openresty
- linux_openresty_1_19

runs-on: ${{ matrix.platform }}
timeout-minutes: 15
Expand All @@ -38,7 +37,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/license-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
timeout-minutes: 3

steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4
- name: Check License Header
uses: apache/skywalking-eyes@v0.4.0
uses: apache/skywalking-eyes@v0.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49 changes: 49 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 'Link Checker'

# **What it does**: Renders the content of every page and check all internal links.
# **Why we have it**: To make sure all links connect correctly.
# **Who does it impact**: Docs content.

on:
workflow_dispatch:
push:
# branches: [master, 'release/**']
paths:
- '**/*.md'
- '**/link-check.yml'
pull_request:
branches: [master, "release/**"]
paths:
- '**/*.md'
- '**/link-check.yml'

permissions:
contents: read
# Needed for the 'trilom/file-changes-action' action
pull-requests: read

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get script
run: |
wget https://raw.githubusercontent.com/xuruidong/markdown-link-checker/main/link_checker.py
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Link check (critical, all files)
run: |
# python link_checker.py ./ --enable-external --ignore "http://apisix.iresty.com" "https://www.upyun.com" "https://github.com/apache/apisix/actions/workflows/build.yml/badge.svg" "https://httpbin.org/" "https://en.wikipedia.org/wiki/Cache"
python link_checker.py ./
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4
- name: spell check
run: |
pip install codespell==2.1.0
Expand All @@ -30,10 +30,10 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3.2.0
uses: actions/checkout@v4

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

Expand Down
Loading

0 comments on commit 520e974

Please sign in to comment.