Python: bump misc-integration retry delay to 30s#5293
Merged
moonbox3 merged 1 commit intomicrosoft:mainfrom Apr 16, 2026
Merged
Python: bump misc-integration retry delay to 30s#5293moonbox3 merged 1 commit intomicrosoft:mainfrom
moonbox3 merged 1 commit intomicrosoft:mainfrom
Conversation
The misc-integration job (Anthropic, Ollama, MCP) frequently fails on merge to main when the upstream MCP server (e.g. learn.microsoft.com/api/mcp) returns a transient rate-limit error. The previous 5s retry delay is too short to ride out the upstream backoff window, so all retries fail and the merge queue is blocked. Bumping to 30s gives the upstream a chance to recover before pytest-retry re-runs the test.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts GitHub Actions workflow configuration to reduce flakiness in the Python “misc integration” lane (Anthropic/Ollama/MCP) by increasing the delay between pytest-retry attempts, helping transient upstream rate limits/backoff windows clear before reruns.
Changes:
- Increase
pytestretry delay from 5s to 30s for the misc-integration job inpython-merge-tests.yml. - Increase
pytestretry delay from 5s to 30s for the misc-integration job inpython-integration-tests.yml.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/python-merge-tests.yml | Bumps --retry-delay to 30s for misc integration tests to reduce merge-queue failures due to transient upstream rate limits. |
| .github/workflows/python-integration-tests.yml | Applies the same 30s retry delay adjustment to the misc integration job in the integration workflow. |
TaoChenOSU
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The misc-integration job (Anthropic, Ollama, MCP) frequently fails on merge to main when the upstream MCP server (e.g.
learn.microsoft.com/api/mcp) returns a transient rate-limit error surfaced by Anthropic as a 400. The previous 5s--retry-delayis too short to ride out the upstream backoff window, so allpytest-retryattempts fail in quick succession and block the merge queue.Bumping the misc-integration retry delay to 30s gives the upstream a chance to recover before re-running. Scoped to the misc-integration job in both
python-merge-tests.ymlandpython-integration-tests.yml; other integration lanes are unchanged.