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

Greenlight and reclassify //test/... with the current progress for Windows #12695

Merged
merged 4 commits into from
Aug 18, 2020
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
17 changes: 13 additions & 4 deletions ci/windows_ci_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,19 @@ BAZEL_STARTUP_OPTIONS="--output_base=c:/_eb"
BAZEL_BUILD_OPTIONS="-c opt --config=msvc-cl --show_task_finish --verbose_failures \
--test_output=errors ${BAZEL_BUILD_EXTRA_OPTIONS} ${BAZEL_EXTRA_TEST_OPTIONS}"

bazel ${BAZEL_STARTUP_OPTIONS} build ${BAZEL_BUILD_OPTIONS} //source/exe:envoy-static --build_tag_filters=-skip_on_windows
# Test to validate updates of all dependency libraries in bazel/external and bazel/foreign_cc
# bazel ${BAZEL_STARTUP_OPTIONS} build ${BAZEL_BUILD_OPTIONS} //bazel/... --build_tag_filters=-skip_on_windows

# Complete envoy-static build (nothing needs to be skipped, build failure indicates broken dependencies)
bazel ${BAZEL_STARTUP_OPTIONS} build ${BAZEL_BUILD_OPTIONS} //source/exe:envoy-static

# Test invocations of known-working tests on Windows
bazel ${BAZEL_STARTUP_OPTIONS} test ${BAZEL_BUILD_OPTIONS} //test/... --test_tag_filters=-skip_on_windows,-fails_on_windows --build_tests_only
bazel ${BAZEL_STARTUP_OPTIONS} test ${BAZEL_BUILD_OPTIONS} //test/... --test_tag_filters=-skip_on_windows,-fails_on_windows,-flaky_on_windows --build_tests_only

# Build tests that are known-flaky or known-failing to ensure no compilation regressions
bazel ${BAZEL_STARTUP_OPTIONS} build ${BAZEL_BUILD_OPTIONS} //test/... --test_tag_filters=-skip_on_windows,fails_on_windows,flaky_on_windows --build_tests_only

# Build tests that are failing to ensure no regressions
bazel ${BAZEL_STARTUP_OPTIONS} build ${BAZEL_BUILD_OPTIONS} //test/... --test_tag_filters=-skip_on_windows,fails_on_windows --build_tests_only
# Summarize tests bypasssed to monitor the progress of porting to Windows
echo Tests bypassed as skip_on_windows: `bazel query 'kind(".*test rule", attr("tags", "skip_on_windows", //test/...))' 2>/dev/null | sort | wc -l` known unbuildable or inapplicable tests
echo Tests bypassed as fails_on_windows: `bazel query 'kind(".*test rule", attr("tags", "fails_on_windows", //test/...))' 2>/dev/null | sort | wc -l` known incompatible tests
echo Tests bypassed as flaky_on_windows: `bazel query 'kind(".*test rule", attr("tags", "flaky_on_windows", //test/...))' 2>/dev/null | sort | wc -l` known unstable tests
2 changes: 0 additions & 2 deletions test/extensions/access_loggers/grpc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ envoy_extension_cc_test(
name = "http_grpc_access_log_integration_test",
srcs = ["http_grpc_access_log_integration_test.cc"],
extension_name = "envoy.access_loggers.http_grpc",
tags = ["fails_on_windows"],
deps = [
"//source/common/buffer:zero_copy_input_stream_lib",
"//source/common/grpc:codec_lib",
Expand All @@ -98,7 +97,6 @@ envoy_extension_cc_test(
name = "tcp_grpc_access_log_integration_test",
srcs = ["tcp_grpc_access_log_integration_test.cc"],
extension_name = "envoy.access_loggers.http_grpc",
tags = ["fails_on_windows"],
deps = [
"//source/common/buffer:zero_copy_input_stream_lib",
"//source/common/grpc:codec_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/clusters/aggregate/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ envoy_extension_cc_test(
name = "cluster_integration_test",
srcs = ["cluster_integration_test.cc"],
extension_name = "envoy.clusters.aggregate",
tags = ["fails_on_windows"],
deps = [
"//source/common/config:protobuf_link_hacks",
"//source/common/protobuf:utility_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/common/aws/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ envoy_cc_test(
srcs = [
"aws_metadata_fetcher_integration_test.cc",
],
tags = ["fails_on_windows"],
deps = [
"//source/common/common:fmt_lib",
"//source/extensions/common/aws:utility_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/adaptive_concurrency/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ envoy_extension_cc_test(
"adaptive_concurrency_filter_integration_test.h",
],
extension_name = "envoy.filters.http.adaptive_concurrency",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/adaptive_concurrency:config",
"//source/extensions/filters/http/fault:config",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/admission_control/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ envoy_extension_cc_test(
name = "admission_control_integration_test",
srcs = ["admission_control_integration_test.cc"],
extension_name = "envoy.filters.http.admission_control",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/admission_control:config",
"//test/integration:http_integration_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/aws_lambda/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ envoy_extension_cc_test(
name = "aws_lambda_filter_integration_test",
srcs = ["aws_lambda_filter_integration_test.cc"],
extension_name = "envoy.filters.http.aws_lambda",
tags = ["fails_on_windows"],
deps = [
"//source/common/http:header_map_lib",
"//source/extensions/filters/http/aws_lambda:aws_lambda_filter_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/buffer/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ envoy_extension_cc_test(
name = "buffer_filter_integration_test",
srcs = ["buffer_filter_integration_test.cc"],
extension_name = "envoy.filters.http.buffer",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/buffer:config",
"//test/config:utility_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/compressor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ envoy_extension_cc_test(
"compressor_filter_integration_test.cc",
],
extension_name = "envoy.filters.http.compressor",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/compression/gzip/compressor:config",
"//source/extensions/compression/gzip/decompressor:config",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/cors/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ envoy_extension_cc_test(
name = "cors_filter_integration_test",
srcs = ["cors_filter_integration_test.cc"],
extension_name = "envoy.filters.http.cors",
tags = ["fails_on_windows"],
deps = [
"//source/common/buffer:buffer_lib",
"//source/common/http:header_map_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/csrf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ envoy_extension_cc_test(
name = "csrf_filter_integration_test",
srcs = ["csrf_filter_integration_test.cc"],
extension_name = "envoy.filters.http.csrf",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/csrf:config",
"//test/config:utility_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/decompressor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ envoy_extension_cc_test(
"decompressor_filter_integration_test.cc",
],
extension_name = "envoy.filters.http.decompressor",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/compression/gzip/compressor:config",
"//source/extensions/compression/gzip/decompressor:config",
Expand Down
2 changes: 1 addition & 1 deletion test/extensions/filters/http/dynamic_forward_proxy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ envoy_extension_cc_test(
"//test/config/integration/certs",
],
extension_name = "envoy.filters.http.dynamic_forward_proxy",
tags = ["fails_on_windows"],
tags = ["flaky_on_windows"],
deps = [
"//source/extensions/clusters/dynamic_forward_proxy:cluster",
"//source/extensions/filters/http/dynamic_forward_proxy:config",
Expand Down
2 changes: 1 addition & 1 deletion test/extensions/filters/http/ext_authz/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ envoy_extension_cc_test(
name = "ext_authz_integration_test",
srcs = ["ext_authz_integration_test.cc"],
extension_name = "envoy.filters.http.ext_authz",
tags = ["fails_on_windows"],
tags = ["flaky_on_windows"],
deps = [
"//source/extensions/filters/http/ext_authz:config",
"//test/integration:http_integration_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/fault/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ envoy_extension_cc_test(
name = "fault_filter_integration_test",
srcs = ["fault_filter_integration_test.cc"],
extension_name = "envoy.filters.http.fault",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/fault:config",
"//test/integration:http_protocol_integration_lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ envoy_extension_cc_test(
name = "reverse_bridge_integration_test",
srcs = ["reverse_bridge_integration_test.cc"],
extension_name = "envoy.filters.http.grpc_http1_reverse_bridge",
tags = ["fails_on_windows"],
deps = [
"//source/common/buffer:buffer_lib",
"//source/common/http:header_map_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/grpc_json_transcoder/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ envoy_extension_cc_test(
"//test/proto:bookstore_proto_descriptor",
],
extension_name = "envoy.filters.http.grpc_json_transcoder",
tags = ["fails_on_windows"],
deps = [
"//source/common/grpc:codec_lib",
"//source/common/http:header_map_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/grpc_web/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ envoy_extension_cc_test(
name = "grpc_web_integration_test",
srcs = ["grpc_web_filter_integration_test.cc"],
extension_name = "envoy.filters.http.grpc_web",
tags = ["fails_on_windows"],
deps = [
"//source/common/buffer:buffer_lib",
"//source/common/http:header_map_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/gzip/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ envoy_extension_cc_test(
"gzip_filter_integration_test.cc",
],
extension_name = "envoy.filters.http.gzip",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/compression/gzip/decompressor:zlib_decompressor_impl_lib",
"//source/extensions/filters/http/gzip:config",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/jwt_authn/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ envoy_extension_cc_test(
name = "filter_integration_test",
srcs = ["filter_integration_test.cc"],
extension_name = "envoy.filters.http.jwt_authn",
tags = ["fails_on_windows"],
deps = [
"//source/common/router:string_accessor_lib",
"//source/extensions/filters/http/common:pass_through_filter_lib",
Expand Down
2 changes: 1 addition & 1 deletion test/extensions/filters/http/ratelimit/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ envoy_extension_cc_test(
name = "ratelimit_integration_test",
srcs = ["ratelimit_integration_test.cc"],
extension_name = "envoy.filters.http.ratelimit",
tags = ["fails_on_windows"],
tags = ["flaky_on_windows"],
deps = [
"//source/common/buffer:zero_copy_input_stream_lib",
"//source/common/grpc:codec_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/rbac/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ envoy_extension_cc_test(
name = "rbac_filter_integration_test",
srcs = ["rbac_filter_integration_test.cc"],
extension_name = "envoy.filters.http.rbac",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/rbac:config",
"//test/config:utility_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/router/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ envoy_extension_cc_test(
"//test/config/integration/certs",
],
extension_name = "envoy.filters.http.router",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/router:config",
"//test/integration:http_integration_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/squash/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ envoy_extension_cc_test(
name = "squash_filter_integration_test",
srcs = ["squash_filter_integration_test.cc"],
extension_name = "envoy.filters.http.squash",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/squash:config",
"//test/integration:http_integration_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/http/tap/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ envoy_extension_cc_test(
name = "tap_filter_integration_test",
srcs = ["tap_filter_integration_test.cc"],
extension_name = "envoy.filters.http.tap",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/http/tap:config",
"//test/integration:http_integration_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/network/local_ratelimit/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ envoy_extension_cc_test(
name = "local_ratelimit_integration_test",
srcs = ["local_ratelimit_integration_test.cc"],
extension_name = "envoy.filters.network.local_ratelimit",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/network/local_ratelimit:config",
"//source/extensions/filters/network/tcp_proxy:config",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/network/postgres_proxy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ envoy_extension_cc_test(
"postgres_test_config.yaml",
],
extension_name = "envoy.filters.network.postgres_proxy",
tags = ["fails_on_windows"],
deps = [
"//source/common/tcp_proxy",
"//source/extensions/filters/network/postgres_proxy:config",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/network/rbac/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ envoy_extension_cc_test(
name = "integration_test",
srcs = ["integration_test.cc"],
extension_name = "envoy.filters.network.rbac",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/network/echo:config",
"//source/extensions/filters/network/rbac:config",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/filters/network/redis_proxy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ envoy_extension_cc_test(
name = "redis_proxy_integration_test",
srcs = ["redis_proxy_integration_test.cc"],
extension_name = "envoy.filters.network.redis_proxy",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/filters/network/common/redis:fault_lib",
"//source/extensions/filters/network/redis_proxy:config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ envoy_extension_cc_test(
"//test/config/integration/certs",
],
extension_name = "envoy.filters.network.sni_dynamic_forward_proxy",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/clusters/dynamic_forward_proxy:cluster",
"//source/extensions/filters/listener/tls_inspector:config",
Expand Down
1 change: 1 addition & 0 deletions test/extensions/grpc_credentials/file_based_metadata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ envoy_cc_test(
name = "file_based_metadata_grpc_credentials_test",
srcs = ["file_based_metadata_grpc_credentials_test.cc"],
data = ["//test/config/integration/certs"],
tags = ["flaky_on_windows"],
deps = [
"//source/extensions/grpc_credentials:well_known_names",
"//source/extensions/grpc_credentials/file_based_metadata:config",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/stats_sinks/hystrix/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ envoy_extension_cc_test(
name = "hystrix_integration_test",
srcs = ["hystrix_integration_test.cc"],
extension_name = "envoy.stat_sinks.hystrix",
tags = ["fails_on_windows"],
deps = [
"//source/extensions/stat_sinks/hystrix:config",
"//test/integration:http_protocol_integration_lib",
Expand Down
2 changes: 1 addition & 1 deletion test/extensions/stats_sinks/metrics_service/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ envoy_extension_cc_test(
name = "metrics_service_integration_test",
srcs = ["metrics_service_integration_test.cc"],
extension_name = "envoy.stat_sinks.metrics_service",
tags = ["fails_on_windows"],
tags = ["flaky_on_windows"],
deps = [
"//source/common/buffer:zero_copy_input_stream_lib",
"//source/common/grpc:codec_lib",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/transport_sockets/alts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ envoy_extension_cc_test(
"grpc_alts_handshaker_proto",
"grpc_alts_transport_security_common_proto",
],
tags = ["fails_on_windows"],
deps = [
"//source/common/common:utility_lib",
"//source/common/event:dispatcher_includes",
Expand Down
1 change: 0 additions & 1 deletion test/extensions/transport_sockets/tls/integration/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ envoy_cc_test(
data = [
"//test/config/integration/certs",
],
tags = ["fails_on_windows"],
deps = [
"//source/common/event:dispatcher_includes",
"//source/common/event:dispatcher_lib",
Expand Down
Loading