Repository navigation
Retry transient bridge polling errors in IssueLens action - #70
Merged
Changyong Gong (chagong) merged 1 commit intoNov 26, 2026
Merged
Conversation
Use a 60s timeout for non-retried bridge job submission POSTs while retrying transient transport and HTTP 408/429/5xx errors during bridge status polling and OIDC token refresh within the 35-minute wait budget. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
The review reports no active issues with the bridge timeout and retry changes.
No open issues 🎉
What changed in this PR
Improves the IssueLens action’s resilience to transient bridge cold-start failures while preserving single-attempt job submission to avoid duplicate work.
Changes:
- Increases the submission timeout to 60 seconds without retrying POST requests.
- Retries transient status-poll and OIDC-refresh failures within the existing polling budget, while keeping permanent errors fail-fast and diagnostics secret-safe.
- Adds regression tests and documents timeout and retry behavior.
| File | Description |
|---|---|
tests/test_automation_bridge.py |
Tests timeouts, retries, permanent failures, secret-safe diagnostics, and polling expiry. |
.github/actions/issuelens/README.md |
Documents submission timeouts and polling retry behavior. |
.github/actions/issuelens/issuelens_action.py |
Implements timeout settings, transient retries, and sanitized error handling. |
Review effort: Balanced
Changyong Gong (chagong)
deleted the
chagong-issuelens-workflow-migration
branch
November 26, 2026 02:42
Changyong Gong (chagong)
added a commit
to microsoft/vscode-java-pack
that referenced
this pull request
Nov 26, 2026
Update microsoft/IssueLens/.github/actions/issuelens to 61a9e9a5ff2f9514a3bdd351a0721235cd0a2813 following the squash merge of microsoft/IssueLens#70. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Changyong Gong (chagong)
added a commit
to microsoft/vscode-java-pack
that referenced
this pull request
Nov 26, 2026
* Bump IssueLens action to retry transient bridge poll errors Update microsoft/IssueLens/.github/actions/issuelens from b88dadd40754d640cbb82f4d9a5e9d36e8386981 to 0309138f6af11e26b0c6edf4155b53a22bdb2b11 (microsoft/IssueLens#70) in issueLens-run.yml and team-memory-coordinator.yml to adopt cold-start submit headroom and transient status-poll/OIDC-refresh retries. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Refresh IssueLens action pin to merged main commit Update microsoft/IssueLens/.github/actions/issuelens to 61a9e9a5ff2f9514a3bdd351a0721235cd0a2813 following the squash merge of microsoft/IssueLens#70. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
0309138f6af11e26b0c6edf4155b53a22bdb2b11↓ PR CI checks and a live workflow run against a cold-starting Flex Consumption ingress instance are still pending.
01:28:26.385Zto01:28:56.385Z) while Flex Consumption scaled out 5 cold ingress instances, and the worker/Foundry run completed HTTP 200 in 23.2s.TimeoutErrorinsidesubmit_bridge()status polling directly hit the outer catch inmain()that emittedAgent submission failed or its outcome is unknown; inspect the target before retryingat01:28:56.543Z.Summary
Fixes transient client-side bridge polling timeouts in
.github/actions/issuelensobserved during Flex Consumption ingress cold starts (for example,microsoft/vscode-java-packtriage run45735931660, where status poll #2 exceeded 30s whileissuelens-bridge-ingressscaled out cold instances even though the worker and Foundry invocation completed cleanly).Changes
POST /api/issuelens/v1/jobsclient timeout from30sto60s(BRIDGE_SUBMIT_TIMEOUT_SECONDS) for cold-start headroom while keeping job submission strictly single-attempt (never auto-retried).OSError,http.client.HTTPException) and retryable HTTP statuses (408,429,5xx) onGET /api/issuelens/v1/jobs/{job_id}polls and 120-second OIDC token refreshes within the existing 35-minuteBRIDGE_WAIT_SECONDSdeadline, logging secret-safe retry notices.4xxpoll/refresh errors (401,403,404) non-retryable with sanitizedValueErrordiagnostics that never echo bearer/OIDC tokens or raw exception strings.tests/test_automation_bridge.py(BridgeActionTests) and document the timeout/retry behavior in.github/actions/issuelens/README.md.Validation
py -m compileall -q .github/actions/issuelens/issuelens_action.py tests/test_automation_bridge.pypy -m unittest discover -s tests -p "test_*.py"(focused bridge, action, stream output, triage workflow, and team-memory suites — 197 tests passing)git diff --check