Skip to content

feat: select fastest install mirrors - #9

Merged
njzjz merged 2 commits into
deepmodeling-activity:masterfrom
njzjz-bot:feat/auto-fastest-channel
Jun 7, 2026
Merged

feat: select fastest install mirrors#9
njzjz merged 2 commits into
deepmodeling-activity:masterfrom
njzjz-bot:feat/auto-fastest-channel

Conversation

@njzjz-bot

Copy link
Copy Markdown
Contributor

Problem

  • dp1s currently picks conda/pixi mirrors only from coarse location detection.
  • Users in China or behind unusual networks can still hit a slow or unavailable endpoint.

Change

  • Add lightweight parallel benchmarking for conda channel mirrors and pixi repository mirrors.
  • Cache the selected mirror for 24 hours, with fallbacks that preserve the existing CN/non-CN behavior.
  • Add environment overrides for disabling auto-selection, customizing mirror candidates, and forcing conda/pixi endpoints.
  • Cover the new selection logic with a mocked GitHub Actions test and document the new options.

Notes

  • The existing channel-argument tests explicitly set DP1S_CHANNEL_AUTO=0 to keep their original fallback expectations deterministic.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)

@njzjz-bot
njzjz-bot force-pushed the feat/auto-fastest-channel branch 9 times, most recently from 51272cf to 958a9c5 Compare June 7, 2026 11:00
Benchmark conda channel and pixi repository mirrors before installation so dp1s can choose a fast available endpoint while keeping environment-variable overrides and cached choices.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
@njzjz-bot
njzjz-bot force-pushed the feat/auto-fastest-channel branch from 958a9c5 to c7c0321 Compare June 7, 2026 11:07
@njzjz
njzjz merged commit 9635cd1 into deepmodeling-activity:master Jun 7, 2026
1 check passed
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