[P4_Symbolic] Adding p4_symbolic/testdata/parser/sai_parser.p4 [Extend IR proto and translation to support parsers.] #759
+2,490
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Keyword Check:
~/sonic-buildimage/src/sonic-p4rt/sonic-pins$ ~/tools/keyword_checks.sh .
Keyword check Passed.
Build Result:
/sonic/src/sonic-p4rt/sonic-pins$ bazel build $BAZEL_BUILD_OPTS ...
INFO: Analyzed 601 targets (1 packages loaded, 216 targets configured).
INFO: Found 601 targets...
INFO: From Compiling src/core/lib/channel/server_call_tracer_filter.cc [for host]:
In file included from external/com_github_grpc_grpc/src/core/lib/channel/server_call_tracer_filter.cc:26:
external/com_github_grpc_grpc/src/core/lib/channel/call_tracer.h:45:1: warning: multi-line comment [-Wcomment]
45 | // /
| ^
external/com_github_grpc_grpc/src/core/lib/channel/call_tracer.h:47:1: warning: multi-line comment [-Wcomment]
47 | // /
| ^
INFO: From Compiling src/core/ext/transport/chttp2/transport/stream_lists.cc [for host]:
In file included from external/com_github_grpc_grpc/src/core/ext/transport/chttp2/transport/hpack_parser.h:43,
from external/com_github_grpc_grpc/src/core/ext/transport/chttp2/transport/internal.h:49,
from external/com_github_grpc_grpc/src/core/ext/transport/chttp2/transport/stream_lists.cc:24:
external/com_github_grpc_grpc/src/core/lib/channel/call_tracer.h:45:1: warning: multi-line comment [-Wcomment]
45 | // /
| ^
external/com_github_grpc_grpc/src/core/lib/channel/call_tracer.h:47:1: warning: multi-line comment [-Wcomment]
47 | // /
| ^
INFO: From Compiling src/core/ext/transport/chttp2/transport/parsing.cc [for host]:
external/com_github_grpc_grpc/src/core/ext/transport/chttp2/transport/writing.cc:635:24: note: '((void)& stream_ctx +28)' was declared here
635 | StreamWriteContext stream_ctx(&ctx, s);
| ^~~~~~~~~~
In file included from external/com_github_grpc_grpc/src/core/lib/transport/transport.h:62,
from external/com_github_grpc_grpc/src/core/ext/transport/chttp2/transport/frame_data.h:36,
from external/com_github_grpc_grpc/src/core/ext/transport/chttp2/transport/writing.cc:43:
external/com_github_grpc_grpc/src/core/lib/transport/metadata_batch.h:807:71: warning: '((void)& stream_ctx +36)' may be used uninitialized in this function [-Wmaybe-uninitialized]
807 | explicit Value(const typename Which::ValueType& value) : value(value) {}
| ^
external/com_github_grpc_grpc/src/core/ext/transport/chttp2/transport/writing.cc:635:24: note: '((void)& stream_ctx +36)' was declared here
635 | StreamWriteContext stream_ctx(&ctx, s);
| ^~~~~~~~~~
INFO: From Compiling src/core/lib/gpr/posix/sync.cc [for host]:
external/com_github_grpc_grpc/src/core/lib/gpr/posix/sync.cc:158:9: warning: multi-line comment [-Wcomment]
158 | #endif // defined(GPR_POSIX_SYNC) && !defined(GPR_ABSEIL_SYNC) &&
| ^
INFO: Elapsed time: 1233.501s, Critical Path: 460.06s
INFO: 2583 processes: 3 internal, 2580 linux-sandbox.
INFO: Build completed successfully, 2583 total actions
Test Result:
/sonic/src/sonic-p4rt/sonic-pins$ bazel test $BAZEL_BUILD_OPTS --cache_test_results=no ...
INFO: Analyzed 601 targets (0 packages loaded, 354 targets configured).
INFO: Found 403 targets and 198 test targets...
INFO: Elapsed time: 246.991s, Critical Path: 111.73s
INFO: 252 processes: 298 linux-sandbox, 18 local.
INFO: Build completed successfully, 252 total actions
//dvaas:port_id_map_test PASSED in 0.8s
//dvaas:test_vector_stats_diff_test PASSED in 0.0s
//dvaas:test_vector_stats_test PASSED in 0.0s
//dvaas:test_vector_test PASSED in 0.6s
//dvaas:user_provided_packet_test_vector_diff_test PASSED in 0.1s
//dvaas:user_provided_packet_test_vector_test PASSED in 0.0s
//gutil:collections_test PASSED in 0.5s
//sai_p4/instantiations/google:clos_stage_test PASSED in 0.6s
//sai_p4/instantiations/google:fabric_border_router_p4info_up_to_date_test PASSED in 0.0s
//sai_p4/instantiations/google:middleblock_p4info_up_to_date_test PASSED in 0.0s
//sai_p4/instantiations/google:sai_nonstandard_platforms_build_test PASSED in 0.0s
//sai_p4/instantiations/google:sai_nonstandard_platforms_cc_test PASSED in 0.6s
//sai_p4/instantiations/google:sai_p4info_fetcher_test PASSED in 0.7s
//sai_p4/instantiations/google:sai_p4info_test PASSED in 1.1s
//sai_p4/instantiations/google:sai_pd_proto_test PASSED in 0.0s
//sai_p4/instantiations/google:sai_pd_util_test PASSED in 0.6s
//sai_p4/instantiations/google:tor_p4info_up_to_date_test PASSED in 0.0s
//sai_p4/instantiations/google:union_p4info_up_to_date_test PASSED in 0.1s
//sai_p4/instantiations/google:wbb_p4info_up_to_date_test PASSED in 0.0s
//sai_p4/instantiations/google/test_tools:table_entry_generator_helper_test PASSED in 2.6s
//sai_p4/instantiations/google/test_tools:test_entries_test PASSED in 0.9s
//sai_p4/instantiations/google/tests:p4_fuzzer_integration_test PASSED in 9.9s
//sai_p4/tools:p4info_tools_test PASSED in 0.6s
//sai_p4/tools:packetio_tools_test PASSED in 0.7s
//tests:thinkit_gnmi_interface_util_tests PASSED in 4.4s
//tests/qos:gnmi_parsers_test PASSED in 0.1s
//tests/qos:gnmi_parsers_test_runner PASSED in 0.1s
//thinkit:bazel_test_environment_test PASSED in 0.6s
//thinkit:generic_testbed_test PASSED in 0.9s
//thinkit:mock_control_device_test PASSED in 0.6s
//thinkit:mock_generic_testbed_test PASSED in 0.8s
//thinkit:mock_mirror_testbed_test PASSED in 0.6s
//thinkit:mock_ssh_client_test PASSED in 0.0s
//thinkit:mock_switch_test PASSED in 0.8s
//thinkit:mock_test_environment_test PASSED in 0.1s
//thinkit:switch_test PASSED in 0.8s
//sai_p4/instantiations/google/tests:p4_constraints_integration_test PASSED in 0.8s
Stats over 5 runs: max = 0.8s, min = 0.7s, avg = 0.7s, dev = 0.0s
//sai_p4/instantiations/google/test_tools:table_entry_generator_test PASSED in 44.5s
Stats over 50 runs: max = 44.5s, min = 0.8s, avg = 6.2s, dev = 13.9s
Executed 198 out of 198 tests: 198 tests pass.
INFO: Build completed successfully, 252 total actions