Skip to content

fix(ai-proxy): double-gzipping responses when status is not 200 (#124… #2596

fix(ai-proxy): double-gzipping responses when status is not 200 (#124…

fix(ai-proxy): double-gzipping responses when status is not 200 (#124… #2596

Workflow file for this run

name: Upgrade Tests
on:
pull_request:
paths:
- 'scripts/upgrade-tests/**'
- 'kong/db/migrations/**'
- 'spec/05-migration/**'
- 'kong/enterprise_edition/db/migrations/**'
- '.github/workflows/upgrade-tests.yml'
- 'kong/plugins/*/migrations/**'
- 'plugins-ee/**/migrations/**'
push:
paths-ignore:
# ignore markdown files (CHANGELOG.md, README.md, etc.)
- '**/*.md'
branches:
- master
- release/*
- test-please/*
workflow_dispatch:
# cancel previous runs if new commits are pushed to the PR, but run for each commit on master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
GH_TOKEN: ${{ github.token }}
jobs:
upgrade-test:
name: Run migration tests
runs-on: ubuntu-22.04
steps:
- name: Install Prerequisites
run: |
sudo apt-get -y update
sudo apt-get -y install ca-certificates curl gnupg lsb-release jq libyaml-dev net-tools
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
- name: Clone Source Code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Build Debian Package
run: |
make package/deb
mv bazel-bin/pkg/kong.amd64.deb .
- name: Build Docker Image
uses: docker/build-push-action@v5
with:
file: build/dockerfiles/deb.Dockerfile
context: .
push: false
tags: "kong-local/kong:latest"
build-args: |
KONG_BASE_IMAGE=ubuntu:22.04
KONG_ARTIFACT_PATH=./
- name: Run Upgrade Tests
run: |
bash ./scripts/upgrade-tests/test-upgrade-path.sh -i kong-local/kong:latest