From 81158342b66cd6dc997a8337fd1a405de38cfb57 Mon Sep 17 00:00:00 2001 From: Sunrisepeak Date: Sat, 17 Oct 2026 10:11:31 +0900 Subject: [PATCH 1/3] probe: upgrade from 2026.10.11.1 to 2026.10.16.3 (revision reinstall, orphan records) Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com> --- .github/probe/upgrade.sh | 188 ++++ .github/workflows/aur-publish.yml | 163 --- .github/workflows/bootstrap-macos.yml | 154 --- .github/workflows/build.yml | 126 --- .../workflows/ci-aarch64-fresh-install.yml | 402 -------- .github/workflows/ci-arm64-published-cn.yml | 127 --- .github/workflows/ci-bootstrap.yml | 143 --- .github/workflows/ci-fresh-install.yml | 796 --------------- .github/workflows/ci-linux-e2e.yml | 538 ---------- .github/workflows/ci-linux.yml | 425 -------- .github/workflows/ci-macos-e2e.yml | 132 --- .github/workflows/ci-macos-ios.yml | 378 ------- .github/workflows/ci-macos.yml | 470 --------- .github/workflows/ci-target-matrix.yml | 501 --------- .github/workflows/ci-windows-e2e.yml | 136 --- .github/workflows/ci-windows-msvc-xlings.yml | 94 -- .github/workflows/ci-windows.yml | 486 --------- .github/workflows/ci.yml | 277 ----- .github/workflows/cross-build-test.yml | 574 ----------- .github/workflows/homebrew-publish.yml | 83 -- .../workflows/measure-windows-tool-crt.yml | 247 ----- .github/workflows/openkal-cross.yml | 861 ---------------- .github/workflows/probe-upgrade.yml | 37 + .github/workflows/pypi-publish.yml | 200 ---- .github/workflows/release-canaries.yml | 101 -- .github/workflows/release.yml | 961 ------------------ 26 files changed, 225 insertions(+), 8375 deletions(-) create mode 100644 .github/probe/upgrade.sh delete mode 100644 .github/workflows/aur-publish.yml delete mode 100644 .github/workflows/bootstrap-macos.yml delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/ci-aarch64-fresh-install.yml delete mode 100644 .github/workflows/ci-arm64-published-cn.yml delete mode 100644 .github/workflows/ci-bootstrap.yml delete mode 100644 .github/workflows/ci-fresh-install.yml delete mode 100644 .github/workflows/ci-linux-e2e.yml delete mode 100644 .github/workflows/ci-linux.yml delete mode 100644 .github/workflows/ci-macos-e2e.yml delete mode 100644 .github/workflows/ci-macos-ios.yml delete mode 100644 .github/workflows/ci-macos.yml delete mode 100644 .github/workflows/ci-target-matrix.yml delete mode 100644 .github/workflows/ci-windows-e2e.yml delete mode 100644 .github/workflows/ci-windows-msvc-xlings.yml delete mode 100644 .github/workflows/ci-windows.yml delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/cross-build-test.yml delete mode 100644 .github/workflows/homebrew-publish.yml delete mode 100644 .github/workflows/measure-windows-tool-crt.yml delete mode 100644 .github/workflows/openkal-cross.yml create mode 100644 .github/workflows/probe-upgrade.yml delete mode 100644 .github/workflows/pypi-publish.yml delete mode 100644 .github/workflows/release-canaries.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/probe/upgrade.sh b/.github/probe/upgrade.sh new file mode 100644 index 000000000..41e55042d --- /dev/null +++ b/.github/probe/upgrade.sh @@ -0,0 +1,188 @@ +#!/usr/bin/env bash +# TEMPORARY probe (do not merge). Prints, never asserts. +# +# Measures what a user sees when they upgrade from the previous release +# (2026.10.11.1, bundled xlings 2026.10.10.2) to the current one +# (2026.10.16.3, bundled xlings 2026.10.16.2) on a home the previous release +# made, and then run `mcpp new && mcpp run`. +# +# variant: +# plain the previous release installs from today's index; nothing altered +# snapshot the previous release installs from the xim index as of +# 2026-10-07 (xim-pkgindex ebf1fbb, before llvm revision 1 and +# gcc 16.1.0-r1): payloads genuinely of the old revision +# stamp like plain, then every payload stamp records a revision other +# than its recipe's (the mechanism, on every platform) +# orphan like stamp, then the version DB loses c++@ while +# the workspace keeps it active (the shape of the reported home) +set -u +VARIANT="${1:-plain}" +OLD_VER=2026.10.11.1 +NEW_VER=2026.10.16.3 +SNAPSHOT=ebf1fbb3417ec513b923279044433887b3af8850 + +W="${RUNNER_TEMP:-/tmp}/upg" +rm -rf "$W"; mkdir -p "$W" +export MCPP_HOME="$W/home" +REG="$MCPP_HOME/registry" +PY=$(command -v python3 || command -v python) + +case "$(uname -s)-$(uname -m)" in + Linux-x86_64) PLAT=linux-x86_64; EXT=tar.gz; EXE= ;; + Linux-aarch64) PLAT=linux-aarch64; EXT=tar.gz; EXE= ;; + Darwin-arm64) PLAT=macosx-arm64; EXT=tar.gz; EXE= ;; + MINGW*|MSYS*) PLAT=windows-x86_64; EXT=zip; EXE=.exe ;; + *) echo "unknown platform $(uname -a)"; exit 0 ;; +esac +IS_LINUX=0; [[ $PLAT == linux-* ]] && IS_LINUX=1 + +section() { echo; echo "================ [$(date -u +%H:%M:%S)] $* ================"; } + +fetch_release() { # ver dest + local ver=$1 dest=$2 name="mcpp-$1-$PLAT.$EXT" + curl -fsSL -o "$W/$name" "https://github.com/mcpp-community/mcpp/releases/download/v$ver/$name" || { echo "download $name failed"; return 1; } + mkdir -p "$W/x-$ver" + if [[ $EXT == zip ]]; then + "$PY" -c "import zipfile,sys; zipfile.ZipFile(sys.argv[1]).extractall(sys.argv[2])" "$W/$name" "$W/x-$ver" + else + tar xzf "$W/$name" -C "$W/x-$ver" + fi + mv "$W/x-$ver"/mcpp-$ver-$PLAT "$dest" + chmod +x "$dest/bin/mcpp$EXE" "$dest/registry/bin/xlings$EXE" 2>/dev/null || true +} + +# run