microsoft / microsoft/mcp

Should long-running operations (LROs) have a common poll interval configuration?

Open
#1,426 2 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement test issue
Dominant language
C#
Stars
3.7k
Forks
624
Avg merge
2d 20h
Merged PRs (30d)
220

Description

While working on Test Proxy playback and record migration it was found that tests that call into long-running operations (LROs) aren't seeing much benefit using playback instead of live testing as the polling interval is statically configured (not by MCP code but we leverage default code paths which use a default polling interval).

We should investigate whether LRO polling interval should be hoisted to the common configurations like retry configurations, subscription ID, and more. With this both our testing and customers can decide their polling interval if needed rather than relying on the default provided.

Or, at least, we should look into a way for tests to smuggle in a polling interval during playback testing so a test with 30 10 second polls doesn't take 300 seconds waiting on nothing and instead could reduce the overall runtime to a few seconds, given playback polling isn't waiting for a server change to complete.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.