Skip to content

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.

fix(ci): synchronize reviewed Motion installation guidance and candidate setup

罗高92e3334dcef2
diff --git a/.github/workflows/motion-candidate.yml b/.github/workflows/motion-candidate.yml
index bfdd406d..02a7fc0c 100644
--- a/.github/workflows/motion-candidate.yml
+++ b/.github/workflows/motion-candidate.yml
@@ -27,7 +27,7 @@ jobs:
MOTION_SOURCE_SHA: ${{ inputs.source_sha }}
MOTION_VERSION: ${{ inputs.version }}
OPENMOTION_TELEMETRY: '0'
- HYPERFRAMES_BROWSER_PATH: /usr/bin/chromium
+ HYPERFRAMES_BROWSER_PATH: /usr/bin/google-chrome
HYPERFRAMES_FFMPEG_PATH: /usr/bin/ffmpeg
HYPERFRAMES_FFPROBE_PATH: /usr/bin/ffprobe
steps:
@@ -55,7 +55,11 @@ jobs:
node control/.github/scripts/motion-scan.mjs install "$RUNNER_TEMP/scanner"
node control/.github/scripts/motion-scan.mjs source source "$RUNNER_TEMP/source-scan.json" "$RUNNER_TEMP/scanner/gitleaks"
- name: Install rendering test tools
- run: sudo apt-get update -qq && sudo apt-get install -y -qq --no-install-recommends zip unzip chromium ffmpeg fonts-noto-core
+ 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
- name: Check the selected source
working-directory: source
run: |
diff --git a/docs/install.md b/docs/install.md
index fd494a3e..d47e6175 100644
--- a/docs/install.md
+++ b/docs/install.md
@@ -1,6 +1,6 @@
# Install OpenMotion {{VERSION}}
-This guide pins the complete npm application `{{PACKAGE_SPEC}}` on the **{{CHANNEL}}** software channel. It includes MCP, the built Studio and five Skills. The default template environment is **{{TEMPLATE_ENVIRONMENT}}**; a software test version does not select DEV templates.
+This guide pins the complete npm application `{{PACKAGE_SPEC}}` on the **{{CHANNEL}}** software channel. It includes MCP, the built Studio and five Skills. The default template environment is **{{TEMPLATE_ENVIRONMENT}}**: new test versions embed DEV defaults, stable versions embed prod, and previously published versions keep their original environment.
If you are reading this file in the source repository and see `{{...}}`, it is a template, not a published installation instruction. Do not guess a package name or version.
diff --git a/docs/motion-release-activation.md b/docs/motion-release-activation.md
index c9302065..dc1dff0e 100644
--- a/docs/motion-release-activation.md
+++ b/docs/motion-release-activation.md
@@ -4,7 +4,7 @@ This branch retains the legacy HTML Anything application. The Motion application
## Scope and provenance
-The 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 `18758ba87466f4804179b6d34e803b718a3198ca` 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 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.
GitHub requires a manual workflow to exist on the default branch before its Run workflow entry is available. After registration, our controls additionally 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/install-guide.test.ts b/tests/install-guide.test.ts
index 67cbb19d..dec9326c 100644
--- a/tests/install-guide.test.ts
+++ b/tests/install-guide.test.ts
@@ -54,6 +54,8 @@ test('guide rendering pins the exact npm package, built source and hash while re
assert(text.includes(manifest.commit) && text.includes(record.tgzSHA256));
assert(!text.includes('{{') && !text.includes('see `{{...}}`'));
assert(text.includes('eleven public Tools') && text.includes('five Skills'));
+ assert(text.includes('new test versions embed DEV defaults') && !text.includes('does not select DEV templates'),
+ 'A generated test guide must not claim test versions skip DEV templates');
for (const host of ['codex', 'claude', 'deepseek', 'workbuddy']) assert(text.includes(`openmotion setup --host ${host}`), host);
assert(text.includes('--profile PROFILE') && text.includes('Do not infer the current host'));
assert.equal(record.channel, 'test'); assert.equal(record.candidate, false);
diff --git a/tests/release-workflows.test.mjs b/tests/release-workflows.test.mjs
index 20858b6b..c20a86f1 100644
--- a/tests/release-workflows.test.mjs
+++ b/tests/release-workflows.test.mjs
@@ -219,6 +219,8 @@ test('daily build and publication are separate manual entries without an indepen
assert(build.includes('workflow_dispatch:') && build.includes('version:') && build.includes('source_sha:'));
assert(build.includes('name: ' + candidateJobName) && build.includes('ref: ${{ steps.source.outputs.source_sha }}'));
assert(build.includes('--template-env=dev') && !build.includes('--template-env=prod'));
+ assert(build.includes('HYPERFRAMES_BROWSER_PATH: /usr/bin/google-chrome') && build.includes('\"$HYPERFRAMES_BROWSER_PATH\" --version'));
+ assert(!/apt-get install[^\n]*\bchromium\b/.test(build), 'Candidate builds must not install Ubuntu desktop snaps');
assert(build.includes('name: motion-candidate-${{ inputs.version }}') && build.includes('candidate-install.md'));
assert(!build.includes('concurrency:') && !build.includes('secrets.') && !build.includes('id-token:'));
assert(header.includes('version:') && header.includes('accepted:') && header.includes('default: false'));