Skip to content

xim: add auto detect to match low latency url for mirror/res-server - #115

Merged
Sunrisepeak merged 3 commits into
mainfrom
issues_112
Aug 20, 2025
Merged

Sunrisepeak merged 3 commits into
mainfrom
issues_112

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member
  1. move res build to XPackage
  2. add low latency detect option for try_mirror_match_for_url
  3. download failed then retry by 'detect = true'

- #112

1. move res build to XPackage
2. add low latency detect option for try_mirror_match_for_url
3. download failed then retry by 'detect = true'

Signed-off-by: sunrisepeak <[email protected]>
Comment thread core/xim/pm/XPkgManager.lua Outdated

if not ok then -- retry download
cprint("[xlings:xim]: ${yellow}download failed, start to detect all mirror and retry...${clear}")
url = utils.try_mirror_match_for_url(res.url, { detect = true, retry = true })

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retry - delete

@Sunrisepeak
Sunrisepeak merged commit d65a3cb into main Aug 20, 2025
@Sunrisepeak
Sunrisepeak deleted the issues_112 branch August 20, 2025 08:39
Sunrisepeak added a commit that referenced this pull request Jun 5, 2026
….50) (#319)

* feat(0.4.50): macOS releases target 11.0 (static libc++ via mcpp 0.0.50)

macosx-arm64 releases carried minos=15.0 (runner SDK default) and
dynamically linked the system libc++, so they only ran on macOS 15.
With mcpp 0.0.50 as the build tool (static LLVM libc++ + lld + explicit
deployment target), setting MACOSX_DEPLOYMENT_TARGET=11.0 in the macos
release job produces a binary that runs on macOS 11.0+ (covers 14).
macos_release.sh now asserts minos + no-system-libc++ when the env is
set. Bump 0.4.50.

Evidence: mcpp-community/mcpp PR #115 (runs A-B5) + PR #116.
Design: .agents/docs/2026-06-05-macos-min-version-support.md
NOTE: requires XIM_PKGINDEX_REF bump to an index containing mcpp 0.0.50
(done in this branch once the index lands).

* feat: project-level macos_deployment_target + CI minos assertions

- mcpp.toml: [build] macos_deployment_target = "11.0" (mcpp 0.0.50+
  honors this natively; the env pin in CI/release remains as the second
  line of assurance and covers older bootstrap mcpp).
- ci-macos: assert the built binary's LC_BUILD_VERSION minos matches the
  pinned target; report static-vs-system libc++ (hard assertion once the
  bootstrap index ships mcpp 0.0.50).

* fix: macOS floor 11.0 -> 14.0 (official LLVM static archives' floor)

ld64.lld on mcpp CI: 'libc++.a(...o) has version 14.0.0, which is newer
than target minimum of 11.0.0' — the official LLVM-20.1.7-macOS-ARM64
static archives are built for macOS 14, so claiming an 11.0 floor would
be false. 14.0 still fully covers the original macOS 14 goal; 11-13
needs a custom libc++ build (tracked as follow-up).

* ci: bootstrap mcpp 0.0.50 (index ref bump) + hard static assertion

* ci: bootstrap mcpp 0.0.50 everywhere (.xlings.json workspace + all CI workflow pins)

The ci-macos static assertion failed because only release.yml had the
new index ref — ci workflows pin their own XIM_PKGINDEX_REF, and
.xlings.json additionally pins the mcpp workspace version (0.0.36).
All bumped to mcpp 0.0.50 / bootstrap xlings v0.4.49.

* fix: scrub injected runtime lib path in host-tool test fixtures; assert newest binary

- tests/unit Extract fixtures: mcpp 0.0.47+ exports the target
  toolchain's runtime dirs into LD_LIBRARY_PATH for test processes;
  host tar/zip/python then load the sandbox glibc and crash. Wrap
  fixture commands with SHELL=/bin/bash
COREPACK_ENABLE_AUTO_PIN=0
SESSION_MANAGER=local/speak-pc:@/tmp/.ICE-unix/5162,unix/speak-pc:/tmp/.ICE-unix/5162
QT_ACCESSIBILITY=1
NVM_RC_VERSION=
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
no_proxy=localhost,127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,172.29.0.0/16,::1
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
rvm_prefix=/home/speak
AI_AGENT=claude-code_2-1-162_agent
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
LANGUAGE=en_US:en
CLAUDE_CODE_SESSION_ID=1d9260d3-95e0-4bf3-9f41-e98b2468cf60
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
LC_ADDRESS=en_US.UTF-8
GNOME_SHELL_SESSION_MODE=ubuntu
LC_NAME=en_US.UTF-8
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
CLAUDE_EFFORT=high
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
MY_RUBY_HOME=/home/speak/.rvm/rubies/ruby-3.1.0
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
LC_MONETARY=en_US.UTF-8
GTK_MODULES=gail:atk-bridge
RUBY_VERSION=ruby-3.1.0
PWD=/home/speak/workspace/github/openxlings/xlings
NIX_PROFILES=/nix/var/nix/profiles/default /home/speak/.nix-profile
XDG_SESSION_DESKTOP=ubuntu
LOGNAME=speak
XDG_SESSION_TYPE=x11
rvm_version=1.29.12 (latest)
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
SYSTEMD_EXEC_PID=5316
TMPPREFIX=/tmp/claude-1000/zsh
XAUTHORITY=/run/user/1000/gdm/Xauthority
NoDefaultCurrentDirectoryInExePath=1
CLAUDECODE=1
WINDOWPATH=2
HOME=/home/speak
USERNAME=speak
IM_CONFIG_PHASE=1
LC_PAPER=en_US.UTF-8
LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=ubuntu:GNOME
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/org.gnome.SettingsDaemon.MediaKeys.service/memory.pressure
VTE_VERSION=7600
NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
XLINGS_BIN=/home/speak/.xlings/subos/current/bin
TMPDIR=/tmp/claude-1000
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/fac158cf_071d_4626_9471_cfebb42239b0
XLINGS_HOME=/home/speak/.xlings
https_proxy=http://127.0.0.1:7897/
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/home/speak/.cache/dotnet_bundle_extract
NVM_DIR=/home/speak/.nvm
rvm_bin_path=/home/speak/.rvm/bin
GEM_PATH=/home/speak/.rvm/gems/ruby-3.1.0:/home/speak/.rvm/gems/ruby-3.1.0@global
GEM_HOME=/home/speak/.rvm/gems/ruby-3.1.0
XDG_SESSION_CLASS=user
TERM=xterm-256color
LC_IDENTIFICATION=en_US.UTF-8
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
USER=speak
NO_PROXY=localhost,127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,172.29.0.0/16,::1
GNOME_TERMINAL_SERVICE=:1.111
CLAUDE_CODE_TMPDIR=/tmp/claude-1000
DISPLAY=:1
SHLVL=1
NVM_CD_FLAGS=
GSM_SKIP_SSH_AGENT_WORKAROUND=true
GIT_EDITOR=true
LC_TELEPHONE=en_US.UTF-8
HTTPS_PROXY=http://127.0.0.1:7897/
HTTP_PROXY=http://127.0.0.1:7897/
QT_IM_MODULE=ibus
LC_MEASUREMENT=en_US.UTF-8
PAPERSIZE=letter
http_proxy=http://127.0.0.1:7897/
XDG_RUNTIME_DIR=/run/user/1000
CLAUDE_CODE_ENTRYPOINT=cli
ALL_PROXY=socks://127.0.0.1:7897/
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
LC_TIME=en_US.UTF-8
LC_ALL=en_US.UTF-8
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
CLAUDE_CODE_EXECPATH=/home/speak/.local/share/claude/versions/2.1.162
all_proxy=socks://127.0.0.1:7897/
PATH=/home/speak/.xlings/subos/current/bin:/home/speak/.xlings/bin:/nix/var/nix/profiles/default/bin:/home/speak/.opencode/bin:/home/speak/.moon/bin:/home/speak/.rvm/gems/ruby-3.1.0/bin:/home/speak/.rvm/gems/ruby-3.1.0@global/bin:/home/speak/.rvm/rubies/ruby-3.1.0/bin:/home/speak/.local/bin:/home/speak/workspace/github/d2learn/xlings/build/xlings/data/xim/runtimedir/node-v22.12.0-linux-x64/bin:/home/speak/.cargo/bin:/home/speak/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/speak/.dotnet/tools:/home/speak/.rvm/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/claude-md-management/1.0.0/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/superpowers/5.1.0/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/code-review/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/skill-creator/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/rust-analyzer-lsp/1.0.0/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/frontend-design/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/feature-dev/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/github/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/code-simplifier/1.0.0/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/context7/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/commit-commands/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/agent-sdk-dev/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/chrome-devtools-mcp/1.1.1/bin
GDMSESSION=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
IRBRC=/home/speak/.rvm/rubies/ruby-3.1.0/.irbrc
rvm_path=/home/speak/.rvm
LC_NUMERIC=en_US.UTF-8
OLDPWD=/home/speak/workspace/github/mcpp-community/mcpp
_=/usr/bin/env (POSIX only).
- ci-macos assertion: pick the newest xlings binary across fingerprint
  dirs (+ print all candidates for diagnosis).

* ci: fix unbalanced quotes in macos assertion echo lines

The assertion itself passed in R3 (single candidate, minos 14.0, only
libSystem in deps — static libc++ confirmed); the step failed on a
shell EOF from quote typos in the diagnostic echos.
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