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

[fuzzer] Convert state summary unit test to golden test. Replace btree_map with flat_hash_map for canonical entry representation. Ignore order of all repeated fields when comparing entries. #599

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

Conversation

VSuryaprasad-HCL
Copy link
Contributor

Keyword Check:

/pins_upstream/sonic-buildimage/src/sonic-p4rt/sonic-pins$ ~/tools/keyword_checks.sh p4_fuzzer/
Keyword check Passed.

Build result:

/sonic/src/sonic-p4rt/sonic-pins$ bazel build $BAZEL_BUILD_OPTS  ...
INFO: Analyzed 510 targets (0 packages loaded, 0 targets configured).
INFO: Found 510 targets...
INFO: Elapsed time: 0.610s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action

Test result:

/sonic/src/sonic-p4rt/sonic-pins$ bazel test $BAZEL_BUILD_OPTS --cache_test_results=no ... --sandbox_debug
INFO: Analyzed 510 targets (0 packages loaded, 324 targets configured).
INFO: Found 340 targets and 170 test targets...
INFO: Elapsed time: 155.200s, Critical Path: 87.60s
INFO: 179 processes: 211 linux-sandbox, 18 local.
INFO: Build completed successfully, 179 total actions
//gutil:collections_test                                                 PASSED in 0.5s
//gutil:io_test                                                          PASSED in 0.7s
//gutil:proto_matchers_test                                              PASSED in 0.6s
//gutil:proto_ordering_test                                              PASSED in 0.8s
//gutil:proto_test                                                       PASSED in 0.6s
//gutil:status_matchers_test                                             PASSED in 0.7s
//gutil:test_artifact_writer_test                                        PASSED in 1.7s
//gutil:testing_test                                                     PASSED in 0.5s
//gutil:timer_test                                                       PASSED in 5.3s
//gutil:version_test                                                     PASSED in 3.0s
//lib:basic_switch_test                                                  PASSED in 0.9s
//lib:ixia_helper_test                                                   PASSED in 1.3s
//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.7s
//thinkit:mock_ssh_client_test                                           PASSED in 0.1s
//thinkit:mock_switch_test                                               PASSED in 0.7s
//thinkit:mock_test_environment_test                                     PASSED in 0.1s
//thinkit:switch_test                                                    PASSED in 0.8s
//sai_p4/instantiations/google/test_tools:table_entry_generator_test     PASSED in 87.5s
  Stats over 5 runs: max = 87.5s, min = 1.1s, avg = 28.5s, dev = 35.3s
//sai_p4/instantiations/google/tests:p4_constraints_integration_test     PASSED in 1.1s
  Stats over 5 runs: max = 1.1s, min = 0.7s, avg = 0.9s, dev = 0.1s

Executed 170 out of 170 tests: 170 tests pass.
INFO: Build completed successfully, 179 total actions

jonathan-dilorenzo and others added 3 commits October 3, 2024 16:29
…Make test program invisible from external packages. Improve error messages to ease debugging.[match-action coverage test] Fix test by updating stale action names. Add an exclude list for tables, actions, and match fields. Improve max weight used for action profile members with SumOfMembers semantics.
…date in switchstate to properly modify modifications. Store canonical representation of table entries. Check that entries on switch are the same as switch_state.
…e_map with flat_hash_map for canonical entry representation. Ignore order of all repeated fields when comparing entries.
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.

kishanps
kishanps previously approved these changes Oct 4, 2024
@kishanps
Copy link
Collaborator

kishanps commented Oct 5, 2024

@VSuryaprasad-HCL Pls fix the build error

@VSuryaprasad-HCL
Copy link
Contributor Author

@VSuryaprasad-HCL Pls fix the build error

@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