Repository navigation
fix: share Pier provider proxy across concurrent attempts - #1502
Merged
Merged
Conversation
2 tasks
Astro-Han
marked this pull request as ready for review
July 26, 2026 10:23
This was referenced Jul 26, 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.
Summary
Pier's offline task containers can reach the host provider proxy only through Squid-safe ports 80/443. The previous per-attempt listener therefore serialized every attempt sharing port 443, preventing the DeepSWE harness from running four task pairs with both arms in parallel.
This change gives each Pier benchmark run one fixed-port provider proxy hub. Every attempt receives an independent token-routed lease with its own upstream credential resolver, usage and telemetry accumulators, and abort lifecycle. The benchmark runner shares the hub across both arms and closes it at run completion. Direct runner callers that do not provide a hub keep the existing fixed-port serialization fallback.
The hub also preserves each provider's upstream base path from #1499 while sharing only the listener authority, so a lease token remains scoped to its own provider mount.
Verification
node --test packages/headless/dist/__tests__/provider-auth-proxy.test.js packages/headless/dist/__tests__/pier-task-runner.test.js— 71 passednpm --workspace @maka/headless test— 1346 passednpm run buildnpm run typechecknpm run lintnpm run format:checkgit diff --checkNo real-provider benchmark was run while developing this change.
Remaining evidence
pairConcurrency=4andarmExecution=parallel(up to 8 concurrent cells), then attach the manifest, attempt journal, results, provider telemetry, and cost attribution.Review focus