Skip to content

Commit

Permalink
Merge branch 'master' into test/redis-helper
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco authored Nov 12, 2024
2 parents 46d0e82 + fd7ea93 commit 0349cc9
Show file tree
Hide file tree
Showing 274 changed files with 7,127 additions and 1,809 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-wasm-test-filters/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
echo "WASM_FILTER_CACHE_PREFIX=wasm-test-filters::v3::${{ runner.os }}" >> $GITHUB_ENV
- name: Restore Cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-cache
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
}
- name: add label
if: steps.backport.outputs.was_successful == 'false'
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.0
uses: Kong/action-add-labels@81b0a07d6b2ec64d770be1ca94c31ec827418054
with:
labels: incomplete-backport
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
luarocks config
- name: Bazel Outputs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: bazel-outputs
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
static-mode: ${{ github.run_attempt > 1 }}

- name: Upload schedule files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: schedule-test-files
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
psql -hlocalhost -Ukong kong -tAc 'alter system set max_connections = 5000;'
- name: Download test schedule file
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: schedule-test-files

Expand All @@ -321,13 +321,13 @@ jobs:
make dev
- name: Download test rerun information
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
continue-on-error: true
with:
name: test-rerun-info-${{ matrix.runner }}

- name: Download test runtime statistics from previous runs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
continue-on-error: true
with:
name: test-runtime-statistics-${{ matrix.runner }}
Expand Down Expand Up @@ -357,30 +357,30 @@ jobs:

- name: Upload error logs
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: busted-test-errlogs-${{ matrix.runner }}
path: ${{ env.SPEC_ERRLOG_CACHE_DIR }}
retention-days: 1

- name: Upload test rerun information
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-rerun-info-${{ matrix.runner }}
path: ${{ env.FAILED_TEST_FILES_FILE }}
retention-days: 2

- name: Upload test runtime statistics for offline scheduling
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-runtime-statistics-${{ matrix.runner }}
path: ${{ env.TEST_FILE_RUNTIME_FILE }}
retention-days: 7

- name: Archive coverage stats file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() && (inputs.coverage == true || github.event_name == 'schedule') }}
with:
name: luacov-stats-out-${{ github.job }}-${{ github.run_id }}-${{ matrix.runner }}
Expand Down Expand Up @@ -444,14 +444,14 @@ jobs:
- name: Upload error logs
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: PDK-test-errlogs
path: ${{ env.SPEC_ERRLOG_CACHE_DIR }}
retention-days: 1

- name: Archive coverage stats file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() && (inputs.coverage == true || github.event_name == 'schedule') }}
with:
name: luacov-stats-out-${{ github.job }}-${{ github.run_id }}
Expand Down Expand Up @@ -481,7 +481,7 @@ jobs:
sudo luarocks install luafilesystem
# Download all archived coverage stats files
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4

- name: Stats aggregation
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cherry-picks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ jobs:
}
- name: add label
if: steps.cherry_pick.outputs.was_successful == 'false'
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.0
uses: Kong/action-add-labels@81b0a07d6b2ec64d770be1ca94c31ec827418054
with:
labels: incomplete-cherry-pick
2 changes: 1 addition & 1 deletion .github/workflows/deck-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: sudo apt update && sudo apt install -y libyaml-dev valgrind libprotobuf-dev libpam-dev postgresql-client jq

- name: Checkout Kong source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GHA_KONG_BOT_READ_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
luarocks
- name: Bazel Outputs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: bazel-outputs
Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:
echo "matrix=$(yq -I=0 -o=json $matrix_file)" >> $GITHUB_OUTPUT
echo "docker-test-image=${{ env.PRERELEASE_DOCKER_REPOSITORY }}:${{ github.event.pull_request.head.sha || github.sha }}" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
echo "### :package: Building and packaging for $release_desc" >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -260,7 +262,7 @@ jobs:
tail -n500 bazel-out/**/*/CMake.log || true
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.label }}-packages
path: bazel-bin/pkg
Expand All @@ -280,7 +282,7 @@ jobs:
- uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.label }}-packages
path: bazel-bin/pkg
Expand Down Expand Up @@ -316,14 +318,14 @@ jobs:
- uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.artifact-from }}-packages
path: bazel-bin/pkg

- name: Download artifact (alt)
if: matrix.artifact-from-alt != ''
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.artifact-from-alt }}-packages
path: bazel-bin/pkg
Expand All @@ -348,10 +350,10 @@ jobs:
- name: Set up QEMU
if: matrix.docker-platforms != ''
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Set platforms
id: docker_platforms_arg
Expand Down Expand Up @@ -489,18 +491,20 @@ jobs:
- name: Scan AMD64 Image digest
id: sbom_action_amd64
if: steps.image_manifest_metadata.outputs.amd64_sha != ''
uses: Kong/public-shared-actions/security-actions/scan-docker-image@5c685ec0bc8d18f9faa540cb66837c326176c541
uses: Kong/public-shared-actions/security-actions/scan-docker-image@28d20a1f492927f35b00b317acd78f669c45f88b # v2.7.3
with:
asset_prefix: kong-${{ needs.metadata.outputs.commit-sha }}-${{ matrix.label }}-linux-amd64
image: ${{ needs.metadata.outputs.prerelease-docker-repository }}:${{ needs.metadata.outputs.commit-sha }}-${{ matrix.label }}
skip_cis_scan: true # FIXME

- name: Scan ARM64 Image digest
if: steps.image_manifest_metadata.outputs.manifest_list_exists == 'true' && steps.image_manifest_metadata.outputs.arm64_sha != ''
id: sbom_action_arm64
uses: Kong/public-shared-actions/security-actions/scan-docker-image@5c685ec0bc8d18f9faa540cb66837c326176c541
uses: Kong/public-shared-actions/security-actions/scan-docker-image@28d20a1f492927f35b00b317acd78f669c45f88b # v2.7.3
with:
asset_prefix: kong-${{ needs.metadata.outputs.commit-sha }}-${{ matrix.label }}-linux-arm64
image: ${{ needs.metadata.outputs.prerelease-docker-repository }}:${{ needs.metadata.outputs.commit-sha }}-${{ matrix.label }}
skip_cis_scan: true # FIXME

release-packages:
name: Release Packages - ${{ matrix.label }} - ${{ needs.metadata.outputs.release-desc }}
Expand All @@ -521,7 +525,7 @@ jobs:
- uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.artifact-from }}-packages
path: bazel-bin/pkg
Expand Down Expand Up @@ -588,7 +592,7 @@ jobs:
username: ${{ secrets.GHA_DOCKERHUB_PUSH_USER }}
password: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUSH_TOKEN }}

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

- name: Get latest commit SHA on master
run: |
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ bin/grpcurl
*.bak
*.rock

bazel-*

worktree/
bin/bazel
bin/h2client
Expand All @@ -41,3 +39,8 @@ bin/h2client
*.wasm
spec/fixtures/proxy_wasm_filters/build
spec/fixtures/proxy_wasm_filters/target

# bazel
bazel-*
# remove it after migrating from WORKSPACE to Bzlmod
MODULE.bazel.lock
10 changes: 5 additions & 5 deletions .requirements
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ LIBEXPAT_SHA256=d4cf38d26e21a56654ffe4acd9cd5481164619626802328506a2869afab29ab3

# Note: git repositories can be loaded from local path if path is set as value

LUA_KONG_NGINX_MODULE=a8411f7cf4289049f0bd3e8e40088e7256389ed3 # 0.11.0
LUA_RESTY_LMDB=5016b110dfc0e0a7a2742c63a6c922d5c7d75218 # 1.4.3
LUA_RESTY_EVENTS=2dcd1d7a256c53103c0fdbe804f419174e0ea8ba # 0.3.0
LUA_KONG_NGINX_MODULE=3eb89666f84348fa0599d4e0a29ccf89511e8b75 # 0.13.0
LUA_RESTY_LMDB=890b3caf45bd052e319e48349ef393ec93e08ac4 # 1.5.0
LUA_RESTY_EVENTS=bc85295b7c23eda2dbf2b4acec35c93f77b26787 # 0.3.1
LUA_RESTY_SIMDJSON=7e6466ce91b2bc763b45701a4f055e94b1e8143b # 1.1.0
LUA_RESTY_WEBSOCKET=966c69c39f03029b9b42ec0f8e55aaed7d6eebc0 # 0.4.0.1
ATC_ROUTER=ffd11db657115769bf94f0c4f915f98300bc26b6 # 1.6.2
SNAPPY=23b3286820105438c5dbb9bc22f1bb85c5812c8a # 1.2.0

KONG_MANAGER=nightly
NGX_WASM_MODULE=96b4e27e10c63b07ed40ea88a91c22f23981db35
NGX_WASM_MODULE=741b22a9af7db531ef8125d19430d5aa0f4bdf6d
WASMER=3.1.1
WASMTIME=23.0.2
WASMTIME=26.0.0
V8=12.0.267.17

NGX_BROTLI=a71f9312c2deb28875acc7bacfdd5695a111aa53 # master branch of Oct 9, 2023
Expand Down
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "string_flag")
load("@bazel_skylib//lib:selects.bzl", "selects")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "string_flag")
load("//build/nfpm:rules.bzl", "nfpm_pkg")
load("//build/toolchain:managed_toolchain.bzl", "aarch64_glibc_distros")

Expand Down
Loading

0 comments on commit 0349cc9

Please sign in to comment.