Skip to content

[platform_tests] Skip warm reboot on non-T0 topologies#23133

Merged
StormLiangMS merged 2 commits intosonic-net:masterfrom
bingwang-ms:warm-reboot-non-t0-skip
Mar 19, 2026
Merged

[platform_tests] Skip warm reboot on non-T0 topologies#23133
StormLiangMS merged 2 commits intosonic-net:masterfrom
bingwang-ms:warm-reboot-non-t0-skip

Conversation

@bingwang-ms
Copy link
Collaborator

@bingwang-ms bingwang-ms commented Mar 19, 2026

Description of PR

Summary:
Update the platform test conditional-mark YAML so platform_tests/test_reboot.py::test_warm_reboot is also skipped on lt2 and ft2 topologies.

Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

platform_tests/test_reboot.py::test_warm_reboot already had a topology-based skip list in the platform test conditional-mark YAML. The requested change is to extend that existing list to cover lt2 and ft2 as well.

How did you do it?

  • updated tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml
  • kept the existing skip model in place
  • extended the topology list from ['m0', 'mx', 'm1', 't1', 't2'] to ['m0', 'mx', 'm1', 't1', 't2', 'lt2', 'ft2']
  • preserved the existing dualtor and HWSKU-specific guards

How did you verify/test it?

  • python -c "import pathlib, yaml; p=pathlib.Path(r'tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml'); yaml.safe_load(p.read_text()); print('yaml_ok')"
  • inspected the focused diff against upstream/master

Any platform specific information?

This is a collection-time conditional-mark change for platform tests. It extends the existing non-T0-style topology list for this specific warm reboot test to include lt2 and ft2.

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

Not a new test case.

Documentation

No documentation update is needed.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StormLiangMS
Copy link
Collaborator

Code Review

LGTM — Clean 2-line change extending the warm reboot topology skip list to include lt2 and ft2. Well-documented PR description with YAML validation.

Copy link
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS merged commit 414c255 into sonic-net:master Mar 19, 2026
16 checks passed
@StormLiangMS StormLiangMS added Request for 202511 branch Request to backport a change to 202511 branch Approved for 202511 branch labels Mar 19, 2026
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Mar 19, 2026
What is the motivation for this PR?
platform_tests/test_reboot.py::test_warm_reboot already had a topology-based skip list in the platform test conditional-mark YAML. The requested change is to extend that existing list to cover lt2 and ft2 as well.

How did you do it?
updated tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml
kept the existing skip model in place
extended the topology list from ['m0', 'mx', 'm1', 't1', 't2'] to ['m0', 'mx', 'm1', 't1', 't2', 'lt2', 'ft2']
preserved the existing dualtor and HWSKU-specific guards
How did you verify/test it?
python -c "import pathlib, yaml; p=pathlib.Path(r'tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml'); yaml.safe_load(p.read_text()); print('yaml_ok')"
inspected the focused diff against upstream/master
Any platform specific information?
This is a collection-time conditional-mark change for platform tests. It extends the existing non-T0-style topology list for this specific warm reboot test to include lt2 and ft2.

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

Documentation
No documentation update is needed.

Signed-off-by: Bing Wang <[email protected]>

---------

Signed-off-by: Bing Wang <[email protected]>
Signed-off-by: mssonicbld <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202511: #23139

mssonicbld pushed a commit that referenced this pull request Mar 19, 2026
What is the motivation for this PR?
platform_tests/test_reboot.py::test_warm_reboot already had a topology-based skip list in the platform test conditional-mark YAML. The requested change is to extend that existing list to cover lt2 and ft2 as well.

How did you do it?
updated tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml
kept the existing skip model in place
extended the topology list from ['m0', 'mx', 'm1', 't1', 't2'] to ['m0', 'mx', 'm1', 't1', 't2', 'lt2', 'ft2']
preserved the existing dualtor and HWSKU-specific guards
How did you verify/test it?
python -c "import pathlib, yaml; p=pathlib.Path(r'tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml'); yaml.safe_load(p.read_text()); print('yaml_ok')"
inspected the focused diff against upstream/master
Any platform specific information?
This is a collection-time conditional-mark change for platform tests. It extends the existing non-T0-style topology list for this specific warm reboot test to include lt2 and ft2.

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

Documentation
No documentation update is needed.

Signed-off-by: Bing Wang <[email protected]>

---------

Signed-off-by: Bing Wang <[email protected]>
Signed-off-by: mssonicbld <[email protected]>
vrajeshe pushed a commit to vrajeshe/sonic-mgmt that referenced this pull request Mar 23, 2026
What is the motivation for this PR?
platform_tests/test_reboot.py::test_warm_reboot already had a topology-based skip list in the platform test conditional-mark YAML. The requested change is to extend that existing list to cover lt2 and ft2 as well.

How did you do it?
updated tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml
kept the existing skip model in place
extended the topology list from ['m0', 'mx', 'm1', 't1', 't2'] to ['m0', 'mx', 'm1', 't1', 't2', 'lt2', 'ft2']
preserved the existing dualtor and HWSKU-specific guards
How did you verify/test it?
python -c "import pathlib, yaml; p=pathlib.Path(r'tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml'); yaml.safe_load(p.read_text()); print('yaml_ok')"
inspected the focused diff against upstream/master
Any platform specific information?
This is a collection-time conditional-mark change for platform tests. It extends the existing non-T0-style topology list for this specific warm reboot test to include lt2 and ft2.

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

Documentation
No documentation update is needed.

Signed-off-by: Bing Wang <[email protected]>

---------

Signed-off-by: Bing Wang <[email protected]>
Signed-off-by: Venkata Gouri Rajesh Etla <[email protected]>
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 27, 2026
What is the motivation for this PR?
platform_tests/test_reboot.py::test_warm_reboot already had a topology-based skip list in the platform test conditional-mark YAML. The requested change is to extend that existing list to cover lt2 and ft2 as well.

How did you do it?
updated tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml
kept the existing skip model in place
extended the topology list from ['m0', 'mx', 'm1', 't1', 't2'] to ['m0', 'mx', 'm1', 't1', 't2', 'lt2', 'ft2']
preserved the existing dualtor and HWSKU-specific guards
How did you verify/test it?
python -c "import pathlib, yaml; p=pathlib.Path(r'tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml'); yaml.safe_load(p.read_text()); print('yaml_ok')"
inspected the focused diff against upstream/master
Any platform specific information?
This is a collection-time conditional-mark change for platform tests. It extends the existing non-T0-style topology list for this specific warm reboot test to include lt2 and ft2.

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

Documentation
No documentation update is needed.

Signed-off-by: Bing Wang <[email protected]>

---------

Signed-off-by: Bing Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants