Repository navigation
WIP: feat(packaging): ARM64 package classification batch — classifier + index snapshot (Refs #1127) - #1464
Merged
Conversation
…ll wpm-index snapshot (Refs #1127)
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.
Refs #1127 (P5, ARM64 package classification batch). Data/packaging only — no C++ changes, nothing user-visible, no i18n surface.
What this is
The P5 cascade (native → wpm-artifacts → x64-emulation marking) spans three repos; until now only tier 1 existed (wpm-source
add-arm64.pyfillswindows-arm64from upstream releases). This PR is the WinuxCmd-side half: the complete classification as data + the batch that applies it.scripts/classify-arm64.py— classifies every package of a wpm-sourceindex.json; default read-only (summary + classification JSON).--applystamps the package-level markerarm64_emulation: trueon x64-only packages and removes stale markers from packages that gained a native artifact. Write conventions mirror wpm-source's add-arm64.py (indent 2, LF, trailing blank line); idempotent.packaging/arm64-classification.json— the batch's output on the live index (official-2026.10.28, 282 packages), byte-identical to a fresh run.Classification result
windows-arm64artifact incl. winuxcmd itself;gitviaalias_of: niugit)wpm-artifacts: 26 (5 already self-hosted: awk/gawk/ncat/openssl/rust + 21 non-GitHub-release sources the fill pass cannot resolve); routeupstream: 140 (pinned release ships no Windows arm64 asset)Marker rationale:
arm64_emulationis the one fact not derivable fromartifacts(an x64-only entry may be sanctioned-emulated or merely unclassified), so it is the only thing stamped. Client contract: ARM64 host + nowindows-arm64+ marker → install x64 artifact and report it as emulated; no marker → today's metadata-only behaviour.Key finding for the follow-up
The client currently has no fallback:
artifact_for_current_arch(src/commands/wpm.cpp:2404) returns nothing for x64-only packages on ARM64 hosts, so 166 packages are uninstallable there today. Consuming the marker in wpm.cpp (fallback + emulated reporting in install/list/--json, i18n companion) is the specified follow-up — it needs the MSVC build + Windows ARM64 verification, so it is deliberately not in this PR.Verification (local, Python-only)
py_compile clean; counts cross-checked against an independent pass over the same index;
--applyon a scratch index changed exactly 166 packages, every diff the single added key, top level untouched, 0 CR; second--applyno-op; planted stale marker on a native package removed; classification output byte-deterministic.Full analysis + the precise remaining work for wpm-source (schema doc + apply), wpm-artifacts (26-package route queue,
-win-arm64.zipconvention) and the client follow-up: cluster REPORT.md (workdir, available on request) — happy to paste it into the issue if preferred.