Skip to content

Commit

Permalink
Merge branch 'master' into tests/plugin_filter_benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ADD-SP authored Aug 7, 2024
2 parents 9439cbd + 126df19 commit 6c8b991
Show file tree
Hide file tree
Showing 331 changed files with 13,803 additions and 3,195 deletions.
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ core/templates:

core/tracing:
- changed-files:
- any-glob-to-any-file: ['kong/tracing/**/*', 'kong/pdk/tracing.lua']
- any-glob-to-any-file: ['kong/observability/tracing/**/*', 'kong/pdk/tracing.lua']

core/wasm:
- changed-files:
Expand Down
25 changes: 2 additions & 23 deletions .github/matrix-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ build-packages:
check-manifest-suite: ubuntu-22.04-arm64

# Debian
- label: debian-10
image: debian:10
package: deb
check-manifest-suite: debian-10-amd64
- label: debian-11
image: debian:11
package: deb
Expand All @@ -36,12 +32,6 @@ build-packages:
check-manifest-suite: debian-12-amd64

# RHEL
- label: rhel-7
image: centos:7
package: rpm
package-type: el7
bazel-args: --//:wasmx_el7_workaround=true --//:brotli=False
check-manifest-suite: el7-amd64
- label: rhel-8
image: rockylinux:8
package: rpm
Expand All @@ -60,10 +50,11 @@ build-packages:

# Amazon Linux
- label: amazonlinux-2
image: amazonlinux:2
package: rpm
package-type: aws2
check-manifest-suite: amazonlinux-2-amd64
# simdjson doesn't compile on gcc7.3.1 (needs 7.4)
bazel-args: --platforms=//:aws2-crossbuild-x86_64 --//:simdjson=False
- label: amazonlinux-2023
image: amazonlinux:2023
package: rpm
Expand Down Expand Up @@ -140,12 +131,6 @@ release-packages:
artifact: kong.arm64.deb

# Debian
- label: debian-10
package: deb
artifact-from: debian-10
artifact-version: 10
artifact-type: debian
artifact: kong.amd64.deb
- label: debian-11
package: deb
artifact-from: debian-11
Expand All @@ -160,12 +145,6 @@ release-packages:
artifact: kong.amd64.deb

# RHEL
- label: rhel-7
package: rpm
artifact-from: rhel-7
artifact-version: 7
artifact-type: rhel
artifact: kong.el7.amd64.rpm
- label: rhel-8
package: rpm
artifact-from: rhel-8
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Create backport pull requests
uses: korthout/backport-action@52886ff43ef0184911d99c0a489f5c1307db8fc7 # v2.4.1
uses: korthout/backport-action@924c8170740fa1e3685f69014971f7f251633f53 # v2.4.1
id: backport
with:
github_token: ${{ secrets.PAT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog-requirement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Find changelog files
id: changelog-list
uses: tj-actions/changed-files@03334d095e2739fa9ac4034ec16f66d5d01e9eba # 44.5.1
uses: tj-actions/changed-files@6b2903bdce6310cfbddd87c418f253cf29b2dec9 # 44.5.6
with:
files_yaml: |
changelogs:
Expand Down
43 changes: 14 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Package & Release

# The workflow to build and release official Kong packages and images.
#
# TODO:
# Do not bump the version of actions/checkout to v4 before dropping rhel7 and amazonlinux2.

on: # yamllint disable-line rule:truthy
pull_request:
Expand Down Expand Up @@ -60,7 +57,7 @@ jobs:
commit-sha: ${{ github.event.pull_request.head.sha || github.sha }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build Info
id: build-info
run: |
Expand Down Expand Up @@ -132,15 +129,15 @@ jobs:
- name: Cache Git
id: cache-git
if: (matrix.package == 'rpm' || matrix.image == 'debian:10') && matrix.image != ''
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3, DO NOT BUMP, v4 BREAKS ON CENTOS7 OR AMAZONLINUX2
if: (matrix.package == 'rpm') && matrix.image != ''
uses: actions/cache@v4
with:
path: /usr/local/git
key: ${{ matrix.label }}-git-2.41.0

# el-7,8, amazonlinux-2,2023, debian-10 doesn't have git 2.18+, so we need to install it manually
# el-7,8, amazonlinux-2,2023 doesn't have git 2.18+, so we need to install it manually
- name: Install newer Git
if: (matrix.package == 'rpm' || matrix.image == 'debian:10') && matrix.image != '' && steps.cache-git.outputs.cache-hit != 'true'
if: (matrix.package == 'rpm') && matrix.image != '' && steps.cache-git.outputs.cache-hit != 'true'
run: |
if which apt 2>/dev/null; then
apt update
Expand All @@ -154,30 +151,18 @@ jobs:
tar xf git-2.41.0.tar.gz
cd git-2.41.0
# https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/5948/diffs
if [[ ${{ matrix.image }} == "centos:7" ]]; then
echo 'CFLAGS=-std=gnu99' >> config.mak
fi
make configure
./configure --prefix=/usr/local/git
make -j$(nproc)
make install
- name: Add Git to PATH
if: (matrix.package == 'rpm' || matrix.image == 'debian:10') && matrix.image != ''
if: (matrix.package == 'rpm') && matrix.image != ''
run: |
echo "/usr/local/git/bin" >> $GITHUB_PATH
- name: Debian Git dependencies
if: matrix.image == 'debian:10'
run: |
apt update
# dependencies for git
apt install -y wget libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev sudo
- name: Checkout Kong source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Swap git with https
run: git config --global url."https://github".insteadOf git://github
Expand All @@ -194,7 +179,7 @@ jobs:
- name: Cache Packages
id: cache-deps
if: env.GHA_CACHE == 'true'
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3, DO NOT BUMP, v4 BREAKS ON CENTOS7 OR AMAZONLINUX2
uses: actions/cache@v4
with:
path: bazel-bin/pkg
key: ${{ steps.cache-key.outputs.cache-key }}
Expand Down Expand Up @@ -270,7 +255,7 @@ jobs:
sudo dmesg || true
tail -n500 bazel-out/**/*/CMake.log || true
- name: Upload artifact
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.label }}-packages
Expand All @@ -288,7 +273,7 @@ jobs:
include: "${{ fromJSON(needs.metadata.outputs.matrix)['build-packages'] }}"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -324,7 +309,7 @@ jobs:
include: "${{ fromJSON(needs.metadata.outputs.matrix)['build-images'] }}"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -398,7 +383,7 @@ jobs:
platforms: ${{ steps.docker_platforms_arg.outputs.platforms }}
build-args: |
KONG_BASE_IMAGE=${{ matrix.base-image }}
KONG_ARTIFACT_PATH=bazel-bin/pkg/
KONG_ARTIFACT_PATH=bazel-bin/pkg
KONG_VERSION=${{ needs.metadata.outputs.kong-version }}
RPM_PLATFORM=${{ steps.docker_rpm_platform_arg.outputs.rpm_platform }}
EE_PORTS=8002 8445 8003 8446 8004 8447
Expand Down Expand Up @@ -601,7 +586,7 @@ jobs:

- name: Get latest commit SHA on master
run: |
echo "latest_sha=$(git ls-remote origin -h refs/heads/${{ github.event.inputs.default_branch }} | cut -f1)" >> $GITHUB_ENV
echo "latest_sha=$(git ls-remote origin -h refs/heads/master | cut -f1)" >> $GITHUB_ENV
- name: Docker meta
id: meta
Expand All @@ -610,7 +595,7 @@ jobs:
images: ${{ needs.metadata.outputs.docker-repository }}
sep-tags: " "
tags: |
type=raw,value=latest,enable=${{ matrix.label == 'ubuntu' && github.ref_name == github.event.inputs.default_branch && env.latest_sha == needs.metadata.outputs.commit-sha }}
type=raw,value=latest,enable=${{ matrix.label == 'ubuntu' && github.ref_name == 'master' && env.latest_sha == needs.metadata.outputs.commit-sha }}
type=match,enable=${{ github.event_name == 'workflow_dispatch' }},pattern=\d.\d,value=${{ github.event.inputs.version }}
type=match,enable=${{ github.event_name == 'workflow_dispatch' && matrix.label == 'ubuntu' }},pattern=\d.\d,value=${{ github.event.inputs.version }},suffix=
type=raw,enable=${{ github.event_name == 'workflow_dispatch' }},${{ github.event.inputs.version }}
Expand Down
5 changes: 3 additions & 2 deletions .requirements
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ OPENRESTY=1.25.3.1
OPENRESTY_SHA256=32ec1a253a5a13250355a075fe65b7d63ec45c560bbe213350f0992a57cd79df
LUAROCKS=3.11.1
LUAROCKS_SHA256=c3fb3d960dffb2b2fe9de7e3cb004dc4d0b34bb3d342578af84f84325c669102
OPENSSL=3.2.1
OPENSSL_SHA256=83c7329fe52c850677d75e5d0b0ca245309b97e8ecbcfdc1dfdc4ab9fac35b39
OPENSSL=3.2.2
OPENSSL_SHA256=197149c18d9e9f292c43f0400acaba12e5f52cacfe050f3d199277ea738ec2e7
PCRE=10.43
PCRE_SHA256=889d16be5abb8d05400b33c25e151638b8d4bac0e2d9c76e9d6923118ae8a34e
LIBEXPAT=2.6.2
Expand All @@ -16,6 +16,7 @@ LIBEXPAT_SHA256=d4cf38d26e21a56654ffe4acd9cd5481164619626802328506a2869afab29ab3
LUA_KONG_NGINX_MODULE=a8411f7cf4289049f0bd3e8e40088e7256389ed3 # 0.11.0
LUA_RESTY_LMDB=7d2581cbe30cde18a8482d820c227ca0845c0ded # 1.4.2
LUA_RESTY_EVENTS=2dcd1d7a256c53103c0fdbe804f419174e0ea8ba # 0.3.0
LUA_RESTY_SIMDJSON=b861c98d50ab75b6c2fc6e875a5ea23143dc4157 # 1.0.0
LUA_RESTY_WEBSOCKET=966c69c39f03029b9b42ec0f8e55aaed7d6eebc0 # 0.4.0.1
ATC_ROUTER=ffd11db657115769bf94f0c4f915f98300bc26b6 # 1.6.2
SNAPPY=23b3286820105438c5dbb9bc22f1bb85c5812c8a # 1.2.0
Expand Down
Loading

0 comments on commit 6c8b991

Please sign in to comment.