Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,17 +406,15 @@ elif [[ "$CI_TARGET" == "fix_format" ]]; then

echo "fix_format..."
"${ENVOY_SRCDIR}"/tools/code_format/check_format.py fix
BAZEL_BUILD_OPTIONS="${BAZEL_BUILD_OPTIONS[*]}" "${ENVOY_SRCDIR}"/tools/proto_format/proto_format.sh fix --test
BAZEL_BUILD_OPTIONS="${BAZEL_BUILD_OPTIONS[*]}" "${ENVOY_SRCDIR}"/tools/proto_format/proto_format.sh fix
exit 0
elif [[ "$CI_TARGET" == "check_format" ]]; then
# proto_format.sh needs to build protobuf.
setup_clang_toolchain

echo "check_format_test..."
"${ENVOY_SRCDIR}"/tools/code_format/check_format_test_helper.sh --log=WARN
echo "check_format..."
"${ENVOY_SRCDIR}"/tools/code_format/check_format.py check
BAZEL_BUILD_OPTIONS="${BAZEL_BUILD_OPTIONS[*]}" "${ENVOY_SRCDIR}"/tools/proto_format/proto_format.sh check --test
BAZEL_BUILD_OPTIONS="${BAZEL_BUILD_OPTIONS[*]}" "${ENVOY_SRCDIR}"/tools/proto_format/proto_format.sh check
exit 0
elif [[ "$CI_TARGET" == "docs" ]]; then
echo "generating docs..."
Expand All @@ -427,13 +425,8 @@ elif [[ "$CI_TARGET" == "deps" ]]; then

echo "verifying dependencies..."
# Validate dependency relationships between core/extensions and external deps.
"${ENVOY_SRCDIR}"/tools/dependency/validate_test.py
"${ENVOY_SRCDIR}"/tools/dependency/validate.py

# Validate the CVE scanner works. We do it here as well as in cve_scan, since this blocks
# presubmits, but cve_scan only runs async.
bazel run "${BAZEL_BUILD_OPTIONS[@]}" //tools/dependency:cve_scan_test

# Validate repository metadata.
echo "check repositories..."
"${ENVOY_SRCDIR}"/tools/check_repositories.sh
Expand All @@ -449,8 +442,30 @@ elif [[ "$CI_TARGET" == "cve_scan" ]]; then
bazel run "${BAZEL_BUILD_OPTIONS[@]}" //tools/dependency:cve_scan
exit 0
elif [[ "$CI_TARGET" == "tooling" ]]; then
setup_clang_toolchain

# TODO(phlax): move this to a bazel rule

echo "Run pytest tooling tests..."
bazel run "${BAZEL_BUILD_OPTIONS[@]}" //tools/testing:all_pytests -- --cov-html /source/generated/tooling "${ENVOY_SRCDIR}"

echo "Run protoxform test"
BAZEL_BUILD_OPTIONS="${BAZEL_BUILD_OPTIONS[*]}" ./tools/protoxform/protoxform_test.sh

echo "Run merge active shadow test"
bazel test "${BAZEL_BUILD_OPTIONS[@]}" //tools/protoxform:merge_active_shadow_test

echo "check_format_test..."
"${ENVOY_SRCDIR}"/tools/code_format/check_format_test_helper.sh --log=WARN

echo "dependency validate_test..."
"${ENVOY_SRCDIR}"/tools/dependency/validate_test.py

# Validate the CVE scanner works. We do it here as well as in cve_scan, since this blocks
# presubmits, but cve_scan only runs async.
echo "cve_scan_test..."
bazel run "${BAZEL_BUILD_OPTIONS[@]}" //tools/dependency:cve_scan_test

exit 0
elif [[ "$CI_TARGET" == "verify_examples" ]]; then
run_ci_verify "*" "wasm-cc|win32-front-proxy"
Expand Down
6 changes: 0 additions & 6 deletions tools/proto_format/proto_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ read -ra BAZEL_BUILD_OPTIONS <<< "${BAZEL_BUILD_OPTIONS:-}"
exit 0
}

if [[ "$2" == "--test" ]]; then
echo "protoxform_test..."
BAZEL_BUILD_OPTIONS="${BAZEL_BUILD_OPTIONS[*]}" ./tools/protoxform/protoxform_test.sh
bazel test "${BAZEL_BUILD_OPTIONS[@]}" //tools/protoxform:merge_active_shadow_test
fi

# Generate //versioning:active_protos.
./tools/proto_format/active_protos_gen.py ./api > ./api/versioning/BUILD

Expand Down
1 change: 0 additions & 1 deletion tools/protoxform/protoxform_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ TOOLS="$(dirname "$(dirname "$(realpath "$0")")")"
# to satisfy dependency on run_command
export PYTHONPATH="$TOOLS"


# protoxform fix test cases
PROTO_TARGETS=()
protos=$(bazel query "labels(srcs, labels(deps, //tools/testdata/protoxform:fix_protos))")
Expand Down