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

[EAUX-1241] Kong Pongo Update #12

Open
wants to merge 188 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
2156d76
feat(version) added Kong Enterprise version 3.1.1.5
outsinre Sep 8, 2023
81029ee
chore(version) added Kong Enterprise version 3.1.1.5 artifacts
outsinre Sep 8, 2023
19b0f44
feat(version) added Kong Enterprise version 2.8.4.3
outsinre Sep 18, 2023
fa65466
chore(version) added Kong Enterprise version 2.8.4.3 artifacts
outsinre Sep 18, 2023
c0f363a
feat(version) added Kong Enterprise version 3.2.2.4
outsinre Sep 18, 2023
cb6f961
chore(version) added Kong Enterprise version 3.2.2.4 artifacts
outsinre Sep 18, 2023
7fe71f5
feat(version) added Kong Enterprise version 3.2.2.1
outsinre Sep 28, 2023
f928ff9
chore(version) added Kong Enterprise version 3.2.2.1 artifacts
outsinre Sep 28, 2023
8791caf
feat(version) added Kong Enterprise version 3.2.2.2
outsinre Sep 28, 2023
0102e06
chore(version) added Kong Enterprise version 3.2.2.2 artifacts
outsinre Sep 28, 2023
e53be33
feat(version) added Kong Enterprise version 3.2.2.3
outsinre Sep 28, 2023
7e671bb
chore(version) added Kong Enterprise version 3.2.2.3 artifacts
outsinre Sep 28, 2023
682a97a
feat(version) added Kong open source version 3.4.1
kikito Oct 3, 2023
ee18961
chore(version) added Kong open source version 3.4.1 artifacts
kikito Oct 3, 2023
d74b0b8
feat(version) added Kong Enterprise version 3.4.1.0
kikito Oct 5, 2023
2f462fb
chore(version) added Kong Enterprise version 3.4.1.0 artifacts
kikito Oct 5, 2023
a0d23b6
feat(version) added Kong open source version 2.8.4
Tieske Oct 5, 2023
55620f2
chore(version) added Kong open source version 2.8.4 artifacts
Tieske Oct 5, 2023
2fd1fbb
feat(version) added Kong Enterprise version 3.4.1.1
outsinre Oct 12, 2023
52f4de5
chore(version) added Kong Enterprise version 3.4.1.1 artifacts
outsinre Oct 12, 2023
36be12a
feat(version) added Kong Enterprise version 2.8.4.4
outsinre Oct 12, 2023
d979a02
chore(version) added Kong Enterprise version 2.8.4.4 artifacts
outsinre Oct 12, 2023
82a6db5
feat(version) added Kong Enterprise version 3.1.1.6
outsinre Oct 12, 2023
bfaec12
chore(version) added Kong Enterprise version 3.1.1.6 artifacts
outsinre Oct 12, 2023
28bdcd5
feat(version) added Kong Enterprise version 3.2.2.5
outsinre Oct 12, 2023
9a34c52
chore(version) added Kong Enterprise version 3.2.2.5 artifacts
outsinre Oct 12, 2023
8b9b1a9
feat(version) added Kong Enterprise version 3.3.1.1
outsinre Oct 12, 2023
86c1ba3
chore(version) added Kong Enterprise version 3.3.1.1 artifacts
outsinre Oct 12, 2023
47f1b19
fix(deps) install pip without build-essential
fffonion Oct 12, 2023
c5c618b
fix(deps) install pip without build-essential
fffonion Oct 12, 2023
e927cef
chore(version) added Kong open source version 3.4.2 artifacts
hanshuebner Oct 12, 2023
f8af84f
fix(down): remove volumes automatically
Tieske Oct 24, 2023
40a66e5
chore(readme): minor updates
Tieske Oct 24, 2023
dc6b797
release 2.8.0
Tieske Oct 24, 2023
16e6ac7
fix(changelog): update release date
Tieske Oct 24, 2023
6b3692a
feat(version) added Kong open source version 3.5.0
locao Nov 8, 2023
89b01c7
chore(version) added Kong open source version 3.5.0 artifacts
locao Nov 8, 2023
d407867
feat(version) added Kong Enterprise version 3.5.0.0
locao Nov 8, 2023
0ce7664
chore(version) added Kong Enterprise version 3.5.0.0 artifacts
locao Nov 8, 2023
df5f54d
release 2.9.0
locao Nov 8, 2023
1039fcf
fix(shell): change prefix for health checks
Tieske Oct 30, 2023
feb0bef
feat(version) added Kong Enterprise version 3.4.2.0
outsinre Nov 13, 2023
644e723
chore(version) added Kong Enterprise version 3.4.2.0 artifacts
outsinre Nov 13, 2023
1dbd5e7
feat(version) added Kong Enterprise version 3.5.0.1
outsinre Nov 16, 2023
dcecdcb
chore(version) added Kong Enterprise version 3.5.0.1 artifacts
outsinre Nov 16, 2023
902cfb9
feat: support access to host runner's services
outsinre Nov 20, 2023
b1a914b
feat(version) added Kong Enterprise version 2.8.4.5
outsinre Nov 28, 2023
de15a54
chore(version) added Kong Enterprise version 2.8.4.5 artifacts
outsinre Nov 28, 2023
99697fa
chore(docker): use kong/kong-gateway-dev in replacement of the
fffonion Nov 27, 2023
56f83f1
chore(*): remove some outdated enterprise stuff
Tieske Nov 28, 2023
fddd72b
chore(doc): update CI instructions
Tieske Nov 28, 2023
6413bb3
chore(*): extract changelog from readme
Tieske Nov 28, 2023
481f5fc
fix(gha): add op token for kong-license
curiositycasualty Dec 13, 2023
048c4b3
fix(versions): resolve EE-versions by the last 2 digits
Tieske Dec 4, 2023
a3b3312
fix(*) only mount logs directory and use a different prefix (#474)
fffonion Dec 14, 2023
77eb8cd
Revert "fix(*) only mount logs directory and use a different prefix (…
fffonion Dec 15, 2023
f2d2056
chore(ignore): update gitignore file for test assets
Tieske Dec 15, 2023
b702139
feat(version) added Kong Enterprise version 3.4.3.1
samugi Dec 18, 2023
7ffb367
chore(version) added Kong Enterprise version 3.4.3.1 artifacts
samugi Dec 18, 2023
75eebea
feat(version) added Kong Enterprise version 3.5.0.2
outsinre Dec 21, 2023
801a109
chore(version) added Kong Enterprise version 3.5.0.2 artifacts
outsinre Dec 21, 2023
0019d00
feat(version) added Kong Enterprise version 3.4.3.2
outsinre Dec 21, 2023
2ce12a4
chore(version) added Kong Enterprise version 3.4.3.2 artifacts
outsinre Dec 21, 2023
c2ea8c0
chore(docs): remove old warning from readme
Tieske Jan 15, 2024
114ed50
fix(shell): kms alias exits when kong doesn't start
Tieske Jan 15, 2024
796e3aa
feat(shell): enable auto-reload in interactive shell
Tieske Jan 15, 2024
1c94a06
feat(version) added Kong Enterprise version 3.4.3.3
outsinre Jan 17, 2024
36edafd
chore(version) added Kong Enterprise version 3.4.3.3 artifacts
outsinre Jan 17, 2024
51b4595
feat(version) added Kong Enterprise version 2.8.4.6
outsinre Jan 17, 2024
47e2f10
chore(version) added Kong Enterprise version 2.8.4.6 artifacts
outsinre Jan 17, 2024
fa0818b
feat(version) added Kong Enterprise version 3.5.0.3
samugi Jan 26, 2024
f038136
chore(version) added Kong Enterprise version 3.5.0.3 artifacts
samugi Jan 26, 2024
9591fde
fix(debug): re-enable pongo debug-logs using buildkit
Tieske Jan 29, 2024
cfa6033
fix(proxy): ensure proxy config availability
Tieske Jan 29, 2024
8adfa77
fix(httpie): do not fail the build if httpie fails to install
Tieske Jan 29, 2024
c5e6ce3
fix(build): add insecure option
Tieske Jan 25, 2024
81d7178
fix(build): include Pongo version in image name
Tieske Jan 29, 2024
90e47a9
Update default timeouts for .github/workflows/lint.yml [skip ci]
team-eng-enablement Feb 3, 2024
584e7bf
fix(deps): error out if compose up fails
Tieske Feb 6, 2024
0896ceb
Update default timeouts for .github/workflows/docker.yml [skip ci]
team-eng-enablement Feb 3, 2024
6869d71
Update default timeouts for .github/workflows/test.yml [skip ci]
team-eng-enablement Feb 3, 2024
5924eec
Revert "Update default timeouts for .github/workflows/docker.yml [ski…
Tieske Feb 7, 2024
ca81e73
Revert "Update default timeouts for .github/workflows/test.yml [skip …
Tieske Feb 7, 2024
d70efdf
chore(build): using a custom image, provide more feedback
Tieske Feb 7, 2024
57ea664
chore(changelog): update changelog with latest added releases
Tieske Feb 7, 2024
0c77812
chore(cleanup): remove dead-code
Tieske Feb 7, 2024
f6d9cfb
release 2.10.0
Tieske Feb 8, 2024
15fd5c4
feat(version) added Kong Enterprise version 2.8.4.7
outsinre Feb 10, 2024
8a05ffc
chore(version) added Kong Enterprise version 2.8.4.7 artifacts
outsinre Feb 10, 2024
01f4ad6
feat(version) added Kong Enterprise version 3.6.0.0
kikito Feb 12, 2024
4fac16a
chore(version) added Kong Enterprise version 3.6.0.0 artifacts
kikito Feb 12, 2024
3c31dc2
feat(*): improve platform detection
Tieske Feb 12, 2024
a13beb2
feat(version) added Kong open source version 3.6.0
kikito Feb 12, 2024
640a78d
chore(version) added Kong open source version 3.6.0 artifacts
kikito Feb 12, 2024
5ab547a
feat(version) added Kong Enterprise version 3.4.3.4
outsinre Feb 13, 2024
e082a27
chore(version) added Kong Enterprise version 3.4.3.4 artifacts
outsinre Feb 13, 2024
21bce2e
feat(version) added Kong Enterprise version 3.6.1.0
outsinre Feb 26, 2024
d65498e
chore(version) added Kong Enterprise version 3.6.1.0 artifacts
outsinre Feb 26, 2024
54a244c
feat(version) added Kong open source version 3.6.1
samugi Mar 4, 2024
2e353fd
chore(version) added Kong open source version 3.6.1 artifacts
samugi Mar 4, 2024
521f5b7
feat(version) added Kong Enterprise version 3.6.1.1
outsinre Mar 5, 2024
cf704ac
chore(version) added Kong Enterprise version 3.6.1.1 artifacts
outsinre Mar 5, 2024
da6195b
fix(docs): minor update shell command
Tieske Mar 11, 2024
65adf43
feat(version) added Kong Enterprise version 3.4.3.5
outsinre Mar 21, 2024
432ed0e
chore(version) added Kong Enterprise version 3.4.3.5 artifacts
outsinre Mar 21, 2024
26ab815
feat(version) added Kong Enterprise version 2.8.4.8
outsinre Mar 26, 2024
ca6f258
chore(version) added Kong Enterprise version 2.8.4.8 artifacts
outsinre Mar 26, 2024
9e70c51
feat(version) added Kong Enterprise version 3.6.1.2
outsinre Apr 7, 2024
c2f5aaf
chore(version) added Kong Enterprise version 3.6.1.2 artifacts
outsinre Apr 7, 2024
dc5a126
feat(version) added Kong Enterprise version 3.4.3.6
outsinre Apr 16, 2024
9e2d24d
chore(version) added Kong Enterprise version 3.4.3.6 artifacts
outsinre Apr 16, 2024
58088a7
feat(version) added Kong Enterprise version 3.6.1.3
outsinre Apr 17, 2024
c45d53e
chore(version) added Kong Enterprise version 3.6.1.3 artifacts
outsinre Apr 17, 2024
d3bbc42
feat(deps): add timeout setting for dependencies
Tieske Apr 17, 2024
a5c3ac6
feat(version) added Kong Enterprise version 2.8.4.9
outsinre Apr 19, 2024
0e8f286
chore(version) added Kong Enterprise version 2.8.4.9 artifacts
outsinre Apr 19, 2024
9dccac3
feat(version) added Kong Enterprise version 3.7.0.0
AndyZhang0707 May 29, 2024
8959eed
chore(version) added Kong Enterprise version 3.7.0.0 artifacts
AndyZhang0707 May 29, 2024
092d913
feat(version) added Kong open source version 3.7.0
AndyZhang0707 May 29, 2024
dd79f3c
chore(version) added Kong open source version 3.7.0 artifacts
AndyZhang0707 May 29, 2024
90d08d3
fix(up): assume the container as healthy if no health check available
git-hulk May 30, 2024
3089745
chore(docs): update the update instructions, since we're versioned
Tieske May 30, 2024
927a458
release 2.11.0
locao May 29, 2024
1bb9e9c
release 2.11.1
Tieske May 30, 2024
c002088
feat(version) added Kong Enterprise version 3.4.3.9
outsinre Jun 18, 2024
2c43c8f
chore(version) added Kong Enterprise version 3.4.3.9 artifacts
outsinre Jun 18, 2024
084f743
feat(version) added Kong Enterprise version 3.5.0.4
outsinre Jun 18, 2024
39e7362
chore(version) added Kong Enterprise version 3.5.0.4 artifacts
outsinre Jun 18, 2024
534cee3
feat(version) added Kong Enterprise version 3.6.1.4
outsinre Jun 18, 2024
27b0e2d
chore(version) added Kong Enterprise version 3.6.1.4 artifacts
outsinre Jun 18, 2024
e61a637
feat(version) added Kong Enterprise version 3.4.3.7
outsinre Jun 18, 2024
567b12b
chore(version) added Kong Enterprise version 3.4.3.7 artifacts
outsinre Jun 18, 2024
3dafc6b
feat(version) added Kong Enterprise version 3.4.3.8
outsinre Jun 18, 2024
8b3e471
chore(version) added Kong Enterprise version 3.4.3.8 artifacts
outsinre Jun 18, 2024
bfd5f20
feat(version) added Kong Enterprise version 3.6.1.5
outsinre Jun 21, 2024
d8d7645
chore(version) added Kong Enterprise version 3.6.1.5 artifacts
outsinre Jun 21, 2024
69d14e5
feat(version) added Kong open source version 3.7.1
kikito Jun 21, 2024
77c19f7
chore(version) added Kong open source version 3.7.1 artifacts
kikito Jun 21, 2024
310bbdf
feat(version) added Kong Enterprise version 2.8.4.11
outsinre Jun 22, 2024
a99cd76
chore(version) added Kong Enterprise version 2.8.4.11 artifacts
outsinre Jun 22, 2024
9fa677e
feat(version) added Kong Enterprise version 2.8.4.10
outsinre Jun 22, 2024
496e193
chore(version) added Kong Enterprise version 2.8.4.10 artifacts
outsinre Jun 22, 2024
104c166
feat(version) added Kong Enterprise version 3.5.0.6
outsinre Jun 22, 2024
85851a9
chore(version) added Kong Enterprise version 3.5.0.6 artifacts
outsinre Jun 22, 2024
424c322
feat(version) added Kong Enterprise version 3.4.3.11
outsinre Jun 22, 2024
f55e3a9
chore(version) added Kong Enterprise version 3.4.3.11 artifacts
outsinre Jun 22, 2024
a8fcdb1
feat(version) added Kong Enterprise version 3.7.1.1
outsinre Jun 22, 2024
cba1b4a
chore(version) added Kong Enterprise version 3.7.1.1 artifacts
outsinre Jun 22, 2024
6f8a526
feat(version) added Kong Enterprise version 3.5.0.5
outsinre Jun 22, 2024
675d825
chore(version) added Kong Enterprise version 3.5.0.5 artifacts
outsinre Jun 22, 2024
b20db60
feat(version) added Kong Enterprise version 3.6.1.6
outsinre Jun 22, 2024
447b10c
chore(version) added Kong Enterprise version 3.6.1.6 artifacts
outsinre Jun 22, 2024
68a278a
refactor(update): use gh instead of hub to create a PR
Tieske Jun 24, 2024
d538933
fix(docs): update prereqs for update script
Tieske Jun 24, 2024
fa9f75c
feat(version) added Kong open source version 2.8.5
locao Jun 24, 2024
9ee521b
chore(version) added Kong open source version 2.8.5 artifacts
locao Jun 24, 2024
8156b4c
revert(add): exitcode 2 didn't work.
Tieske Jun 25, 2024
e03ec36
feat(version) added Kong Enterprise version 3.7.1.2
Jul 10, 2024
176539b
chore(version) added Kong Enterprise version 3.7.1.2 artifacts
Jul 10, 2024
fec673c
feat(version) added Kong Enterprise version 3.5.0.7
Jul 10, 2024
c30b08f
chore(version) added Kong Enterprise version 3.5.0.7 artifacts
Jul 10, 2024
33ebcfe
release 2.12.0
Tieske Jul 16, 2024
fa27841
feat(version) added Kong Enterprise version 3.6.1.7
Jul 23, 2024
fab3494
chore(version) added Kong Enterprise version 3.6.1.7 artifacts
Jul 23, 2024
652c682
feat(version) added Kong Enterprise version 2.8.4.12
Jul 30, 2024
a69964d
chore(version) added Kong Enterprise version 2.8.4.12 artifacts
Jul 30, 2024
61e82f5
feat(version) added Kong Enterprise version 3.4.3.12
Aug 9, 2024
e235f08
chore(version) added Kong Enterprise version 3.4.3.12 artifacts
Aug 9, 2024
41d92d0
fix(redis): disabling protected mode and explicit redis-server command
subnetmarco Aug 23, 2024
c06a02d
feat(docker-compose): add FIPS environment variable to docker-compose…
Water-Melon Aug 23, 2024
f734720
feat(version) added Kong Enterprise version 3.8.0.0
Sep 10, 2024
18aadd0
chore(version) added Kong Enterprise version 3.8.0.0 artifacts
Sep 10, 2024
7afb2f9
feat(version) added Kong open source version 3.8.0
kikito Sep 11, 2024
de814ba
chore(version) added Kong open source version 3.8.0 artifacts
kikito Sep 11, 2024
9ce609b
fix(*): properly resolve versions in double-digit case
Tieske Sep 11, 2024
708dd72
fix(docker-compose): remove deprecated version key
subnetmarco Sep 12, 2024
be6ceef
add changelog entry
Tieske Sep 12, 2024
0e47c32
Revert "feat(docker-compose): add FIPS environment variable to docker…
Tieske Sep 12, 2024
74dc7d2
Revert "fix(redis): disabling protected mode and explicit redis-serve…
Tieske Sep 12, 2024
a200eb1
release 2.13.0
Tieske Aug 27, 2024
19db0a0
feat(docker-compose): add FIPS environment variable to docker-compose…
Water-Melon Sep 14, 2024
d53d4ab
remove env KONG_TEST_LICENSE_PATH
Water-Melon Sep 19, 2024
a6cb674
release 2.14.0
Tieske Sep 24, 2024
1abd8a0
Update Postgres docker compose to allow DB Migrations
KalshuCodes Oct 1, 2024
97b6fe9
Revert Disable Health Check Changes
shettyh Aug 18, 2023
3377d17
Revert Disable Health Check Changes
KalshuCodes Oct 1, 2024
fb498f8
Remove setting mlcache lru to nil as it is used by event processor
KalshuCodes Oct 3, 2024
0efee8e
Updating Kong OSS TAG
KalshuCodes Oct 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
chore(version) added Kong Enterprise version 3.5.0.3 artifacts
(cherry picked from commit 355c498)
samugi authored and KalshuCodes committed Sep 25, 2024
commit f038136d8f4f9957f7f760761f3815b87e45abdb
232 changes: 232 additions & 0 deletions kong-versions/3.5.0.3/kong/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
OS := $(shell uname | awk '{print tolower($$0)}')
MACHINE := $(shell uname -m)

# EE uses "busted-hjtest" while CE uses "busted-htest"
DEV_ROCKS = "busted 2.1.2" "busted-hjtest 0.0.5" "luacheck 1.1.1" "lua-llthreads2 0.1.6" "ldoc 1.5.0" "luacov 0.15.0"
WIN_SCRIPTS = "bin/busted" "bin/kong" "bin/kong-health"
BUSTED_ARGS ?= -v
TEST_CMD ?= bin/busted $(BUSTED_ARGS)

BUILD_NAME ?= kong-dev
BAZEL_ARGS ?= --verbose_failures --action_env=BUILD_NAME=$(BUILD_NAME) --//:skip_webui=true --//:skip_tools=true

ifeq ($(OS), darwin)
HOMEBREW_DIR ?= /opt/homebrew
OPENSSL_DIR ?= $(shell brew --prefix)/opt/openssl
EXPAT_DIR ?= $(HOMEBREW_DIR)/opt/expat
LIBXML2_DIR ?= $(HOMEBREW_DIR)/opt/libxml2
GRPCURL_OS ?= osx
YAML_DIR ?= $(shell brew --prefix)/opt/libyaml
else
LIBRARY_PREFIX ?= /usr
OPENSSL_DIR ?= $(LIBRARY_PREFIX)
EXPAT_DIR ?= $(LIBRARY_PREFIX)
LIBXML2_DIR ?= $(LIBRARY_PREFIX)
GRPCURL_OS ?= $(OS)
YAML_DIR ?= /usr
endif

ifeq ($(MACHINE), aarch64)
GRPCURL_MACHINE ?= arm64
H2CLIENT_MACHINE ?= arm64
else
GRPCURL_MACHINE ?= $(MACHINE)
H2CLIENT_MACHINE ?= $(MACHINE)
endif

ifeq ($(MACHINE), aarch64)
BAZELISK_MACHINE ?= arm64
else ifeq ($(MACHINE), x86_64)
BAZELISK_MACHINE ?= amd64
else
BAZELISK_MACHINE ?= $(MACHINE)
endif

.PHONY: install dev \
sca test test-integration test-plugins test-all \
pdk-phase-check functional-tests \
fix-windows release wasm-test-filters

ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
KONG_SOURCE_LOCATION ?= $(ROOT_DIR)
GRPCURL_VERSION ?= 1.8.5
BAZLISK_VERSION ?= 1.18.0
H2CLIENT_VERSION ?= 0.4.0
BAZEL := $(shell command -v bazel 2> /dev/null)
VENV = /dev/null # backward compatibility when no venv is built

# Use x86_64 grpcurl v1.8.5 for Apple silicon chips
ifeq ($(GRPCURL_OS)_$(MACHINE)_$(GRPCURL_VERSION), osx_arm64_1.8.5)
GRPCURL_MACHINE = x86_64
endif

PACKAGE_TYPE ?= deb

bin/bazel:
@curl -s -S -L \
https://github.com/bazelbuild/bazelisk/releases/download/v$(BAZLISK_VERSION)/bazelisk-$(OS)-$(BAZELISK_MACHINE) -o bin/bazel
@chmod +x bin/bazel

bin/grpcurl:
@curl -s -S -L \
https://github.com/fullstorydev/grpcurl/releases/download/v$(GRPCURL_VERSION)/grpcurl_$(GRPCURL_VERSION)_$(GRPCURL_OS)_$(GRPCURL_MACHINE).tar.gz | tar xz -C bin;
@$(RM) bin/LICENSE

bin/h2client:
@curl -s -S -L \
https://github.com/Kong/h2client/releases/download/v$(H2CLIENT_VERSION)/h2client_$(H2CLIENT_VERSION)_$(OS)_$(H2CLIENT_MACHINE).tar.gz | tar xz -C bin;
@$(RM) bin/README.md


check-bazel: bin/bazel
ifndef BAZEL
$(eval BAZEL := bin/bazel)
endif

wasm-test-filters:
./scripts/build-wasm-test-filters.sh

build-kong: check-bazel
$(BAZEL) build //build:kong $(BAZEL_ARGS)

build-venv: check-bazel
$(eval VENV := bazel-bin/build/$(BUILD_NAME)-venv.sh)

@if [ ! -e bazel-bin/build/$(BUILD_NAME)-venv.sh ]; then \
$(BAZEL) build //build:venv $(BAZEL_ARGS); \
fi

install-dev-rocks: build-venv
@. $(VENV) ;\
for rock in $(DEV_ROCKS) ; do \
if luarocks list --porcelain $$rock | grep -q "installed" ; then \
echo $$rock already installed, skipping ; \
else \
echo $$rock not found, installing via luarocks... ; \
LIBRARY_PREFIX=$$(pwd)/bazel-bin/build/$(BUILD_NAME)/kong ; \
luarocks install $$rock OPENSSL_DIR=$$LIBRARY_PREFIX CRYPTO_DIR=$$LIBRARY_PREFIX YAML_DIR=$(YAML_DIR) || exit 1; \
fi \
done;

dev: build-venv install-dev-rocks bin/grpcurl bin/h2client wasm-test-filters

build-release: check-bazel
$(BAZEL) clean --expunge
$(BAZEL) build //build:kong --verbose_failures --config release

package/deb: check-bazel build-release
$(BAZEL) build --config release :kong_deb

package/apk: check-bazel build-release
$(BAZEL) build --config release :kong_apk

package/rpm: check-bazel build-release
$(BAZEL) build --config release :kong_el8 --action_env=RPM_SIGNING_KEY_FILE --action_env=NFPM_RPM_PASSPHRASE
$(BAZEL) build --config release :kong_el7 --action_env=RPM_SIGNING_KEY_FILE --action_env=NFPM_RPM_PASSPHRASE
$(BAZEL) build --config release :kong_aws2 --action_env=RPM_SIGNING_KEY_FILE --action_env=NFPM_RPM_PASSPHRASE
$(BAZEL) build --config release :kong_aws2022 --action_env=RPM_SIGNING_KEY_FILE --action_env=NFPM_RPM_PASSPHRASE

functional-tests: dev test

install: dev
@$(VENV) luarocks make

clean: check-bazel
$(BAZEL) clean
$(RM) bin/bazel bin/grpcurl bin/h2client

expunge: check-bazel
$(BAZEL) clean --expunge
$(RM) bin/bazel bin/grpcurl bin/h2client

sca:
@!(grep -R -E -I -n -w '#only|#o' spec && echo "#only or #o tag detected") >&2
@!(grep -R -E -I -n -w '#only|#o' spec-ee && echo "#only or #o tag detected") >&2
@!(grep -R -E -I -n -- '---\s+ONLY' t && echo "--- ONLY block detected") >&2
@$(KONG_SOURCE_LOCATION)/scripts/copyright-header-checker

trigger-api-tests:
-docker manifest inspect kong/kong-gateway-internal:${DOCKER_IMAGE_TAG} 2>&1 >/dev/null && \
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
https://api.github.com/repos/kong/kong-api-tests/dispatches \
-d '{"event_type":"per-commit-test","client_payload":{"docker_image":"kong/kong-gateway-internal:${DOCKER_IMAGE_TAG}"}' \

test: dev
@$(VENV) $(TEST_CMD) spec/01-unit

test-integration: dev
@$(VENV) $(TEST_CMD) spec/02-integration

test-plugins-spec: dev
@$(VENV) $(TEST_CMD) spec/03-plugins

test-all: dev
@$(VENV) $(TEST_CMD) spec/

test-ee: dev
@$(VENV) $(TEST_CMD) spec-ee/01-unit

test-integration-ee: dev
@$(VENV) $(TEST_CMD) spec-ee/02-integration

test-plugins-spec-ee: dev
@$(VENV) $(TEST_CMD) spec-ee/03-plugins

test-all-ee: dev
@$(VENV) $(TEST_CMD) spec-ee/

test-custom: dev
ifndef test_spec
$(error test_spec variable needs to be set, i.e. make test-custom test_spec=foo/bar/baz_spec.lua)
endif
@$(VENV) $(TEST_CMD) $(test_spec)

pdk-phase-checks: dev
rm -f t/phase_checks.stats
rm -f t/phase_checks.report
PDK_PHASE_CHECKS_LUACOV=1 prove -I. t/01*/*/00-phase*.t
luacov -c t/phase_checks.luacov
grep "ngx\\." t/phase_checks.report
grep "check_" t/phase_checks.report

test-plugins-ee:
ifndef EE_PLUGIN
$(error "Please use make plugins-ee EE_PLUGIN=plugin-name")
endif
scripts/enterprise_plugin.sh build-deps
scripts/enterprise_plugin.sh test $(EE_PLUGIN)

fix-windows:
@for script in $(WIN_SCRIPTS) ; do \
echo Converting Windows file $$script ; \
mv $$script $$script.win ; \
tr -d '\015' <$$script.win >$$script ; \
rm $$script.win ; \
chmod 0755 $$script ; \
done;

# the following targets are kept for backwards compatibility
# dev is renamed to dev-legacy
remove:
$(warning 'remove' target is deprecated, please use `make dev` instead)
-@luarocks remove kong

dependencies: bin/grpcurl bin/h2client
$(warning 'dependencies' target is deprecated, this is now not needed when using `make dev`, but are kept for installation that are not built by Bazel)

for rock in $(DEV_ROCKS) ; do \
if luarocks list --porcelain $$rock | grep -q "installed" ; then \
echo $$rock already installed, skipping ; \
else \
echo $$rock not found, installing via luarocks... ; \
luarocks install $$rock OPENSSL_DIR=$(OPENSSL_DIR) CRYPTO_DIR=$(OPENSSL_DIR) YAML_DIR=$(YAML_DIR) || exit 1; \
fi \
done;

install-legacy:
@luarocks make OPENSSL_DIR=$(OPENSSL_DIR) CRYPTO_DIR=$(OPENSSL_DIR) YAML_DIR=$(YAML_DIR)

dev-legacy: remove install-legacy dependencies
76 changes: 76 additions & 0 deletions kong-versions/3.5.0.3/kong/bin/busted
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#!/usr/bin/env resty

setmetatable(_G, nil)

local pl_path = require("pl.path")

local cert_path = pl_path.abspath("spec/fixtures/kong_spec.crt")

local DEFAULT_RESTY_FLAGS=string.format(" -c 4096 --http-conf 'lua_ssl_trusted_certificate %s;' ", cert_path)

if not os.getenv("KONG_BUSTED_RESPAWNED") then
-- initial run, so go update the environment
local script = {}
for line in io.popen("set"):lines() do
local ktvar, val = line:match("^KONG_TEST_([^=]*)=(.*)")
if ktvar then
-- reinserted KONG_TEST_xxx as KONG_xxx; append
table.insert(script, "export KONG_" .. ktvar .. "=" ..val)
end

local var = line:match("^(KONG_[^=]*)")
local var_for_spec = line:match("^(KONG_SPEC_[^=]*)")
if var and not var_for_spec then
-- remove existing KONG_xxx and KONG_TEST_xxx variables; prepend
table.insert(script, 1, "unset " .. var)
end
end
-- add cli recursion detection
table.insert(script, "export KONG_BUSTED_RESPAWNED=1")

-- XXX EE
table.insert(script, "export KONG_IS_TESTING=1")

-- rebuild the invoked commandline, while inserting extra resty-flags
local resty_flags = DEFAULT_RESTY_FLAGS
local cmd = { "exec", "/usr/bin/env", "resty" }
local cmd_prefix_count = #cmd
for i = 0, #arg do
if arg[i]:sub(1, 12) == "RESTY_FLAGS=" then
resty_flags = arg[i]:sub(13, -1)

else
table.insert(cmd, "'" .. arg[i] .. "'")
end
end

if resty_flags then
table.insert(cmd, cmd_prefix_count+1, resty_flags)
end

table.insert(script, table.concat(cmd, " "))

-- recurse cli command, with proper variables (un)set for clean testing
local _, _, rc = os.execute(table.concat(script, "; "))
os.exit(rc)
end

pcall(require, "luarocks.loader")

require("kong.globalpatches")({
cli = true,
rbusted = true
})

-- some libraries used in test like spec/helpers
-- calls cosocket in module level, and as LuaJIT's
-- `require` is implemented in C, this throws
-- "attempt to yield across C-call boundary" error
-- the following pure-lua implementation is to bypass
-- this limitation, without need to modify all tests
_G.require = require "spec.require".require

-- Busted command-line runner
require 'busted.runner'({ standalone = false })

-- vim: set ft=lua ts=2 sw=2 sts=2 et :
Loading