Skip to content

[test_fib] Improve test_fib#4193

Merged
lolyu merged 3 commits intosonic-net:masterfrom
lolyu:improve_test_fib_dualtor
Sep 12, 2021
Merged

[test_fib] Improve test_fib#4193
lolyu merged 3 commits intosonic-net:masterfrom
lolyu:improve_test_fib_dualtor

Conversation

@lolyu
Copy link
Copy Markdown
Collaborator

@lolyu lolyu commented Sep 7, 2021

Description of PR

Summary:
Fixes sonic-net/sonic-buildimage#8519
Fixes sonic-net/sonic-buildimage#8103

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

Improve test_fib stability over dualtor testbed

How did you do it?

Add a few improvements:

  1. For test_basic_fib:
    1.1 Add back the logic to toggle the ports to random side.
    1.2 Use fixture toggle_all_simulator_ports_to_random_side to do the
    toggle instead and add extra check _check_mux_status_consistency to
    ensure the mux status from the DUTs and mux simulator is consistent
    after the toggle.

  2. For test_hash:
    2.1 Use toggle_all_simulator_ports_to_rand_selected_tor to do the
    toggle because it has check to verify the toggle.

Signed-off-by: Longxiang Lyu [email protected]

How did you verify/test it?

Run it over dualtor, t0 and t1 testbed.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Add a few improvements:
1. For `test_basic_fib`:
1.1 Add back the logic to toggle the ports to random side.
1.2 Use fixture `toggle_all_simulator_ports_to_random_side` to do the
toggle instead and add extra check `_check_mux_status_consistency` to
ensure the mux status from the DUTs and mux simulator is consistent
after the toggle.

2. For `test_hash`:
2.1 Use `toggle_all_simulator_ports_to_rand_selected_tor` to do the
toggle because it has check to verify the toggle.

Signed-off-by: Longxiang Lyu <[email protected]>
@lolyu lolyu requested a review from a team as a code owner September 7, 2021 11:04
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Sep 7, 2021

This pull request introduces 3 alerts when merging 4b1f66f into 768b672 - view on LGTM.com

new alerts:

  • 3 for Unused import

Signed-off-by: Longxiang Lyu <[email protected]>
@lolyu lolyu force-pushed the improve_test_fib_dualtor branch from b5b0da8 to cec65ca Compare September 7, 2021 15:55
Signed-off-by: Longxiang Lyu <[email protected]>
@lolyu
Copy link
Copy Markdown
Collaborator Author

lolyu commented Sep 9, 2021

/AZP run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@lolyu lolyu merged commit 9f56087 into sonic-net:master Sep 12, 2021
@lolyu lolyu deleted the improve_test_fib_dualtor branch September 12, 2021 04:03
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
Approach
What is the motivation for this PR?
Improve test_fib stability over dualtor testbed

How did you do it?
Add a few improvements:

For test_basic_fib:
1.1 Add back the logic to toggle the ports to random side.
1.2 Use fixture toggle_all_simulator_ports_to_random_side to do the
toggle instead and add extra check _check_mux_status_consistency to
ensure the mux status from the DUTs and mux simulator is consistent
after the toggle.

For test_hash:
2.1 Use toggle_all_simulator_ports_to_rand_selected_tor to do the
toggle because it has check to verify the toggle.

Signed-off-by: Longxiang Lyu [email protected]

How did you verify/test it?
Run it over dualtor, t0 and t1 testbed.
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.

[202012][test_fib] test_fib fails [fib] test_hash[ipv6] fails

2 participants