Skip to content

Fix failing "build-test (windows-latest)" CI job: add cargo network retry#104

Merged
albertwoo merged 2 commits into
mainfrom
fix/resize-in-vt100
Jun 25, 2026
Merged

Fix failing "build-test (windows-latest)" CI job: add cargo network retry#104
albertwoo merged 2 commits into
mainfrom
fix/resize-in-vt100

Conversation

@albertwoo

@albertwoo albertwoo commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

The build-test (windows-latest) GitHub Actions job was failing due to a transient network error when Cargo tried to update the crates.io sparse registry index on a cold cache start.

Root Cause

When the Cargo registry cache is cold (cache miss), Cargo fetches index metadata for all packages referenced in Cargo.lock — including platform-specific transitive dependencies like wayland-backend (pulled in by the optional gpui crate). On Windows GitHub-hosted runners this registry download occasionally fails with a TCP connection reset ([56] Recv failure: Connection was reset), causing the entire job to exit with code 101.

Fix

Added [net] retry = 3 to .cargo/config.toml. This tells Cargo to automatically retry failed network operations up to 3 times before giving up, handling transient connectivity resets without any manual intervention.

Once a successful run populates the Windows Cargo registry cache, subsequent runs skip the registry download entirely and are unaffected by this class of failure.

Copilot AI changed the title safe_resize_handles_wide_glyph_at_new_right_edge Fix failing "build-test (windows-latest)" CI job: add cargo network retry Jun 25, 2026
@albertwoo albertwoo merged commit 4a9a19b into main Jun 25, 2026
3 checks passed
@albertwoo albertwoo deleted the fix/resize-in-vt100 branch June 25, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants