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

[dut_console]: conditionally skip connect tests for arista 7800 chassis #15520

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liamkearney-msft
Copy link
Contributor

Description of PR

Skip dut console connect tests for arista 7800 as the linecards do not have console ports

Summary:
Fixes #15518

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • [x ] 202405

Approach

What is the motivation for this PR?

Test was failing on setup due to no mgmt ip for console, as there isnt a console for the linecards

How did you do it?

conditionally skip for 7800 chassis

How did you verify/test it?

ran locally, tests are skipped

Any platform specific information?

arista 7800 specific

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

Documentation

@@ -618,6 +618,18 @@ dut_console:
conditions:
- "asic_type in ['vs']"

dut_console/test_console_baud_rate.py::test_baud_rate_boot_connect:
Copy link
Contributor

@xwjiang-ms xwjiang-ms Nov 14, 2024

Choose a reason for hiding this comment

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

Current conditonal mark rule is:

  1. If markers are different: add all matched markers
  2. If markers are the same: add the marker matches the longest match

In this scenario, your marker is skip, just like the above skip in dut_console/, so when running test dut_console/test_console_baud_rate.py::test_baud_rate_boot_connect, the conditional marke added in dut_console/ would be invalid, which caused PR test failed, so please also add the condition "asic_type in ['vs']" defined in dut_console/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure thing, thanks. Fixed

conditions:
- "'arista_7800' in platform"

dut_console/test_console_baud_rate.py::test_baud_rate_sonic_connect:
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@xwjiang-ms
Copy link
Contributor

xwjiang-ms commented Nov 14, 2024

@yutongzhang-microsoft since all tests under dut_console/ should be skipped in vs platform, should we move console tests from pr_test yaml to pr_skip yaml? Conditional mark could keep because we may have some local KVM tests

@yutongzhang-microsoft
Copy link
Contributor

be skipped in vs platform, should we move console tests from pr_test yaml to pr_skip yaml? Conditional mark could keep because we may have so

Why we skip them? They are in PR checkers

@xwjiang-ms
Copy link
Contributor

be skipped in vs platform, should we move console tests from pr_test yaml to pr_skip yaml? Conditional mark could keep because we may have so

Why we skip them? They are in PR checkers

You skipped them with PR #5708

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.

[Bug]: dut_console test fails on arista 7800
4 participants