Skip to content

ci(agent): retry multi-pwsh install in the Linux agent image - #2157

Open
Benoît Cortier (CBenoit) wants to merge 1 commit into
masterfrom
claude/beautiful-babbage-wdfmc9
Open

Benoît Cortier (CBenoit) wants to merge 1 commit into
masterfrom
claude/beautiful-babbage-wdfmc9

Conversation

@CBenoit

Copy link
Copy Markdown
Member

Problem

cli::agent::tunnel::docker_isolates_real_agent_dns_and_ip_routes (testsuite/tests/cli/agent/tunnel.rs) builds package/AgentLinux/Dockerfile.
Twice on 2026-10-19 (runs 39303102019 and 39307509666, both on docs-only commits) the build failed in the multi-pwsh install step:

error: http error: https://api.github.com/repos/PowerShell/PowerShell/releases?per_page=100&page=1: status code 403

multi-pwsh lists PowerShell releases through the unauthenticated GitHub API.
Shared runner addresses are rate limited, so the call fails intermittently regardless of the commit under test.

Change

Retry multi-pwsh install up to four times, waiting 15, 30 and 45 seconds between attempts.
A persistent failure still fails the image build.

Verification

The retry loop was checked in isolation with a stub that fails twice then succeeds (completes after two retries) and one that always fails (exits 1).
The image build and the end-to-end test were not run locally.
The 403 depends on the runner's rate-limit state and cannot be reproduced on demand.


Generated by Claude Code

multi-pwsh lists PowerShell releases through the unauthenticated GitHub
API, which answers 403 when the runner's shared address is rate limited.
The agent tunnel end-to-end test builds this image, so a transient 403
failed the whole CI run. Retry the install with a growing delay; a
persistent failure still fails the build.

Changelog: ignore

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018j3CKThrR2YAPG8LgRPVhG

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants