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

refactor: move skip condition to tests mark #14798

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

cyw233
Copy link
Contributor

@cyw233 cyw233 commented Sep 30, 2024

Description of PR

Move the multi-asic skip condition in override_config_table/test_override_config_table.py to test_mark_conditions.yaml to speed up the skip process.

Summary:
Fixes # (issue) Microsoft ADO 29658311

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?

Currently, it takes 1 ~ 2 hours to skip the override_config_table/test_override_config_table.py test on T2 chassis because there are some unnecessary setup steps before it reaches multi-asic pytest.skip() condition. We can improve this by moving the skip condition to test_mark_conditions.yaml.

How did you do it?

How did you verify/test it?

I ran the updated code in T2 chassis and it only took ~1 min to skip the test. Meanwhile, I can confirm that this test is running as normal in single-asic Testbeds.

Any platform specific information?

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

Documentation

Copy link
Collaborator

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

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

LGTM

@yejianquan yejianquan merged commit 16da56c into sonic-net:202405 Oct 1, 2024
13 checks passed
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.

2 participants