Skip to content

[202511] Cherry-pick conditional marks + HA planned shutdown tests#23655

Merged
vmittal-msft merged 5 commits into
sonic-net:202511from
theasianpianist:cherrypick/batch5-ha-planned-shutdown/202511
Apr 10, 2026
Merged

[202511] Cherry-pick conditional marks + HA planned shutdown tests#23655
vmittal-msft merged 5 commits into
sonic-net:202511from
theasianpianist:cherrypick/batch5-ha-planned-shutdown/202511

Conversation

@theasianpianist
Copy link
Copy Markdown
Contributor

@theasianpianist theasianpianist commented Apr 6, 2026

Requires #23654 to be merged first

Cherry-pick of 4 PRs to 202511 — conditional mark fixes and HA planned shutdown tests.

Three adjacency conflicts in tests_mark_conditions.yaml were resolved by keeping both the existing 202511 entries and the incoming entries (they are independent sections inserted at the same location).

Included PRs (in cherry-pick order):

  1. Fix conditional marks for marvell-teralynx #20934 — Fix conditional marks for marvell-teralynx (conflict resolved)
  2. reliable tsa tests are now skipped on single asic voq duts #22089 — reliable tsa tests are now skipped on single asic voq duts (conflict resolved)
  3. [HA] [smartswitch] HA planned shutdown tests #22853 — [HA] [smartswitch] HA planned shutdown tests (conflict resolved)
  4. [ha] fix argument order in planned shutdown test case  #23407 — [ha] fix argument order in planned shutdown test case

Conflict Details

All three conflicts were adjacency conflicts in tests/common/plugins/conditional_mark/tests_mark_conditions.yaml — unrelated PRs inserting new YAML sections at the same anchor point. Resolution was to keep both sections since they are independent.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

AnandhiDhanabalan and others added 4 commits April 9, 2026 21:19
What is the motivation for this PR?\nThe conditional markers needed to be handled for various qos cases for marvell-teralynx TL7 and TL10 asic family.\n\nHow did you do it?\nDepending on the ASIC and topology, fixed the conditions to either skip or run the test case for marvell-teralynx.\n\nHow did you verify/test it?\nRan the PTF cases listed above in T0 and T1 topology both in TL7 and TL10 platform.\n\nSigned-off-by:\nSigned-off-by: Anandhi Dhanabalan <adhanabalan@marvell.com>
…#22089)

reliable tsa tests require two duthosts: one as supe and one as LC
single asic voq dut have only one duthost, hence reliable tsa tests are skipped

Signed-off-by: Saravanan Sellappa <saravanan@nexthop.ai>
Description of PR
Add the HA planned shutdown tests as per Module 2 of the HA testplan

Summary:
This test is verifying 2 scenarios

Traffic is sent while the primary is set to dead. No traffic loss should be observed
Traffic is sent while standby is set to dead. Also no traffic loss is expected.
Description of PR
Summary:

The argument order is wrong when setting ha scope desired_state to dead. It failed the GNMI call, and led to test failures.
Submitting this PR to fix the issue.

Reference:

sonic-mgmt/tests/ha/ha_utils.py

Line 268 in 6a548d3

 def set_dead_dash_ha_scope(localhost, duthost, ptfhost, scope_key):
@theasianpianist theasianpianist force-pushed the cherrypick/batch5-ha-planned-shutdown/202511 branch from bb07572 to 8d2ea56 Compare April 9, 2026 21:20
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@vmittal-msft vmittal-msft merged commit 7707a31 into sonic-net:202511 Apr 10, 2026
16 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.

8 participants