Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(*): realign master branch to 3.0.0 release #144

Merged
merged 48 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f95fee8
release 1.4.0
locao Jan 4, 2021
0d816f5
fix(healthcheck) use single timer for all active checks (#62)
locao Jan 7, 2021
d056109
docs(*) docs for release 1.4.0
locao Jan 7, 2021
9e5561e
chore(ci) use newer openresty and luarocks releases (#68)
locao Feb 9, 2021
45fc129
fix(healthcheck) single worker actively checks the status (#67)
locao Feb 9, 2021
9e9a936
release 1.4.1
locao Feb 17, 2021
03660ab
fix(healthcheck) record `last_run` when healthcheck is scheduled (#72)
onematchfox Jun 15, 2021
6cbefe0
tests(active-probes) interval is respected (#73)
Jun 15, 2021
1edc9b1
fix(healthcheck) remove event watcher when stopping hc (#74)
locao Jun 28, 2021
8634a82
tests(*) avoid some flakiness (#75)
locao Jun 28, 2021
6ab057d
release 1.4.2
locao Jun 29, 2021
5e5a040
chore(*) add GitHub Actions workflows (#82)
locao Aug 27, 2021
34d6cad
Simplify start of the checking timer (#85)
javierguerragiraldez Jan 5, 2022
806ea8f
chore(rockspec) added rockspec for release 1.5.0-1
locao Feb 1, 2022
00a1b12
feat(*) add header support for active checks
Tieske Sep 18, 2020
54fb2d5
feat(active) support map headers
mayocream Feb 8, 2022
c619d8c
feat(healthcheck) delayed_clear function (#88)
locao Feb 9, 2022
a2bee12
chore(readme) 1.5.0 release (#91)
locao Feb 9, 2022
3f7efd1
fix(healthcheck) Use pair instead ipair for hcs weak table (#93)
kayano Mar 23, 2022
dff8fe6
release 1.5.1 (#95)
locao Mar 23, 2022
3765587
chore(readme) update badges (#98)
locao Mar 24, 2022
ec40ce0
docs(readme) updated with 1.4.x changes
locao Apr 5, 2022
fb5150a
chore(workflows) updates for 1.6.0 release
locao May 31, 2022
25e04bd
feat(healthcheck) support setting the events module (#105)
locao Jun 24, 2022
71fef7e
release 1.6.0 (#110)
locao Jun 27, 2022
26d50c6
chore(*) localize string.format (#111)
chronolaw Jul 5, 2022
99a13ab
fix(healthcheck) support any lua-resty-events 0.1.x (#118)
locao Jul 15, 2022
277f8ab
fix(healthchecker) port 2.x lock fixes to 1.5.x (#113)
flrgh Jul 6, 2022
b050953
chore(healthcheck) increase verbosity for locked function failures (#…
flrgh Jul 7, 2022
0d2ba26
fix(healthcheck) lower the cleanup check frequency
locao Jul 6, 2022
7692da4
tests(clear) increase delay for delayed clear tests
locao Jul 15, 2022
c0bdaae
docs(readme) release 1.6.1
locao Jul 25, 2022
9395074
chore(rockspecs) release 1.6.1
locao Jul 25, 2022
4d05206
release 1.6.1
locao Jul 25, 2022
1fe7ac5
docs(readme) updated build badge
locao Jul 26, 2022
be89726
chore(ci) remove old openresty versions
locao Nov 17, 2022
e45aae8
feat(healthcheck) avoid duplication post in rebuild healthcheck scenario
oowl Nov 14, 2022
eb48bff
release 1.6.2
locao Nov 17, 2022
9ce5f6d
Added support for https_sni in healthcheck.lua (#49)
HansK-p Sep 18, 2020
88ad1b4
fix(mtls) use OpenResty's API for mtls (#99)
ADD-SP May 18, 2022
e666583
chore(ci): fix cache path (#136)
fffonion Sep 6, 2023
d5754c2
release 1.6.3 (#135)
bungle Sep 6, 2023
a2bec67
release 3.0.0 (#142)
nowNick Oct 23, 2023
d4eac10
chore(*): revert commits back to 1.3.0
nowNick Nov 2, 2023
ec83652
Merge branch 'release/3.0.x' into chore/revert-master-branch
nowNick Nov 2, 2023
2f9ed19
chore(docs): fix semgrep https warnings
nowNick Nov 6, 2023
945bf65
docs(readme): update shield badges
nowNick Nov 8, 2023
b590ba1
chore(*): add 2.0.0 rockspecs and fix tests
nowNick Nov 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 150 additions & 0 deletions .github/workflows/build_and_test_with_resty_events.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
name: Build and test - with resty_events

concurrency:
# for PR's cancel the running task, if another commit is pushed
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

on:
pull_request: {}
workflow_dispatch: {}
push:
branches:
- main
- master
- release/**

jobs:
build:
name: CI using lua-resty-events
runs-on: ubuntu-20.04
strategy:
matrix:
openresty-version: [1.19.9.1, 1.21.4.1]

steps:
- name: Update and install OS dependencies
run: |
sudo apt-get update && sudo apt-get install -y libssl-dev ssl-cert
sudo systemctl disable nginx
sudo systemctl stop nginx


- name: Set environment variables
env:
OPENRESTY_VER: ${{ matrix.openresty-version }}
RESTY_EVENTS_VER: 0.1.2
LUAROCKS_VER: 3.9.0
OPENSSL_VER: 1.1.1q
PCRE_VER: 8.45
run: |
echo "INSTALL_ROOT=/home/runner/work/cache/install-root" >> $GITHUB_ENV
echo "DOWNLOAD_ROOT=/home/runner/work/cache/download-root" >> $GITHUB_ENV
echo "OPENRESTY=$OPENRESTY_VER" >> $GITHUB_ENV
echo "LUAROCKS=$LUAROCKS_VER" >> $GITHUB_ENV
echo "OPENSSL=$OPENSSL_VER" >> $GITHUB_ENV
echo "PCRE=$PCRE_VER" >> $GITHUB_ENV
echo "RESTY_EVENTS=$RESTY_EVENTS_VER" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$HOME/install-root/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV

- name: Checkout lua-resty-healthcheck
uses: actions/checkout@v3

- name: Lookup build cache
uses: actions/cache@v3
id: cache-deps
with:
path: |
/home/runner/work/cache/install-root
/home/runner/work/cache/download-root
key: ${{ runner.os }}-${{ hashFiles('**/.github/workflows/build_and_test_with_resty_events.yml') }}-${{ matrix.openresty-version }}

- name: Add to Path
if: steps.cache-deps.outputs.cache-hit != 'true'
run: echo "$INSTALL_ROOT/bin:$INSTALL_ROOT/nginx/sbin:$INSTALL_ROOT/luajit/bin:/usr/bin" >> $GITHUB_PATH

- name: Build and install OpenSSL
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
curl -sSLO https://www.openssl.org/source/openssl-$OPENSSL.tar.gz
tar -xzf openssl-$OPENSSL.tar.gz
cd openssl-$OPENSSL
./config -g shared -DPURIFY no-threads --prefix=$INSTALL_ROOT --openssldir=$INSTALL_ROOT no-unit-test
make
make install_sw

- name: Checkout lua-resty-events
uses: actions/checkout@v3
if: steps.cache-deps.outputs.cache-hit != 'true'
with:
repository: Kong/lua-resty-events
ref: refs/tags/0.1.0
path: lua-resty-events

- name: Build and install OpenResty
if: steps.cache-deps.outputs.cache-hit != true
run: |
curl -sSLO https://openresty.org/download/openresty-$OPENRESTY.tar.gz
tar -xzf openresty-$OPENRESTY.tar.gz
cd openresty-$OPENRESTY
./configure \
--prefix=$INSTALL_ROOT \
--with-cc-opt='-I$INSTALL_ROOT/include' \
--with-ld-opt='-L$INSTALL_ROOT/lib -Wl,-rpath,$INSTALL_ROOT/lib' \
--with-pcre-jit \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_stub_status_module \
--with-http_v2_module \
--without-http_encrypted_session_module \
--with-stream_realip_module \
--with-stream_ssl_preread_module \
--add-module=../lua-resty-events \
--with-pcre
make
make install
make install LUA_LIBDIR=$INSTALL_ROOT/lualib

- name: Install LuaRocks
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
curl -sSLO https://luarocks.org/releases/luarocks-$LUAROCKS.tar.gz
tar -xzf luarocks-$LUAROCKS.tar.gz
cd luarocks-$LUAROCKS
./configure \
--prefix=$INSTALL_ROOT \
--lua-suffix=jit \
--with-lua=$INSTALL_ROOT/luajit \
--with-lua-include=$INSTALL_ROOT/luajit/include/luajit-2.1
make build
make install

- name: Install manual dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
luarocks install luacheck

- name: Install Test::NGINX
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
sudo apt-get install cpanminus
cpanm --notest --local-lib=$HOME/perl5 local::lib && eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib)
cpanm --notest Test::Nginx

- name: Install lua-resty-events
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
cd lua-resty-events
OPENRESTY_PREFIX=$INSTALL_ROOT PREFIX=$INSTALL_ROOT LUA_LIB_DIR=$INSTALL_ROOT/lualib make install

- name: Install lua-resty-healthcheck
run: luarocks make

- name: Run tests
env:
PATH: ${{ env.INSTALL_ROOT }}/bin:${{ env.INSTALL_ROOT }}/nginx/sbin:${{ env.INSTALL_ROOT }}/luajit/bin:/usr/bin
TEST_NGINX_BINARY: ${{ env.INSTALL_ROOT }}/nginx/sbin/nginx
run: |
eval `luarocks path`
eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib)
TEST_NGINX_RANDOMIZE=1 prove -I. -r t/with_resty-events
75 changes: 75 additions & 0 deletions .github/workflows/build_and_test_with_worker_events.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Build and test - with worker_events

concurrency:
# for PR's cancel the running task, if another commit is pushed
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

on:
pull_request: {}
workflow_dispatch: {}
push:
branches:
- main
- master

jobs:
build:
name: CI using lua-resty-worker-events
runs-on: ubuntu-20.04
strategy:
matrix:
openresty-version: [1.19.9.1, 1.21.4.1]

steps:
- name: Update and install OS dependencies
run: |
sudo apt-get update && sudo apt-get install -y libssl-dev ssl-cert
sudo systemctl disable nginx
sudo systemctl stop nginx


- name: Set environment variables
env:
OPENRESTY_VER: ${{ matrix.openresty-version }}
run: |
echo "/usr/local/openresty/nginx/sbin" >> $GITHUB_PATH

- name: Checkout lua-resty-healthcheck
uses: actions/checkout@v3

- name: Install OpenResty ${{ matrix.openresty-version }}
env:
OPENRESTY_VER: ${{ matrix.openresty-version }}
run: |
sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates
wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
echo "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/openresty.list
sudo apt-get update
sudo apt-get -y install openresty=$OPENRESTY_VER-1~focal1

- name: Install LuaRocks
run: sudo apt-get install -y luarocks

- name: Install manual dependencies
run: |
sudo luarocks install luacheck
sudo luarocks install lua-resty-worker-events 1.0.0

- name: Install Test::NGINX
run: |
sudo apt-get install cpanminus
cpanm --notest --local-lib=$HOME/perl5 local::lib && eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib)
cpanm --notest Test::Nginx

- name: Checkout lua-resty-healthcheck
uses: actions/checkout@v3

- name: Install lua-resty-healthcheck
run: sudo luarocks make

- name: Run tests
run: |
eval `luarocks path`
eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib)
TEST_NGINX_RANDOMIZE=1 prove -I. -r t/with_worker-events
Loading