Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
Fall back to full CI when the successful baseline is unavailable
Leggett71824c74b133
diff --git a/apps/desktop/scripts/release-build-input.mjs b/apps/desktop/scripts/release-build-input.mjsindex 46fe9c45..4826749d 100644--- a/apps/desktop/scripts/release-build-input.mjs+++ b/apps/desktop/scripts/release-build-input.mjs@@ -53,6 +53,18 @@ export function buildInputDigest(ref = 'HEAD', cwd = process.cwd()) {export function changedPaths(base, head, cwd = process.cwd()) {if (!base || /^0+$/.test(base)) return null;+ try {+ execFileSync('git', ['cat-file', '-e', `${base}^{commit}`], { cwd, stdio: 'ignore' });+ } catch (error) {+ if (error.status === 1 || error.status === 128) return null;+ throw error;+ }+ try {+ execFileSync('git', ['merge-base', '--is-ancestor', base, head], { cwd, stdio: 'ignore' });+ } catch (error) {+ if (error.status === 1) return null;+ throw error;+ }const output = execFileSync('git',['diff', '--name-only', '-z', base, head],diff --git a/apps/desktop/test/release-build-input.test.mjs b/apps/desktop/test/release-build-input.test.mjsindex 09ac0bcc..1f66f8ea 100644--- a/apps/desktop/test/release-build-input.test.mjs+++ b/apps/desktop/test/release-build-input.test.mjs@@ -1,5 +1,10 @@import { describe, expect, it } from 'vitest';+import { execFileSync } from 'node:child_process';+import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';import {+ changedPaths,changesAreReleaseOnly,digestBuildEntries,isReleaseOnlyPath,@@ -49,4 +54,31 @@ describe('release build input identity', () => {'100644 blob 1111111111111111111111111111111111111111\tapps/web/src/App.tsx\0')).toEqual([appEntry]);});++ it('runs full checks when the successful baseline is missing or no longer an ancestor', () => {+ const cwd = mkdtempSync(join(tmpdir(), 'opencreator-ci-baseline-'));+ const git = (...args) => execFileSync('git', args, { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] }).trim();+ const commit = message => git('-c', 'user.name=Release Test', '-c', '[email protected]', 'commit', '--allow-empty', '-m', message);+ try {+ git('init', '-q');+ commit('Initial baseline');+ const initial = git('rev-parse', 'HEAD');+ mkdirSync(join(cwd, '.github', 'workflows'), { recursive: true });+ writeFileSync(join(cwd, '.github', 'workflows', 'ci.yml'), 'name: CI\n');+ git('add', '.');+ commit('Update release infrastructure');+ const releaseHead = git('rev-parse', 'HEAD');+ expect(changedPaths(initial, releaseHead, cwd)).toEqual(['.github/workflows/ci.yml']);+ expect(changesAreReleaseOnly(changedPaths(initial, releaseHead, cwd))).toBe(true);+ expect(changedPaths('9'.repeat(40), releaseHead, cwd)).toBeNull();+ expect(changesAreReleaseOnly(changedPaths('9'.repeat(40), releaseHead, cwd))).toBe(false);+ git('checkout', '-q', '-b', 'alternate', initial);+ commit('Diverged history');+ expect(changedPaths(releaseHead, 'HEAD', cwd)).toBeNull();+ expect(changesAreReleaseOnly(changedPaths(releaseHead, 'HEAD', cwd))).toBe(false);+ expect(() => changedPaths(initial, 'missing-head', cwd)).toThrow();+ } finally {+ rmSync(cwd, { recursive: true, force: true });+ }+ });});diff --git a/docs/operations/opencreator-desktop-release-runbook.md b/docs/operations/opencreator-desktop-release-runbook.mdindex efdd4167..3b113f22 100644--- a/docs/operations/opencreator-desktop-release-runbook.md+++ b/docs/operations/opencreator-desktop-release-runbook.md@@ -52,6 +52,7 @@ Desktop 使用 `resources/icon.png` 作为各平台统一的应用图标源。ma7. tag 工作流不再重复构建、签名、公证或 E2E;它按应用构建输入 SHA-256 查找成功的 `target=all` 候选,并确认候选 commit 是 tag commit 的祖先。任何 App、Runtime、依赖或打包输入变化都会产生不同指纹并要求新候选。随后工作流复核 run 与候选身份凭据,下载已验证附件,校验附件白名单并发布 GitHub Release。CI 变更分类始终以最近一次成功的 `master` push CI 为基线,而不是只比较直接父提交。这样,失败的产品提交后即使只修复 workflow,也必须重新执行完整 CI,不会被 release-only 快速路径掩盖。+如果该基线对象已不在远端历史中,或不再是当前提交的祖先,分类器回退为完整 CI,不阻断分类步骤,也不将未知变更按纯发布改动处理。候选构建在依赖安装前恢复缓存,并通过 `ELECTRON_CACHE` 让安装脚本复用 Electron 下载;新增 Chromium 下载缓存,工具和 Codex 下载缓存允许按平台与架构回退复用。Codex 归档仍须通过固定 integrity 校验,Creator Runtime 下载保持精确缓存键。Daemon/Web、Creator Runtime 与 Codex Runtime 独立并行准备。Remotion 组件公证与主应用打包并行,但全部成功后才允许生成可交付产物清单;App 和 DMG 的签名、公证、Web 资源哈希及包完整性校验继续执行。上传已压缩的发布附件时关闭 Artifact 二次压缩。