Skip to content

[action] [PR:23130] Loganalyzer ignore tam st stats#23140

Merged
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/23130
Mar 19, 2026
Merged

[action] [PR:23130] Loganalyzer ignore tam st stats#23140
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/23130

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Some older platforms like Broadcom TH2/TD3 do not
support TAM (Telemetry and Monitoring) ST (Stream Telemetry) Stats capabilities.
When the function sai_query_stats_st_capability is called on these platforms,
it returns SAI_STATUS_NOT_SUPPORTED (error -2).
This error is expected behavior on platforms without TAM ST
support and should not cause test failures. This patch adds
the error to the loganalyzer ignore list to prevent false
test failures.

Summary:
Fixes #22893

Type of change

  • 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?

During test execution on platforms that don't support TAM (Telemetry and Monitoring) ST (Stream Telemetry) Stats capabilities, the loganalyzer detects the following error message and causes tests to fail:
ERR syncd#syncd: [none] SAI_API_SWITCH:sai_query_stats_st_capability: Get TAM ST Stats capabilities failed with error -2
This error is expected behavior on platforms without TAM ST support. The SAI layer queries for TAM ST Stats capabilities, and unsupported platforms correctly return SAI_STATUS_NOT_SUPPORTED (error -2).
However, loganalyzer currently treats this as a test failure, resulting in false positives.

How did you do it?

Added a new ignore pattern to ansible/roles/test/files/tools/loganalyzer/loganalyzer_common_ignore.txt at line 38:
r, ".* ERR syncd#syncd: [none] SAI_API_SWITCH:sai_query_stats_st_capability:\d+ Get TAM ST Stats capabilities failed with error -2.*"

How did you verify/test it?

pfcwd/test_pfcwd_cli.py::test_pfcwd_show_stat[IPv6-ld301] ERROR
pfcwd/test_pfcwd_cli.py::test_pfcwd_show_stat[IPv4-ld301] ERROR
Result: 2 passed, 2 errors in 2859.92s
With fix:

All tests pass without loganalyzer errors
Result: 2 passed, 0 errors in 2686.99s

Any platform specific information?

None

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

N/A

Documentation

N/A

Some platforms do not support TAM (Telemetry and Monitoring)
  ST (Stream Telemetry) Stats capabilities. When the function
  sai_query_stats_st_capability is called on these platforms,
  it returns SAI_STATUS_NOT_SUPPORTED (error -2).

  This error is expected behavior on platforms without TAM ST
  support and should not cause test failures. This patch adds
  the error to the loganalyzer ignore list to prevent false
  test failures.

Signed-off-by: Pratik Dam <pdam@arista.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #23130

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit efa1d3f into sonic-net:202511 Mar 19, 2026
16 checks passed
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.

2 participants