Skip to content

[action] [PR:22132] [Scale|CRM] Optimize test runtime with adaptive polling#22384

Merged
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/22132
Feb 12, 2026
Merged

[action] [PR:22132] [Scale|CRM] Optimize test runtime with adaptive polling#22384
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/22132

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
Replace fixed sleeps with polling and reduce wait times:

  • Add polling helpers: wait_for_crm_counter_update(), wait_for_resource_stabilization()
  • Replace 50s resource waits with adaptive polling
  • Reduce config waits from 10s to 5s (CONFIG_UPDATE_TIME)
  • Reduce cleanup wait from 50s to 20s (SONIC_RES_CLEANUP_UPDATE_TIME)

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?

Runtime improvement

)

Summary:
Replace fixed sleeps with polling and reduce wait times:

Add polling helpers: wait_for_crm_counter_update(), wait_for_resource_stabilization()
Replace 50s resource waits with adaptive polling
Reduce config waits from 10s to 5s (CONFIG_UPDATE_TIME)
Reduce cleanup wait from 50s to 20s (SONIC_RES_CLEANUP_UPDATE_TIME)

Signed-off-by: AntonHryshchuk <antonh@nvidia.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #22132

@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 db4d0d4 into sonic-net:202511 Feb 12, 2026
17 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