feat: support openresty-1.25.3.1 #11762
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |