Skip to content

Commit 42a6f57

Browse files
feat: release 2.14.1 (#7107)
* fix(batch-requests): ignore "unix:" in the configuration Signed-off-by: spacewander <spacewanderlzx@gmail.com> * chore(ci): apt update before install (#7080) Signed-off-by: spacewander <spacewanderlzx@gmail.com> * feat: release 2.14.1 Signed-off-by: spacewander <spacewanderlzx@gmail.com> Co-authored-by: tzssangglass <tzssangglass@gmail.com>
1 parent ea7f186 commit 42a6f57

17 files changed

+140
-21
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ jobs:
8282
rm -rf $(ls -1 --ignore=*.tgz --ignore=ci --ignore=t --ignore=utils --ignore=.github)
8383
tar zxvf ${{ steps.branch_env.outputs.fullname }}
8484
85-
- name: Linux Get dependencies
86-
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
87-
8885
- name: Build wasm code
8986
if: matrix.os_name == 'linux_openresty'
9087
run: |
@@ -101,6 +98,12 @@ jobs:
10198
- name: Linux Before install
10299
run: sudo ./ci/${{ matrix.os_name }}_runner.sh before_install
103100

101+
- name: Start CI env
102+
run: |
103+
# launch deps env
104+
make ci-env-up
105+
sudo ./ci/linux-ci-init-service.sh
106+
104107
- name: Start Dubbo Backend
105108
if: matrix.os_name == 'linux_openresty'
106109
run: |

.github/workflows/cli-master.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ jobs:
4949
run: |
5050
project_compose_ci=ci/pod/docker-compose.common.yml make ci-env-up
5151
52-
- name: Linux Get dependencies
53-
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
54-
5552
- name: Linux Install
5653
run: |
5754
sudo --preserve-env=OPENRESTY_VERSION \

.github/workflows/cli.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ jobs:
5454
run: |
5555
project_compose_ci=ci/pod/docker-compose.common.yml make ci-env-up
5656
57-
- name: Linux Get dependencies
58-
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
59-
6057
- name: Linux Before install
6158
run: sudo ./ci/${{ matrix.job_name }}_runner.sh before_install
6259

.github/workflows/kubernetes-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ jobs:
7777
7878
- name: Linux Install
7979
run: |
80-
sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
81-
sudo cpanm --notest Test::Nginx >build.log 2>&1 || (cat build.log && exit 1)
80+
sudo ./ci/${{ matrix.os_name }}_runner.sh before_install
8281
sudo --preserve-env=OPENRESTY_VERSION ./ci/${{ matrix.os_name }}_runner.sh do_install
8382
8483
- name: Run test cases

.github/workflows/tars-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ jobs:
4848
4949
- name: Linux Install
5050
run: |
51-
sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
52-
sudo cpanm --notest Test::Nginx >build.log 2>&1 || (cat build.log && exit 1)
51+
sudo ./ci/${{ matrix.os_name }}_runner.sh before_install
5352
sudo --preserve-env=OPENRESTY_VERSION ./ci/${{ matrix.os_name }}_runner.sh do_install
5453
5554
- name: Run test cases

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ title: Changelog
2323

2424
## Table of Contents
2525

26+
- [2.14.1](#2141)
2627
- [2.14.0](#2140)
2728
- [2.13.1](#2131)
2829
- [2.13.0](#2130)
@@ -57,6 +58,12 @@ title: Changelog
5758
- [0.7.0](#070)
5859
- [0.6.0](#060)
5960

61+
## 2.14.1
62+
63+
### Bugfix
64+
65+
- The "unix:" in the `real_ip_from` configuration should not break the batch-requests plugin: [#7106](https://github.com/apache/apisix/pull/7106)
66+
6067
## 2.14.0
6168

6269
### Change

apisix/cli/ops.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Please modify "admin_key" in conf/config.yaml .
279279
if real_ip_from then
280280
for _, ip in ipairs(real_ip_from) do
281281
local _ip = cli_ip:new(ip)
282-
if _ip:is_loopback() or _ip:is_unspecified() then
282+
if _ip and _ip:is_loopback() or _ip:is_unspecified() then
283283
pass_real_client_ip = true
284284
end
285285
end

apisix/core/version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
-- @module core.version
2121

2222
return {
23-
VERSION = "2.14.0"
23+
VERSION = "2.14.1"
2424
}

ci/common.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,8 @@ install_nodejs () {
8080
}
8181

8282
GRPC_SERVER_EXAMPLE_VER=20210819
83+
84+
linux_get_dependencies () {
85+
apt update
86+
apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
87+
}

ci/linux_apisix_current_luarocks_runner.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
. ./ci/common.sh
2020

2121
do_install() {
22+
linux_get_dependencies
23+
2224
export_or_prefix
2325

2426
./utils/linux-install-openresty.sh

0 commit comments

Comments
 (0)