Skip to content

[PTF python3 migration] Modify test_advanced_reboot PTF script#9550

Merged
wsycqyz merged 15 commits intosonic-net:masterfrom
wsycqyz:test_advanced_reboot_ptf_py3_master
Sep 3, 2023
Merged

[PTF python3 migration] Modify test_advanced_reboot PTF script#9550
wsycqyz merged 15 commits intosonic-net:masterfrom
wsycqyz:test_advanced_reboot_ptf_py3_master

Conversation

@wsycqyz
Copy link
Contributor

@wsycqyz wsycqyz commented Aug 18, 2023

Description of PR

Summary:
Migrate test_arpall PTF script to Python3

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

This is part of Python3 migration project.
This PR migrate test_arpall PTF script to Python3.

How did you do it?

2to3 and manually code change

How did you verify/test it?

Test with KVM testbed, physical testbed 3800 and PR test.

Any platform specific information?

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

Documentation

@wsycqyz wsycqyz requested a review from vaibhavhd August 18, 2023 09:07
module_ignore_errors=self.moduleIgnoreErrors,
timeout=REBOOT_CASE_TIMEOUT
timeout=REBOOT_CASE_TIMEOUT,
is_python3=True
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this is_python3 argument being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In ptf_runner.py, if is_python3==true, Python3 is used to run the PTF script.

vaibhavhd
vaibhavhd previously approved these changes Aug 18, 2023
Copy link
Contributor

@vaibhavhd vaibhavhd left a comment

Choose a reason for hiding this comment

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

LGTM, please ensure that the testing is also done on physical DUT, as the KVM test do not cover all the test conditions.

@wsycqyz
Copy link
Contributor Author

wsycqyz commented Aug 21, 2023

LGTM, please ensure that the testing is also done on physical DUT, as the KVM test do not cover all the test conditions.

Understood.

wangxin
wangxin previously approved these changes Aug 29, 2023
@yejianquan
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

wangxin
wangxin previously approved these changes Sep 1, 2023
self.check_param('arista_vms', [], required=True)
self.check_param('min_bgp_gr_timeout', 15, required=False)
self.check_param('warm_up_timeout_secs', 300, required=False)
self.check_param('warm_up_timeout_secs', 600, required=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this change needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is part of old commit. Final version didn't have this change.

@mssonicbld
Copy link
Collaborator

@wsycqyz PR conflicts with 202305 branch

wsycqyz added a commit to wsycqyz/sonic-mgmt that referenced this pull request Sep 4, 2023
…-net#9550)

Summary:
Migrate test_advanced_reboot's PTF script to Python3

What is the motivation for this PR?
This is part of Python3 migration project.
This PR migrate test_advanced_reboot's PTF script to Python3.

How did you do it?
2to3 and manually code change

How did you verify/test it?
Test with KVM testbed, physical testbed 3800 and PR test.
wangxin pushed a commit that referenced this pull request Sep 5, 2023
#9550) (#9819)

Manually cherry-pick PR #9550

Summary:
Migrate test_advanced_reboot's PTF script to Python3

What is the motivation for this PR?
This is part of Python3 migration project.
This PR migrate test_advanced_reboot's PTF script to Python3.

How did you do it?
2to3 and manually code change

How did you verify/test it?
Test with KVM testbed, physical testbed 3800 and PR test.
saiarcot895 added a commit that referenced this pull request Sep 7, 2023
saiarcot895 added a commit that referenced this pull request Sep 7, 2023
saiarcot895 added a commit that referenced this pull request Sep 7, 2023
@wsycqyz wsycqyz deleted the test_advanced_reboot_ptf_py3_master branch September 8, 2023 01:53
yxieca pushed a commit that referenced this pull request Sep 8, 2023
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…-net#9550)

Summary:
Migrate test_advanced_reboot's PTF script to Python3

What is the motivation for this PR?
This is part of Python3 migration project.
This PR migrate test_advanced_reboot's PTF script to Python3.

How did you do it?
2to3 and manually code change

How did you verify/test it?
Test with KVM testbed, physical testbed 3800 and PR test.
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
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.

5 participants