fix(qa): require 1.25.2 candidate before formal upgrade

This commit is contained in:
Agent Workbench Dev
2026-11-04 20:03:27 +08:00
parent e3f2d8e79a
commit b4e1569cb8
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -59,3 +59,5 @@ readBudgetPolicyVersion=3把多文件/原工件读取作为共享预算批次,
版本常量/package/lock同步1.25.2;通用源码/便携/安装/全UI验收入口补1.25.1/1.25.2和独立reliability证据前缀,避免默默跳过前版功能。升级兼容列表用显式受支持版本配当前版本测试守卫:封装检查发现便携副本没有src,已去掉upgrade-running对源码diagnostics的运行依赖,防止便携独立CLI失效;未知版本仍拒绝。
已补隔离Python310 venv+pytest8.4.2与固定Chromium浏览器,避免把环境缺失当豁免。源码网页预算诊断两视口10组通过,完整回归运行中。新X驱动、一次正式升级驱动及冻结计划已准备;只做语法检查,没有发送模型请求。阶段未完成不标交付。
接续复核发现正式升级驱动的候选清单/编译版本两处仍写1.25.1,已在任何正式操作前更正为1.25.2;起始宿主断言仍为1.25.1。源码1440任务余额、390上下文窗口截图实际回看,标题、原暂停数值、恢复入口与窄屏文字均可读,无横向溢出。
+3 -3
View File
@@ -50,10 +50,10 @@ try {
const before = read(path.join(root, 'state-before.json')); compareOriginalState(before, current);
const candidate = read('releases/latest.json');
assert.equal(candidate.documentation.sourceCommit, sourceCommit, 'Candidate must be built from the reviewed HEAD.');
assert.equal(read(path.join(candidate.portableRoot, 'MANIFEST.json')).version, '1.25.1');
// Attempt 1 shipped a stale compiled APP_VERSION; refuse that before touching the formal host.
assert.equal(read(path.join(candidate.portableRoot, 'MANIFEST.json')).version, '1.25.2');
// Reject a stale compiled version before touching the formal host.
const served = /APP_VERSION\s*=\s*["']([0-9.]+)["']/.exec(fs.readFileSync(path.join(candidate.portableRoot, 'dist-server', 'server.mjs'), 'utf8'));
assert.equal(served?.[1], '1.25.1', 'Compiled server must report the candidate version.');
assert.equal(served?.[1], '1.25.2', 'Compiled server must report the candidate version.');
if (mode === 'upgrade') {
assert.equal(current.version, before.version);
assert.deepEqual(read(path.join(installRoot, 'current.json')), read(path.join(root, 'pointer-before.json')));