Skip to content

Ensure TSB is saved in config after deploy-mg and during pretest#17247

Merged
arlakshm merged 2 commits intosonic-net:masterfrom
Javier-Tan:pretest_tsb_config_save
Mar 26, 2025
Merged

Ensure TSB is saved in config after deploy-mg and during pretest#17247
arlakshm merged 2 commits intosonic-net:masterfrom
Javier-Tan:pretest_tsb_config_save

Conversation

@Javier-Tan
Copy link
Contributor

@Javier-Tan Javier-Tan commented Feb 28, 2025

Description of PR

Summary:
Fixes #17246

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

Make sure tsa_enabled = false when startup_tsa_tsb is disabled through pretest

How did you do it?

Add config save after TSB is executed

How did you verify/test it?

Output tsa_enabled before and after pretest to make sure it is working is intended

Any platform specific information?

N/A

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

N/A

Documentation

* Add config save after performing TSB in pretest

Signed-off-by: Javier Tan [email protected]
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Javier-Tan Javier-Tan requested a review from arlakshm February 28, 2025 03:16
@Javier-Tan Javier-Tan changed the title Ensure TSB is in golden config Ensure TSB is saved in config when test_startup_tsa_tsb is disabled Feb 28, 2025
@Javier-Tan
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 4, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

… deploy-mg

* Execute TSB before config save during deploy-mg

Signed-off-by: Javier Tan [email protected]
@Javier-Tan Javier-Tan force-pushed the pretest_tsb_config_save branch from af50809 to 34862d4 Compare March 4, 2025 09:37
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Javier-Tan Javier-Tan changed the title Ensure TSB is saved in config when test_startup_tsa_tsb is disabled Ensure TSB is saved in config after deploy-mg and during pretest Mar 4, 2025
@arlakshm arlakshm merged commit 416b869 into sonic-net:master Mar 26, 2025
20 checks passed
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202405: Azure/sonic-mgmt.msft#172

amulyan7 pushed a commit to amulyan7/sonic-mgmt that referenced this pull request Mar 31, 2025
…ic-net#17247)

What is the motivation for this PR?
Make sure tsa_enabled = false when startup_tsa_tsb is disabled through pretest

How did you do it?
Add config save after TSB is executed

How did you verify/test it?
Output tsa_enabled before and after pretest to make sure it is working is intended

Signed-off-by: Javier Tan [email protected]
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 31, 2025
…ic-net#17247)

What is the motivation for this PR?
Make sure tsa_enabled = false when startup_tsa_tsb is disabled through pretest

How did you do it?
Add config save after TSB is executed

How did you verify/test it?
Output tsa_enabled before and after pretest to make sure it is working is intended

Signed-off-by: Javier Tan [email protected]
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
…ic-net#17247)

What is the motivation for this PR?
Make sure tsa_enabled = false when startup_tsa_tsb is disabled through pretest

How did you do it?
Add config save after TSB is executed

How did you verify/test it?
Output tsa_enabled before and after pretest to make sure it is working is intended

Signed-off-by: Javier Tan [email protected]
yejianquan pushed a commit that referenced this pull request May 30, 2025
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in #17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request May 30, 2025
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in sonic-net#17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.
mssonicbld pushed a commit that referenced this pull request May 30, 2025
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in #17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.
bachalla pushed a commit to bachalla/sonic-mgmt that referenced this pull request Jun 2, 2025
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in sonic-net#17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.
@Javier-Tan Javier-Tan deleted the pretest_tsb_config_save branch June 27, 2025 05:16
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…ic-net#17247)

What is the motivation for this PR?
Make sure tsa_enabled = false when startup_tsa_tsb is disabled through pretest

How did you do it?
Add config save after TSB is executed

How did you verify/test it?
Output tsa_enabled before and after pretest to make sure it is working is intended

Signed-off-by: Javier Tan [email protected]
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in sonic-net#17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.

Signed-off-by: opcoder0 <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in sonic-net#17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.

Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…ic-net#17247)

What is the motivation for this PR?
Make sure tsa_enabled = false when startup_tsa_tsb is disabled through pretest

How did you do it?
Add config save after TSB is executed

How did you verify/test it?
Output tsa_enabled before and after pretest to make sure it is working is intended

Signed-off-by: Javier Tan [email protected]
Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in sonic-net#17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.

Signed-off-by: Guy Shemesh <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in sonic-net#17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…ic-net#17247)

What is the motivation for this PR?
Make sure tsa_enabled = false when startup_tsa_tsb is disabled through pretest

How did you do it?
Add config save after TSB is executed

How did you verify/test it?
Output tsa_enabled before and after pretest to make sure it is working is intended

Signed-off-by: Javier Tan [email protected]
Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
Description of PR
Fix the dut variable name in test_disable_startup_tsa_tsb_service() in test_pretest.py added in sonic-net#17247

Summary:
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
Approach
What is the motivation for this PR?
When using multithreading parallel run, we cannot refer to the duthost variable, we need to use dut instead.

Signed-off-by: Guy Shemesh <[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.

New deploy-mg causes TSA to be in config_db (and golden), causing test errors when startup_tsa_tsb is disabled

3 participants