Skip to content

Move all paltform test conditional marks to tests_mark_conditions_platform_tests.yaml. #14370

Merged
wangxin merged 1 commit intosonic-net:masterfrom
yutongzhang-microsoft:yutongzhang/move_platform_test
Sep 5, 2024
Merged

Move all paltform test conditional marks to tests_mark_conditions_platform_tests.yaml. #14370
wangxin merged 1 commit intosonic-net:masterfrom
yutongzhang-microsoft:yutongzhang/move_platform_test

Conversation

@yutongzhang-microsoft
Copy link
Contributor

@yutongzhang-microsoft yutongzhang-microsoft commented Sep 2, 2024

Description of PR

We have a specific yaml file tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml to record the conditional marks of platfrom test. In this PR, we move all the conditional marks of platform test in tests_mark_conditions.yaml to its specific yaml file. And if the key of conditional mark is duplicate in these two files, we combine them together.

Summary:
Fixes # (issue)

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?

We have a specific yaml file tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml to record the conditional marks of platfrom test. In this PR, we move all the conditional marks of platform test in tests_mark_conditions.yaml to its specific yaml file. And if the key of conditional mark is repetitive in these two files, we combine them together.

How did you do it?

Move all paltform test conditional marks to tests_mark_conditions_platform_tests.yaml and combine the repetitive keys.

How did you verify/test it?

Any platform specific information?

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

Documentation

@lizhijianrd
Copy link
Contributor

Is it possible to add some PR check to avoid people add platform testcases in tests_mark_conditions.yaml in future?

@yutongzhang-microsoft
Copy link
Contributor Author

Is it possible to add some PR check to avoid people add platform testcases in tests_mark_conditions.yaml in future?

Good suggestion! Maybe we can add some checks in Pre_test Static Analysis.

Copy link
Contributor

@opcoder0 opcoder0 left a comment

Choose a reason for hiding this comment

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

LGTM. Just a minor comment on the closed issue.

platform_tests/test_auto_negotiation.py:
skip:
reason: "auto negotiation test highly depends on test enviroments, file issue to track and skip for now"
conditions: https://github.com/sonic-net/sonic-mgmt/issues/5447
Copy link
Contributor

Choose a reason for hiding this comment

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

This issue is closed. Will this still be skipped?

Copy link
Contributor

Choose a reason for hiding this comment

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

If issue is closed, then testcase will not be skipped.

@wangxin wangxin merged commit f76369d into sonic-net:master Sep 5, 2024
@yutongzhang-microsoft yutongzhang-microsoft deleted the yutongzhang/move_platform_test branch September 5, 2024 03:35
hdwhdw pushed a commit to hdwhdw/sonic-mgmt that referenced this pull request Sep 20, 2024
…yaml` (sonic-net#14370)

What is the motivation for this PR?
We have a specific yaml file tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml to record the conditional marks of platfrom test. In this PR, we move all the conditional marks of platform test in tests_mark_conditions.yaml to its specific yaml file. And if the key of conditional mark is repetitive in these two files, we combine them together.

How did you do it?
Move all paltform test conditional marks to tests_mark_conditions_platform_tests.yaml and combine the repetitive keys.
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
…yaml` (sonic-net#14370)

What is the motivation for this PR?
We have a specific yaml file tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml to record the conditional marks of platfrom test. In this PR, we move all the conditional marks of platform test in tests_mark_conditions.yaml to its specific yaml file. And if the key of conditional mark is repetitive in these two files, we combine them together.

How did you do it?
Move all paltform test conditional marks to tests_mark_conditions_platform_tests.yaml and combine the repetitive keys.
@mssonicbld
Copy link
Collaborator

@yutongzhang-microsoft PR conflicts with 202205 branch

@mssonicbld
Copy link
Collaborator

@yutongzhang-microsoft PR conflicts with 202311 branch

@mssonicbld
Copy link
Collaborator

@yutongzhang-microsoft PR conflicts with 202012 branch

@mssonicbld
Copy link
Collaborator

@yutongzhang-microsoft PR conflicts with 202405 branch

@mssonicbld
Copy link
Collaborator

@yutongzhang-microsoft PR conflicts with 202305 branch

yutongzhang-microsoft added a commit to yutongzhang-microsoft/sonic-mgmt that referenced this pull request Oct 11, 2024
yutongzhang-microsoft added a commit to yutongzhang-microsoft/sonic-mgmt that referenced this pull request Oct 11, 2024
wangxin pushed a commit that referenced this pull request Oct 14, 2024
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
…yaml` (sonic-net#14370)

What is the motivation for this PR?
We have a specific yaml file tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml to record the conditional marks of platfrom test. In this PR, we move all the conditional marks of platform test in tests_mark_conditions.yaml to its specific yaml file. And if the key of conditional mark is repetitive in these two files, we combine them together.

How did you do it?
Move all paltform test conditional marks to tests_mark_conditions_platform_tests.yaml and combine the repetitive keys.
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…et#17179)

* Revert "[202205] [Mellanox] Fix issue: user must set admin down before toggling LPM (sonic-net#14370)"

This reverts commit f74c69e.

* update copyright header

Signed-off-by: Kebo Liu <kebol@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment