Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
49 lines
1.5 KiB
Python
49 lines
1.5 KiB
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
import subprocess
|
|
|
|
|
|
REQUIRED_FILTERS = "ass trim atrim setpts asetpts concat overlay scale crop fps"
|
|
REQUIRED_ENCODERS = "libx264 aac"
|
|
|
|
|
|
def _write_fake_tool(path: Path, filters: str, encoders: str) -> None:
|
|
path.write_text(
|
|
"#!/bin/sh\n"
|
|
'case "$1" in\n'
|
|
f' -hide_banner) case "$2" in -filters) for name in {filters}; do echo " T.. $name test"; done ;; '
|
|
f'-encoders) for name in {encoders}; do echo " V..... $name test"; done ;; esac ;;\n'
|
|
' -version) echo "fake tool 1.0" ;;\n'
|
|
"esac\n",
|
|
encoding="utf-8",
|
|
)
|
|
path.chmod(0o755)
|
|
|
|
|
|
def test_release_media_toolchain_verifier_accepts_complete_pair_and_rejects_gap(
|
|
tmp_path: Path,
|
|
) -> None:
|
|
root = Path(__file__).resolve().parents[2]
|
|
verifier = root / "apps" / "desktop" / "packaging" / "verify-media-toolchain.sh"
|
|
ffmpeg = tmp_path / "ffmpeg"
|
|
ffprobe = tmp_path / "ffprobe"
|
|
_write_fake_tool(ffmpeg, REQUIRED_FILTERS, REQUIRED_ENCODERS)
|
|
_write_fake_tool(ffprobe, "", "")
|
|
|
|
subprocess.run([str(verifier), str(ffmpeg), str(ffprobe)], check=True)
|
|
|
|
_write_fake_tool(
|
|
ffmpeg,
|
|
REQUIRED_FILTERS.replace("ass ", ""),
|
|
REQUIRED_ENCODERS,
|
|
)
|
|
rejected = subprocess.run(
|
|
[str(verifier), str(ffmpeg), str(ffprobe)],
|
|
check=False,
|
|
capture_output=True,
|
|
text=True,
|
|
)
|
|
assert rejected.returncode == 1
|
|
assert "missing required filter: ass" in rejected.stderr
|