[platform_tests] Skip warm reboot on non-T0 topologies#23133
Merged
StormLiangMS merged 2 commits intosonic-net:masterfrom Mar 19, 2026
Merged
[platform_tests] Skip warm reboot on non-T0 topologies#23133StormLiangMS merged 2 commits intosonic-net:masterfrom
StormLiangMS merged 2 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Bing Wang <[email protected]>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Bing Wang <[email protected]>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
auspham
approved these changes
Mar 19, 2026
Collaborator
Code Review✅ LGTM — Clean 2-line change extending the warm reboot topology skip list to include |
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]>
Collaborator
|
Cherry-pick PR to 202511: #23139 |
12 tasks
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Update the platform test conditional-mark YAML so
platform_tests/test_reboot.py::test_warm_rebootis also skipped onlt2andft2topologies.Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
platform_tests/test_reboot.py::test_warm_rebootalready had a topology-based skip list in the platform test conditional-mark YAML. The requested change is to extend that existing list to coverlt2andft2as well.How did you do it?
tests/common/plugins/conditional_mark/tests_mark_conditions_platform_tests.yaml['m0', 'mx', 'm1', 't1', 't2']to['m0', 'mx', 'm1', 't1', 't2', 'lt2', 'ft2']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')"upstream/masterAny 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
lt2andft2.Supported testbed topology if it's a new test case?
Not a new test case.
Documentation
No documentation update is needed.