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

[Feat] Enable recover in the post sanity check #14296

Conversation

yejianquan
Copy link
Collaborator

@yejianquan yejianquan commented Aug 28, 2024

Description of PR

Summary:
Fixes # (issue)
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

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?

If the pre sanity check failed, all the test module are marked as failed.
With post sanity check, we can kick out the testbed immediately after the test module finished, rather than on the beginning of the next test module.

How did you do it?

Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

How did you verify/test it?

On physical testbeds, both the recover of pre/post sanity check works as expected.

Any platform specific information?

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

Documentation

@yejianquan yejianquan merged commit d521d1e into sonic-net:master Aug 29, 2024
16 of 17 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Aug 29, 2024
Description of PR
Summary:
Fixes # (issue)
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

Approach
What is the motivation for this PR?
If the pre sanity check failed, all the test module are marked as failed.
With post sanity check, we can kick out the testbed immediately after the test module finished, rather than on the beginning of the next test module.

How did you do it?
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

How did you verify/test it?
On physical testbeds, both the recover of pre/post sanity check works as expected.

co-authorized by: [email protected]
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #14329

mssonicbld pushed a commit that referenced this pull request Aug 30, 2024
Description of PR
Summary:
Fixes # (issue)
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

Approach
What is the motivation for this PR?
If the pre sanity check failed, all the test module are marked as failed.
With post sanity check, we can kick out the testbed immediately after the test module finished, rather than on the beginning of the next test module.

How did you do it?
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

How did you verify/test it?
On physical testbeds, both the recover of pre/post sanity check works as expected.

co-authorized by: [email protected]
eddieruan-alibaba pushed a commit to eddieruan-alibaba/sonic-mgmt that referenced this pull request Sep 4, 2024
Description of PR
Summary:
Fixes # (issue)
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

Approach
What is the motivation for this PR?
If the pre sanity check failed, all the test module are marked as failed.
With post sanity check, we can kick out the testbed immediately after the test module finished, rather than on the beginning of the next test module.

How did you do it?
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

How did you verify/test it?
On physical testbeds, both the recover of pre/post sanity check works as expected.

co-authorized by: [email protected]
hdwhdw pushed a commit to hdwhdw/sonic-mgmt that referenced this pull request Sep 20, 2024
Description of PR
Summary:
Fixes # (issue)
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

Approach
What is the motivation for this PR?
If the pre sanity check failed, all the test module are marked as failed.
With post sanity check, we can kick out the testbed immediately after the test module finished, rather than on the beginning of the next test module.

How did you do it?
Extract the recover of sanity check failure into a single method,
enable sanity check recover in post canity test.

How did you verify/test it?
On physical testbeds, both the recover of pre/post sanity check works as expected.

co-authorized by: [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.

3 participants