Skip to content

Handle stale transient FEC errors in test_verify_fec_stats_counters#22733

Open
kewei-arista wants to merge 2 commits intosonic-net:masterfrom
kewei-arista:pr-sonic.8
Open

Handle stale transient FEC errors in test_verify_fec_stats_counters#22733
kewei-arista wants to merge 2 commits intosonic-net:masterfrom
kewei-arista:pr-sonic.8

Conversation

@kewei-arista
Copy link
Contributor

Description of PR

test_verify_fec_stats_counters has a similar issue as test_verify_fec_histogram that has been fixed in #21685, where it may fail for a stable link that has stale transient FEC errors.

This change follows the same approach as #21685 to fix the issue for test_verify_fec_stats_counters by polling FEC counters for an interface for a longer time to determine whether the link has been stable, and not fail the test for a stable link with stale transient FEC errors.

This change also optimizes the code path to poll FEC counters so we only need to do it once for both test_verify_fec_stats_counters and test_verify_fec_histogram, so this can save the polling time and speed up the whole test.

This change also addresses the #21685 (comment) so the polling time is now test attribute driven.

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?

Improve the pass rate by handling these corner cases

How did you do it?

Wait for enough long time to make sure the links are actually stable

How did you verify/test it?

Confirmed the test now can pass with a stable link but transient FEC symbol errors

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants