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

Fix fabric_cli_and_db so it only tests on connected links. #16309

Merged

Conversation

jfeng-arista
Copy link
Contributor

Description of PR

Summary: Fix the fabric_cli_and_db test so it only tests connected links.
Fixes # (issue)

The fabric_cli_and_db failed in cases where the test selected a link that was not connected. This issue occurred because the portList set was not reset for each chip, allowing links that were connected on other chips to be tested, even though they were not connected on the chip being tested. In this PR, the portList is reset for each chip, and the 'show fabric reachability' command is also run on each chip. As a result, the test now only choose connected links on the chip under test.

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jfeng-arista
Copy link
Contributor Author

@kenneth-arista @arlakshm

@rlhui rlhui requested a review from arlakshm January 3, 2025 05:11
@arlakshm
Copy link
Contributor

arlakshm commented Jan 3, 2025

@saksarav-nokia for viz...

@jfeng-arista
Copy link
Contributor Author

Test plan id: 67777e3598ec838ee83d6176, status: EXECUTING, expected_status: EXECUTING, progress: 0.00%, elapsed: 11493 seconds
##[error]The Operation will be canceled. The next steps may not contain expected logs.
##[error]The operation was canceled.
Finishing: Run test

Does not seem related to the change.

I am kicking off the tests again

@jfeng-arista
Copy link
Contributor Author

/Azpw run Azure.sonic-mgmt

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-mgmt

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm arlakshm merged commit 8043026 into sonic-net:master Jan 4, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants