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

[P4_Symbolic] Adding p4_symbolic/testdata/parser/sai_parser.p4 [Extend IR proto and translation to support parsers.] #759

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

VSuryaprasad-HCL
Copy link
Contributor

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

@VSuryaprasad-HCL
Copy link
Contributor Author

Co-authored-by: Srikishen Pondicherry Shanmugam [email protected]

Copy link
Contributor

@bibhuprasad-hcl bibhuprasad-hcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kishanps, Could you please review.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants