完成全量检查整改

清理已跟踪原始日志与个人本地配置
修复前后端有效门禁、测试和构建问题
补齐生产 Jenkins、SpacetimeDB 本地命令与文档约束
收紧图片编辑器状态、附件与媒体引用测试
排除已下线旧创作入口测试并清理 warning
This commit is contained in:
2026-07-17 16:56:46 +08:00
parent 18af49c27f
commit 387a1c26e3
274 changed files with 1077 additions and 2113 deletions
+10
View File
@@ -945,6 +945,7 @@ spacetimedb tool version 2.6.0; spacetimedb-lib version 2.6.0;
});
test('本地 API identity 不跟随符号链接记录', async () => {
const warnSpy = vi.spyOn(console, 'warn').mockImplementation(() => {});
const tempDir = mkdtempSync(join(tmpdir(), 'genarrative-api-identity-'));
try {
const { explicitOptions, options } = parseArgs(
@@ -988,6 +989,9 @@ spacetimedb tool version 2.6.0; spacetimedb-lib version 2.6.0;
identity: 'linked-identity',
token: 'linked-token',
});
expect(warnSpy).toHaveBeenCalledWith(
expect.stringContaining('本地 API identity 记录不可用,将重新创建'),
);
} finally {
rmSync(tempDir, { recursive: true, force: true });
}
@@ -1165,6 +1169,7 @@ spacetimedb tool version 2.6.0; spacetimedb-lib version 2.6.0;
});
test('不复用权限宽松、格式非法或空的本地运行服务 bootstrap secret 记录', () => {
const warnSpy = vi.spyOn(console, 'warn').mockImplementation(() => {});
const tempDir = mkdtempSync(
join(tmpdir(), 'genarrative-runtime-bootstrap-secret-'),
);
@@ -1234,6 +1239,11 @@ spacetimedb tool version 2.6.0; spacetimedb-lib version 2.6.0;
if (process.platform !== 'win32') {
expect(statSync(secretPath).mode & 0o777).toBe(0o600);
}
expect(warnSpy).toHaveBeenCalledWith(
expect.stringContaining(
'本地运行服务 bootstrap secret 记录不可用,将重新生成',
),
);
} finally {
rmSync(tempDir, { recursive: true, force: true });
}