Repository navigation
Conversation
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
huangruiteng
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 完整拆包安装无法通过指南指定的深度核验。
动机 / Motivation
要在保持原 SQLite 工作可回退的前提下试用拆分预发布的 pipx 用户。 既有安装指南没有跨布局的隔离试用流程;迁移契约要求新执行者先通过安装和身份检查。 指南加入备用环境和原宿主对账。它指定的深度 Doctor 会在当前源构建的完整 split 包组上把 Core 当成旧完整包检查。 pipx 1.12 的 pip 和 uv 后端分别装同一份由当前受审源码构建、同版本的 meta、Core 和六个伴随包,再运行文档原命令。 本提案是 pipx 拆分预发布的用户操作指南,涉及安装、交接前核验和恢复。
改动思路 / Approach
复用现有 pipx launcher、Core distribution 所有权与安装 Doctor。本提案是 pipx 拆分预发布的用户操作指南,涉及安装、交接前核验和恢复。 将指南绑定到已经核验且能识别 Core 所有权的具体拆分版本或明确的先决修复,并按指南逐条重跑深度 Doctor、原状态读回和卸载。 只在确认匹配包及其公开操作入口通过安装核验后切换;原运行回执由既有 owner 保持。
具体改动 / Changes
- 安装命令 在两种真实 pipx 后端都创建预发布环境并暴露独立名字。安装清单核实 meta、Core 与所有六个伴随包都属于同一版本。
- 交接前检查 用这个新 launcher 执行当前深度 Doctor。识别退回到旧完整包,要求缺少的 loopx.cli 和 scripts/loopx,因而在指南的下一步之前退出失败。
- 回退流程 在本地对照中保留原入口和同一个 SQLite Todo,移除试用环境后仍有原记录。
基线 dc0505e 的 受控迁移与回退 对应 隔离安装后能完成核验 和 可回读原记录并回退。前者在当前匹配构建上还有明确的失败,后者的基础读回通过。
对主干的风险 / Risks
实际 pipx 两种后端都装齐 8 个同版发行件。说明中的深度 Doctor 均退出 1,失败检查为 representative_cli_imports 和 representative_package_paths,要求 split Core 未提供的旧完整包路径。 两种后端都生成独立 launcher,读同一 SQLite Todo,卸载后原 launcher 和原记录可读。 本地 quick premerge 的 4 项直接与 4 项选定检查通过。文档命令和结构化失败在实际 pipx 安装中单独观察。 验证使用当前提交构建的合成预发布版本和离线包索引。作者的已发布候选具体引用和运行时修订未随本指南给出,端到端实际新宿主接管未重做。 当前主干 ca020c4 的三方组合干净。PyPI 发行记录 的常规 2.4.1 是不同的发行形状。
我的整体评价 / Verdict
要求修改。 将指南绑定到已经核验且能识别 Core 所有权的具体拆分版本或明确的先决修复,并按指南逐条重跑深度 Doctor、原状态读回和卸载。 保留彼此隔离的 launcher 和核对原记录的流程,使用户在切换前能够识别通过核验的发行。
英文简短结论
English verdict: REQUEST_CHANGES at 39d1dd4. Both real pipx backends install all eight matching wheels and preserve rollback, but the documented deep Doctor command exits 1 before cutover. Bind the guide to a split build that passes the stated verification.
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
…concile-10030-pipx-guide-current-main-20261204 Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-astra · OpenAI · runtime_reported · high
动机 / Motivation
正通过 pipx 使用单体发行包、准备试用拆包预发布版本的用户。 旧版指南没有标明 Doctor 需要理解拆包归属。此前在八个版本匹配的包上运行深度检查时,有两项归属检查失败,用户无法进入切换步骤。 指南要求选择已发布且包含 #9646 修复的版本,锁定版本并选用空闲后缀。只有深度检查通过且原执行者完成对账,用户才切换入口。 用符合先决条件的同版本包建立独立环境,读取原 Todo 和已提交的回执,最后移除带后缀的环境。 相对 PR 基点只修改一份双语安装指南(+44 行),变更范围是 pipx 拆包试用和回退。
改动思路 / Approach
规范依据为 docs/architecture/rfcs/monorepo-distribution-split-v0.md 的迁移与回退条款(基点 0e784d7)。安装器、运行目录和回执已有各自的实现。把前置条件写在用户执行命令的位置即可,无需增加迁移命令。 相对 PR 基点只修改一份双语安装指南(+44 行),变更范围是 pipx 拆包试用和回退。 保留安装命令旁的版本和 Doctor 前提,并由旧版更新章节直接链接新流程。
具体改动 / Changes
版本选择 明确把归属修复列为先决条件。安装示例 使用独立后缀,同时让 pipx 暴露由 Core 提供的应用。两个并排入口允许用户先检查候选环境,再读取原记录。交接步骤 指定由原执行者对账,待租约清空后再交给使用同一运行目录的新执行者。回退步骤 规定先读回原 Todo 和回执,再移除独立环境。中文段落给出相同的条件和顺序,旧版原地更新章节也链接到这里。
对主干的风险 / Risks
从主干与 #9646 的提交构建八个版本匹配的测试 wheel。用真实 pipx 的 pip 和 uv 后端分别安装,深度 Doctor 均返回 0,回退后原入口完整。uv 试验中两个入口重放了同一条已提交回执,宿主调用和额度结算各一次。 按 PR 基点运行预合并,默认时限下两项安装检查超时。对相同源码和相同检查将单项上限设为 600 秒后,全部 12 项选中检查通过。 隔离环境使用本地合成的预发布包和测试宿主。未验证公开索引上的成品、Windows、真实在途租约或模型对指南的遵循。 已结算回执的重放验证覆盖重复调用这一负例。
我的整体评价 / Verdict
批准本次指南修改。qualified_release 和 single_owner_rollback 两项均有对应章节与本地实测。发布方仍需对具体公开版本验证 Doctor,现有安装用户可以在这一步决定是否继续。
英文简短结论
English verdict: APPROVE · 422c502. Both pipx backends passed the documented deep check with a locally built, matched package set containing the prerequisite fix. The original launcher and state survived rollback. No public release was certified.
Goal And Delivered Outcome
Document the pipx installation, cutover, and rollback journey for a published split-package prerelease. A real in-place updater run on the pip backend removed the original launcher and left Core files missing. The guide gives operators a second launcher and a sequence for reconciling original work before switching ownership.
Author Declaration
Written by Codex (OpenAI).
Implemented against
Reconciled installation and rollback in the distribution RFC, §8.
Scope And Continuation
This guide covers intentional adoption of a published split prerelease using a sibling installation. In-place pipx updates across the layout boundary still require qualification.
Validation
Guide revision 39d1dd4. Validation finished with synthetic local workspaces.
Matched split wheel run
Doctor ownership and handoff follow-up
The guide now selects a published split prerelease with the Doctor ownership fix in #9646 and makes successful Deep Doctor readback the handoff point.
On macOS arm64 with Python 3.11.15 and pipx 1.12.0, both the pip and uv backends installed the same verified nine-wheel split candidate from
f09b197b61. Each suffixed launcher passed the guide's Deep Doctor command with seven matching companions ready. Each read the original SQLite Todo and completed Turn receipt before returning to the original released2.4.1launcher. Uninstalling the preview kept the original launcher and authority records intact. The synthetic task used one host dispatch and one quota spend per backend.The split wheelhouse is an offline candidate. The guide's version placeholder is for a published prerelease carrying the ownership fix.
Review follow-up
Revision
422c5029c0againstmain@0e784d7cba. The unchanged proposal now touches only the installation guide against current main. A local nine-wheel candidate combining the current #9646 and #9876 changes was built from one checkout. Both pipx 1.12 backends (pip and uv) installed the candidate offline, exposed the suffixed launcher, passed Deep Doctor with all seven companions ready, ran the full CLI fallback, and removed the suffixed environment. The guide continues to require a published prerelease carrying the Doctor ownership fix. Shell snippet and bilingual RFC checks passed.