The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
fix(ci): synchronize bounded candidate tool installation
罗高ad30540bead6
diff --git a/.github/workflows/motion-candidate.yml b/.github/workflows/motion-candidate.ymlindex 082bfaa4..9e0c9b2d 100644--- a/.github/workflows/motion-candidate.yml+++ b/.github/workflows/motion-candidate.yml@@ -59,8 +59,17 @@ jobs:run: |# The hosted Ubuntu image provides Chrome; avoid Ubuntu's desktop Chromium snap."$HYPERFRAMES_BROWSER_PATH" --version- sudo apt-get update -qq- sudo apt-get install -y -qq --no-install-recommends zip unzip ffmpeg fonts-noto-core+ missing=()+ for package in zip unzip ffmpeg fonts-noto-core; do+ if [ "$(dpkg-query -W -f='${Status}' "$package" 2>/dev/null)" != 'install ok installed' ]; then+ missing+=("$package")+ fi+ done+ if ((${#missing[@]})); then+ apt_options=(-o Acquire::Retries=2 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30)+ sudo apt-get "${apt_options[@]}" update+ sudo apt-get "${apt_options[@]}" install -y --no-install-recommends "${missing[@]}"+ fi- name: Check the selected sourceworking-directory: sourcerun: |diff --git a/docs/motion-release-activation.md b/docs/motion-release-activation.mdindex cc16c0b3..a6a5be32 100644--- a/docs/motion-release-activation.md+++ b/docs/motion-release-activation.md@@ -6,7 +6,7 @@ This branch retains the legacy HTML Anything application. The Motion applicationThe three manual workflows, their runtime helpers, installation/acceptance templates and deterministic tests were initially copied without modification from reviewed PR [#214](https://github.com/nexu-io/html-anything/pull/214), source commit `de45dadea282214762c7b3123cea7e6b1044f26f`. The test-channel follow-up copies the same 18 shared control files byte-for-byte from Motion commit `94d15d656eb085f98067867502418bb99c7de0e9` and updates this control set to require DEV candidates and defer npm test promotion until native checks pass. No application business logic or private Git history is imported; shared runtime helpers and tests are included as control dependencies. The extra `Motion release controls` CI job runs only syntax checks and simulated-service tests with read-only permissions; the legacy CI commands and permissions are preserved. Its runner is pinned to Ubuntu 24.04 because the locked Playwright cannot install browsers on the Ubuntu 26.04 image now selected by ubuntu-latest.-The branch-selection/automatic-numbering follow-up copies the same shared control set from Motion commit `3d9d093231069108ada13c4e6c82e09ca91a5663`. This includes the already integrated #231 shared asset helper and install-guide updates; the candidate gate also runs its native-preparation regression. Empty versions derive from that candidate's frozen Motion source, never from the legacy main package version. Source manifests are not bumped by a build. Both matching PRs must be integrated before accepting feature/motion-produced candidates for publication.+The branch-selection/automatic-numbering follow-up copies the same shared control set from Motion commit `b0dd9ddd4af148deda90d42aab0732ba0ab8fe60`. This includes the already integrated #231 shared asset helper and install-guide updates; the candidate gate also runs its native-preparation regression. Empty versions derive from that candidate's frozen Motion source, never from the legacy main package version. Source manifests are not bumped by a build. Both matching PRs must be integrated before accepting feature/motion-produced candidates for publication.GitHub requires a manual workflow to exist on the default branch before its Run workflow entry is available. Candidate builds now allow `feature/motion` or `main`; publication and recovery still require execution from `main`. They fetch the Motion application from a reviewed commit integrated into `feature/motion`. See [GitHub manual workflows](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/manually-run-a-workflow).diff --git a/tests/release-workflows.test.mjs b/tests/release-workflows.test.mjsindex 6097dfc0..aec9ca47 100644--- a/tests/release-workflows.test.mjs+++ b/tests/release-workflows.test.mjs@@ -285,6 +285,32 @@ test('daily build and publication are separate manual entries without an indepenassert(recovery.includes('uses: ./.github/workflows/motion-publish-test.yml') && !recovery.includes('source_sha:'));});+test('rendering tools reuse installed packages, bound apt networking and stop on installation failure', async t => {+ const directory = await mkdtemp(path.join(os.tmpdir(), 'motion-render-tools-'));+ t.after(() => rm(directory, { recursive: true, force: true }));+ const workflow = await readFile(new URL('../.github/workflows/motion-candidate.yml', import.meta.url), 'utf8');+ const step = workflow.split(' - name: Install rendering test tools\n')[1].split('\n - name: ')[0];+ const script = step.split(' run: |\n')[1].split('\n').map(line => line.replace(/^ {10}/, '')).join('\n');+ const calls = path.join(directory, 'apt-calls');+ const mock = `dpkg-query() { if [[ "$MISSING_FONT" == 1 && "$*" == *fonts-noto-core* ]]; then return 1; fi; printf 'install ok installed'; }+sudo() { printf '%s\\n' "$*" >> "$APT_CALLS"; [[ "$FAIL_APT" != 1 ]]; }`;+ const env = { ...process.env, APT_CALLS: calls, HYPERFRAMES_BROWSER_PATH: '/usr/bin/true', FAIL_APT: '0' };+ for (const missing of ['0', '1']) {+ await writeFile(calls, '');+ await runFile('bash', ['-e', '-o', 'pipefail', '-c', mock + '\n' + script], { env: { ...env, MISSING_FONT: missing } });+ const commands = (await readFile(calls, 'utf8')).trim().split('\n').filter(Boolean);+ assert.equal(commands.length, missing === '1' ? 2 : 0);+ if (missing === '1') {+ assert(commands.every(command => command.includes('Acquire::Retries=2') && command.includes('Acquire::http::Timeout=30') && command.includes('Acquire::https::Timeout=30')));+ assert(commands[0].endsWith(' update'));+ assert(commands[1].endsWith(' install -y --no-install-recommends fonts-noto-core'));+ }+ }+ await writeFile(calls, '');+ await assert.rejects(runFile('bash', ['-e', '-o', 'pipefail', '-c', mock + '\n' + script], { env: { ...env, MISSING_FONT: '1', FAIL_APT: '1' } }));+ assert.equal((await readFile(calls, 'utf8')).trim().split('\n').length, 1, 'Failed apt update must not continue');+});+function storage(candidate) {const objects = new Map([['open-motion/dev/install.md', Buffer.from('# Install OpenMotion 0.6.4-test.1\n')]]), writes = [], reads = [];let failKey;