Skip to content

[action] [PR:21500] [SNAPPI] pretty print tgen stats#21553

Open
mssonicbld wants to merge 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/21500
Open

[action] [PR:21500] [SNAPPI] pretty print tgen stats#21553
mssonicbld wants to merge 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/21500

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Summary: Pretty print tgen stats
Fixes # (issue)

Type of change

Old output

01/12/2025 12:45:10 traffic_generation.run_traffic L0673 INFO | Polling TGEN for in-flight traffic statistics...
01/12/2025 12:45:12 traffic_generation.run_traffic L0678 INFO | In-flight traffic statistics for flows: ['Test Flow 1 -> 0', 'Test Flow 2 -> 0', 'Background Flow 1 -> 0', 'Background Flow 2 -> 0']
01/12/2025 12:45:12 traffic_generation.run_traffic L0679 INFO | In-flight TX frames: [84570230, 84570229, 68054948, 68054950]
01/12/2025 12:45:12 traffic_generation.run_traffic L0680 INFO | In-flight RX frames: [72905510, 72905511, 68045129, 68045130]

New Ouptput

In-flight traffic statistics for flows: 
+----------------------------------+----------+----------+
| Flow | Tx | Rx |
|----------------------------------+----------+----------|
| Test Flow 1 -> 0 Rate:20 | 47691372 | 47683158 |
| Test Flow 2 -> 0 Rate:10 | 28004333 | 28004316 |
| 1 Background Flow 1 -> 0 Rate:20 | 56008665 | 51089091 |
| 2 Background Flow 2 -> 0 Rate:20 | 56008666 | 51089091 |
| 3 Background Flow 1 -> 0 Rate:20 | 56008664 | 51089091 |
| 4 Background Flow 2 -> 0 Rate:20 | 56008666 | 51089090 |
+----------------------------------+----------+----------+
  • 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
  • 202511

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #21500

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@vmittal-msft
Copy link
Copy Markdown
Contributor

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@vmittal-msft
Copy link
Copy Markdown
Contributor

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang sdszhang closed this Mar 21, 2026
@sdszhang sdszhang reopened this Mar 21, 2026
@sdszhang sdszhang requested a review from developfast as a code owner March 21, 2026 04:01
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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.

4 participants