Skip to content

Commit 1e7292b

Browse files
mrodmgizas
authored andcommitted
[Buildkite] Skip install package command in serverless builds for some packages (#9686)
1 parent 72d3dcc commit 1e7292b

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.buildkite/scripts/common.sh

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ create_kind_cluster() {
309309
kind create cluster --config "${WORKSPACE}/kind-config.yaml" --image "kindest/node:${K8S_VERSION}"
310310
}
311311

312-
313312
delete_kind_cluster() {
314313
echo "--- Delete kind cluster"
315314
kind delete cluster || true
@@ -410,7 +409,6 @@ is_package_excluded() {
410409
return 1
411410
}
412411

413-
414412
is_supported_capability() {
415413
if [ "${SERVERLESS_PROJECT}" == "" ]; then
416414
return 0
@@ -755,6 +753,19 @@ build_zip_package() {
755753
return 0
756754
}
757755

756+
skip_installation_step() {
757+
local package=$1
758+
if ! is_serverless ; then
759+
return 1
760+
fi
761+
762+
if [[ "$package" == "security_detection_engine" ]]; then
763+
return 0
764+
fi
765+
766+
return 1
767+
}
768+
758769
install_package() {
759770
local package=$1
760771
echo "Install package: ${package}"
@@ -814,10 +825,13 @@ run_tests_package() {
814825
fi
815826
fi
816827

817-
echo "--- [${package}] test installation"
818-
if ! install_package "${package}" ; then
819-
return 1
828+
if ! skip_installation_step "${package}" ; then
829+
echo "--- [${package}] test installation"
830+
if ! install_package "${package}" ; then
831+
return 1
832+
fi
820833
fi
834+
821835
echo "--- [${package}] run test suites"
822836
if is_serverless; then
823837
if ! test_package_in_serverless "${package}" ; then

0 commit comments

Comments
 (0)