Skip to content

fix: retry HTTP request in clone bench for pasta networking readiness#538

Closed
claude-claude[bot] wants to merge 1 commit intorouted-mode-fixesfrom
claude/fix-22564014039
Closed

fix: retry HTTP request in clone bench for pasta networking readiness#538
claude-claude[bot] wants to merge 1 commit intorouted-mode-fixesfrom
claude/fix-22564014039

Conversation

@claude-claude
Copy link
Copy Markdown
Contributor

@claude-claude claude-claude bot commented Mar 2, 2026

CI Fix

Fixes CI #22563426195

Problem

The clone.rs benchmark's clone_http() method made a single HTTP request immediately after snapshot restore, but pasta networking needs a moment after clone restore to establish L4 translation. This caused empty HTTP responses and panics in the clone/http/nginx test on both x64 and arm64 CI (Host-Root-x64-SnapshotEnabled and Host-Root-arm64-SnapshotEnabled).

The error was:

thread 'main' panicked at benches/clone.rs:288:13:
unexpected HTTP response: 

Solution

Applied the same retry logic already present in exec.rs's clone_http() method: retry HTTP requests up to 10 times with 500ms delays to allow pasta networking to establish L4 translation after clone restore. This is not a timeout increase — it handles a known race condition where the pasta networking layer isn't immediately ready after snapshot restore.

The exec.rs benchmark already had this fix with the comment:

// Make HTTP request to nginx (retry briefly — pasta networking may need
// a moment after clone restore to establish L4 translation)

Root Cause

The clone.rs and exec.rs benchmarks both have a CloneFixture with a clone_http() method, but they were not kept in sync. When exec.rs was updated with retry logic for the pasta networking race, clone.rs was not updated.


Generated by Claude | Fix Run

The clone.rs benchmark's clone_http() method made a single HTTP request
immediately after snapshot restore, but pasta networking may need a
moment to establish L4 translation after clone restore. This caused
empty responses and panics on both x64 and arm64 CI.

The exec.rs benchmark already had the correct retry logic (10 attempts
with 500ms delays). Apply the same pattern to clone.rs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ejc3
Copy link
Copy Markdown
Owner

ejc3 commented Mar 2, 2026

Superseded by fixes in #536

@ejc3 ejc3 closed this Mar 2, 2026
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.

1 participant