fix: bind engineering release checks to the actual service version

This commit is contained in:
Agent Workbench Dev
2026-11-01 10:07:37 +08:00
parent 97bf5edddc
commit 89f47486f3
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -44,3 +44,5 @@ D/E原失败、实际报告、原HTTP请求、检查日志、工程源码与必
## F 发行候选准备
候选版本1.20.0已构建。版本准备脚本因假定旧controlled-ui含1.19枚举而在只读断言中止;已按实际文件补齐余下版本门控,没有重复执行已完成的版本写入。首轮编译服务验收前3组通过,之后QA将Git preparing当作终态,提前断言completed;原收据`.qa/engineering-evals-release-aff1830d-8827-4832-a496-18c06ea37027`保持,改为等待明确Git终态后独立整轮复验。正式1.19未改。
修正后的编译流程5组通过,但随后完整UI版本核对拒绝了缓存页报告:服务APP_VERSION遗漏升级,仍报1.19。自动打包在失败门槛处停止,未生成/升级正式发行。已修复服务常量并补编译服务与所选包版本一致性断言;97bf5ed第一次冻结及UI失败原件单独保持,最终代码重新提交/冻结并完整重验。此前5组只说明新代码执行链走通,不能充作最终1.20发行通过。仍在运行的第一轮开发测试也保留原轮;最终验收以新冻结独立源码整轮为准。
+2 -1
View File
@@ -11,6 +11,7 @@ import {ownerBytes} from '../tests/fixtures/workers-project.mjs';
if(process.argv.includes('--help')){console.log('node scripts/verify-evaluations-release.mjs [--app-root <absolute-package>] — actual compiled host/bundled Node, fixed HTTP candidate, original failing checks, review, desktop/390px comparison/export, parent checks/Git, stop and source rejection. Independent data; no real inference.');process.exit(0);}
const args=process.argv.slice(2);assert.ok(!args.length||args.length===2&&args[0]==='--app-root'&&path.isAbsolute(args[1]));
const appRoot=fs.realpathSync.native(args[1]??process.cwd()),nodePath=args.length?path.join(appRoot,'runtime/node.exe'):process.execPath;
const expectedVersion=JSON.parse(fs.readFileSync(path.join(appRoot,fs.existsSync(path.join(appRoot,'package.json'))?'package.json':'MANIFEST.json'),'utf8')).version;
const directory=path.resolve('.qa','engineering-evals-release-'+randomUUID());fs.mkdirSync(directory,{recursive:true});
const disposers=[],t={after:fn=>disposers.push(fn)},f=fixture(t);createDeliveryProject(f,{broken:true,ownerChanges:true});const original=ownerBytes(f);f.store.close();
const hash=bytes=>createHash('sha256').update(bytes).digest('hex'),requests=[],held=new Set(),sockets=new Set(),assertions=[],screenshots=[],pageErrors=[];
@@ -30,7 +31,7 @@ const get=async id=>(await host.api(route+'/evaluations')).batches.find(row=>row
async function operation(batch,name){await host.api(route+'/evaluations/'+batch.id+'/'+name,{fingerprint:batch.fingerprint,sampleId:batch.samples[0].id});await until(async()=>!['preparing','baseline_running','candidate_running','collecting','adopting'].includes((await get(batch.id)).status),120000);return get(batch.id);}
async function apply(target,set){await host.api(target+'/change-sets/'+set.id+'/apply',{fingerprint:set.fingerprint});let value;await until(async()=>{value=await host.api(target+'/change-sets/'+set.id);return !['prepared','applying'].includes(value.status);});assert.equal(value.status,'completed',value.summary);}
try{
host=await launchWorkbench(t,f.data,{}, {appRoot,nodePath});assert.equal(fs.realpathSync.native(host.bootstrap.runtimeRoot),appRoot);assert.notEqual(new URL(host.url).port,'4318');
host=await launchWorkbench(t,f.data,{}, {appRoot,nodePath});assert.equal(host.bootstrap.version,expectedVersion,'Compiled service identity must match its selected package.');assert.equal(fs.realpathSync.native(host.bootstrap.runtimeRoot),appRoot);assert.notEqual(new URL(host.url).port,'4318');
await host.api('/config',{mode:'compatible',model:'owned-evaluation-release',baseUrl:'http://127.0.0.1:'+model.address().port+'/v1',apiKey:'self-owned-evaluation-release',maxSteps:32});
let batch=(await host.api(route+'/evaluations',definition('随包工程评测'))).batch;batch=await operation(batch,'prepare');assert.equal(batch.samples[0].status,'ready',batch.message);
const group=(await host.api(route+'/collaborations')).groups.find(row=>row.id===batch.samples[0].groupId);childRoute='/sessions/'+group.children.find(row=>row.evaluation.role==='candidate').sessionId;
+1 -1
View File
@@ -1,6 +1,6 @@
import { randomUUID, createHash } from 'node:crypto';
export const APP_VERSION = '1.19.0';
export const APP_VERSION = '1.20.0';
export function executionEnvironment() {
const windows = process.platform === 'win32';