fix(release): preserve Windows long paths when archiving source evidence
This commit is contained in:
@@ -13,3 +13,5 @@ J 原真实样本仍明确发送到 api.apikey.fan,请求 `claude-opus-5-5`,
|
||||
六类相关历史 UI 已全部通过:模型中心、协议/流式/配对停止、严格型号核对、主工作台、运行诊断和执行/预算续接。修正了这几处验收器的旧按钮与标签名称,协议验收仍使用旧「实际模型名称」导致的失败亦保留。路由夹具改为合法无工具响应后,三项新路由检查再次通过,明确原连接的独立请求能够完成。
|
||||
|
||||
独立发行重建、安装、正式部署及数据保留证据继续验收,最终结果在本报告续记。此时不能把源码通过写成已经上线。
|
||||
|
||||
首不可变候选 `20261103064045762` 在源码 ZIP 归档时失败:Windows PowerShell/.NET Framework 对历史证据中超过 MAX_PATH 的嵌套路径报 DirectoryNotFound。运行包和安装器虽已生成,不将该候选当完整发行,不安装、不覆盖其部分源码 ZIP。归档改用 Windows namespace 完整路径,并拒绝覆盖已有输出;自有 343 字符路径实际 ZIP、CRC、目录结构、原文件 SHA 和重复输出拒绝通过。随后以新来源制作另一不可变候选。
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
1.24.3实现已完成;30/30相关后端、最终构建、七组新编译UI与六类相关历史UI通过,三项路由夹具合法无工具响应补验通过。原生option两次误判、历史泛选择器、旧协议字段标签首失败保持,没有放宽产品规则。正式原生窗口已用Computer Use只读回看并关闭,原PID36552/Provider/hasKey=true/idle与windows=0核对;开始不可变发行和保留状态安装验收。
|
||||
|
||||
实现提交6bd605ad;首候选20261103064045762因PowerShell/.NET归档长路径失败,未部署且保留部分ZIP。补充namespace路径归档与现有输出拒绝,自有超260字符路径的实际ZIP/CRC/结构/原SHA验证通过。冻结脚本首轮未限制git ls-files导致ENOBUFS,原脚本保持后仅枚举产品输入;不是产品故障,也没有扩大测试结论。
|
||||
|
||||
## 当前 J:单次真实身份预检结束
|
||||
|
||||
apikey 请求 claude-opus-5-5,上游标记 gpt-6.1-sol;1 请求/4334 报告 tokens/0 工具,系统以 model_identity 暂停。原 PID36552/Provider/凭据保持,70 原导出/3566 原工件及原表行核对完成;原池/参数恢复,公开修订与等价默认身份字段如实记录。30 份/190046 字节新证据离线通过;未启动工程或 Purge。首三次整表验收器失败和首次封存中离线脚本 raw usage 比较修正均追加保留,不重发真实请求。详见 docs/LIVE-MODEL-IDENTITY-J-RESULTS.md。
|
||||
|
||||
+2
-4
@@ -7,6 +7,7 @@ import { planBrowserBundle, copyBrowserBundle } from './bundle-browser.mjs';
|
||||
import { planDesktopBundle, buildNativeLauncher, copyDesktopBundle } from './bundle-desktop.mjs';
|
||||
import { buildWindowsInstaller } from './build-installer.mjs';
|
||||
import { createDocumentationBundle } from './documentation-bundle.mjs';
|
||||
import { archiveWindowsDirectory } from './release-archive.mjs';
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
if (args.some(value => !['--help', '--immutable'].includes(value))) throw new Error('Unsupported argument; use --help.');
|
||||
@@ -127,13 +128,10 @@ function manifest(directory, kind) {
|
||||
const portableManifest = manifest(portableRoot, 'portable');
|
||||
manifest(sourceRoot, 'source');
|
||||
const installer = buildWindowsInstaller({ root, portableRoot, outputRoot: releases });
|
||||
const quote = value => "'" + value.replaceAll("'", "''") + "'";
|
||||
function archive(directory) {
|
||||
const destination = directory + '.zip';
|
||||
if (!destination.startsWith(releases + path.sep)) throw new Error('Archive path is outside releases.');
|
||||
if (fs.existsSync(destination)) fs.unlinkSync(destination);
|
||||
const command = "$ErrorActionPreference='Stop'; Add-Type -AssemblyName System.IO.Compression.FileSystem; [IO.Compression.ZipFile]::CreateFromDirectory(" + quote(directory) + ', ' + quote(destination) + ', [IO.Compression.CompressionLevel]::Optimal, $true)';
|
||||
execFileSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', command], { windowsHide: true, stdio: 'pipe' });
|
||||
archiveWindowsDirectory(directory, destination);
|
||||
return { path: destination, bytes: fs.statSync(destination).size, sha256: createHash('sha256').update(fs.readFileSync(destination)).digest('hex') };
|
||||
}
|
||||
const result = { portableRoot, sourceRoot, evidenceRoot, portable: archive(portableRoot), source: archive(sourceRoot), evidence: archive(evidenceRoot), documentation: { sourceCommit, originalFiles: documentation.originalFiles, originalBytes: documentation.originalBytes, shippedFiles: documentation.shipped.length, shippedBytes: documentation.shipped.reduce((sum, row) => sum + row.bytes, 0), evidenceManifestSha256: documentation.evidenceManifestSha256 }, installer, desktopRuntime, nativeLauncher, nodeVersion, reaRuntime, portableFiles: portableManifest.files.length, licenseTexts: licenseCount + 2 };
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
|
||||
export function archiveWindowsDirectory(directory, destination) {
|
||||
if (fs.existsSync(destination)) throw new Error('Archive output already exists; preserve the original candidate.');
|
||||
const quote = value => "'" + value.replaceAll("'", "''") + "'";
|
||||
// Windows PowerShell runs on .NET Framework. Namespace both paths so deeply
|
||||
// nested source/evidence files do not fall back to the legacy MAX_PATH limit.
|
||||
const command = "$ErrorActionPreference='Stop'; Add-Type -AssemblyName System.IO.Compression.FileSystem; [IO.Compression.ZipFile]::CreateFromDirectory("
|
||||
+ quote(path.toNamespacedPath(path.resolve(directory))) + ', ' + quote(path.toNamespacedPath(path.resolve(destination)))
|
||||
+ ', [IO.Compression.CompressionLevel]::Optimal, $true)';
|
||||
execFileSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', command], { windowsHide: true, stdio: 'pipe' });
|
||||
}
|
||||
Reference in New Issue
Block a user