Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fail if startup tsa tsb timer file can't be found #15548

Conversation

Javier-Tan
Copy link
Contributor

@Javier-Tan Javier-Tan commented Nov 14, 2024

Description of PR

Summary:
Fixes #15513

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?

Fix errors caused by startup_tsa_tsb_service being expected but not supported

How did you do it?

Add a skip when trying to get startup tsb timer, function now doubles as a check if start_tsa_tsb_service is supported.

How did you verify/test it?

Test that skip applies to applicable tests when startup tsa tsb service is not detected, and rest of tests are not affected

Any platform specific information?

N/A

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

N/A

Documentation

N/A

…if startup tsa tsb service is not supported

* Add pytest skip if startup tsa tsb service is not supported when attempting to get startup timer

Signed-off-by: Javier Tan javiertan@microsoft.com
@Javier-Tan Javier-Tan marked this pull request as ready for review November 14, 2024 02:43
Copy link
Contributor

@arista-nwolfe arista-nwolfe left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @Javier-Tan for fixing this.
Could we add @sanjair-git, who introduced this test, as a reviewer as well?

@arlakshm
Copy link
Contributor

Hi @Javier-Tan, thanks for change. We do not want to skip this test. I tests were failing because the service files were missing. I have added the Arista Linecard platforms files in this PR sonic-net/sonic-buildimage#20804

@Javier-Tan
Copy link
Contributor Author

Hi @Javier-Tan, thanks for change. We do not want to skip this test. I tests were failing because the service files were missing. I have added the Arista Linecard platforms files in this PR sonic-net/sonic-buildimage#20804

Hi @arlakshm, should we change the skip to fail if we assume startup tsa tsb is always supported?

@Javier-Tan Javier-Tan changed the title Add skip if startup tsa tsb service is not supported [T2] [BGP] Add fail if startup tsa tsb timer file can't be found Nov 15, 2024
@Javier-Tan Javier-Tan marked this pull request as draft November 15, 2024 02:32
@Javier-Tan Javier-Tan changed the title [T2] [BGP] Add fail if startup tsa tsb timer file can't be found Add fail if startup tsa tsb timer file can't be found Nov 15, 2024
@Javier-Tan Javier-Tan closed this Jan 2, 2025
@Javier-Tan Javier-Tan deleted the tweak_startup_tsa_tsb_timer_guard branch January 2, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants