Skip to content

fix UnboundLocalError in test_pfcwd_function.py#16631

Merged
bingwang-ms merged 1 commit intosonic-net:masterfrom
sdszhang:pfcwd_error
Jan 22, 2025
Merged

fix UnboundLocalError in test_pfcwd_function.py#16631
bingwang-ms merged 1 commit intosonic-net:masterfrom
sdszhang:pfcwd_error

Conversation

@sdszhang
Copy link
Copy Markdown
Contributor

@sdszhang sdszhang commented Jan 22, 2025

Description of PR

Summary:
Fixes the following error per discussion in #16535

UnboundLocalError: local variable 'PFC_STORM_TIMEOUT' referenced before assignment

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?

fix syntax error in test_pfcwd_function.py:

How did you do it?

How did you verify/test it?

passed on msn2700. failed on 8102.

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang sdszhang marked this pull request as draft January 22, 2025 03:41
@sdszhang
Copy link
Copy Markdown
Contributor Author

sdszhang commented Jan 22, 2025

Test result (MSFT only access):
MSN2700: PASS

Cisco 8102: FAILED
T2: FAILED

This PR fixs the syntax error only. The new code path was skipped previously on cisco platform. Will let cisco to open another PR to fix them on cisco platform.

@rraghav-cisco

@sdszhang sdszhang marked this pull request as ready for review January 22, 2025 06:35
@sdszhang
Copy link
Copy Markdown
Contributor Author

sdszhang commented Jan 22, 2025

@rbpittman @bingwang-ms can you help to review?

@bingwang-ms bingwang-ms merged commit 97f8fb4 into sonic-net:master Jan 22, 2025
wangxin pushed a commit to wangxin/sonic-mgmt that referenced this pull request Feb 21, 2025
wangxin pushed a commit to wangxin/sonic-mgmt that referenced this pull request Feb 21, 2025
Description of PR
Summary: Fixes the following error per discussion in sonic-net#16535

UnboundLocalError: local variable 'PFC_STORM_TIMEOUT' referenced before assignment
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
@sdszhang sdszhang deleted the pfcwd_error branch March 27, 2025 12:26
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