Skip to content

Local video editor for coding agents: 42 FFmpeg tools with a machine-readable contract and an MCP server, for Claude Code, Cursor and Codex. Cut, captions, reframe, loudness, platform exports. No cloud, no API keys.

ci: a dependencies PR never resolves a release, even when Dependabot labelled it major (#186)

claude[bot]46c2d34e6e30
diff --git a/.github/scripts/resolve_version.py b/.github/scripts/resolve_version.py
index 556b727..383c62b 100644
--- a/.github/scripts/resolve_version.py
+++ b/.github/scripts/resolve_version.py
@@ -11,6 +11,10 @@ PRs resolved to last+patch and 1.0.4 was published for a workflow-only change (2
Rules (same label vocabulary as .github/release-drafter.yml, so the autolabeler and a human
reading the PR see the same thing):
+ dependencies (Dependabot) -> not releasable, whatever else it carries: Dependabot
+ labels its own semver-major bumps of an *action* `major`
+ (actions/checkout 4->7 blocked 1.4.9 on 2026-09-12); a
+ dependency pin is never this package's major
major -> refuse (exit 2): a major is a hand edit of package.json
minor / feature / enhancement -> minor
patch / fix / bug -> patch
@@ -43,6 +47,8 @@ PR_NUMBER = re.compile(r"\(#(\d+)\)\s*$")
def bump_for_labels(labels: Iterable[str]) -> Optional[str]:
"""'major' / 'minor' / 'patch' / None (not releasable) for one PR's labels."""
names = {l.lower() for l in labels}
+ if "dependencies" in names:
+ return None
if names & MAJOR:
return "major"
if names & MINOR:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4db8eb9..8f61212 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -131,7 +131,12 @@ jobs:
- name: Install ffmpeg 5.1.1 (static) and fonts
run: |
sudo apt-get update && sudo apt-get install -y fonts-dejavu-core
- curl -sSL -o ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/old-releases/ffmpeg-5.1.1-amd64-static.tar.xz
+ # johnvansickle.com is a single small host; a connect timeout there took the whole
+ # job with it once (2026-09-12, "Failed to connect ... after 132939 ms"). Retry the
+ # download for a few minutes before giving up, and fail loudly if it still cannot.
+ curl -sSL --retry 6 --retry-all-errors --retry-delay 15 --connect-timeout 30 \
+ -o ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/old-releases/ffmpeg-5.1.1-amd64-static.tar.xz
+ test -s ffmpeg.tar.xz || { echo "::error::ffmpeg 5.1.1 static download failed"; exit 1; }
mkdir -p "$HOME/ffmpeg5" && tar -xJf ffmpeg.tar.xz -C "$HOME/ffmpeg5" --strip-components=1
echo "$HOME/ffmpeg5" >> "$GITHUB_PATH"
- name: ffmpeg version, listings and doctor
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9264816..586eb35 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@
- `pad.py --start/--end` accept the shared time grammar (`1:30`) like every other tool; junk is a `kind: input` refusal, not an argparse exit 2 without JSON.
- `cut.py --segments` refuses an output that is the same file as its input. The run() guard compares each ffmpeg command's `-i` with its output, and the final concat's only `-i` is the temp list file, so `-o in.mp4` replaced the source with the join (fourth review, P0); the single-segment path already refused.
- The dry-run exception list in SKILL.md and `docs/contract.md` names `silence`, `loudness` and `stabilize` again; the pinning test now checks the sentence that states the exception in all three docs, not "the name appears somewhere in the file", which is how the list drifted twice.
+- Release resolver: a PR labelled `dependencies` is never releasable, even when Dependabot also labelled it `major` (its bump of actions/checkout 4→7 was the action's major, not this package's, and blocked the 1.4.9 release).
## 1.4.8
diff --git a/tests/test_contract.py b/tests/test_contract.py
index be2ef2e..2ba1796 100644
--- a/tests/test_contract.py
+++ b/tests/test_contract.py
@@ -688,6 +688,13 @@ class ContractTests(unittest.TestCase):
self.assertIsNone(v)
v, _ = rv.resolve("1.0.3", ["build(deps): bump x (#132)"], labels({132: ["dependencies", "github_actions", "chore"]}))
self.assertIsNone(v)
+ # Dependabot labels a semver-major bump of an *action* `major` (actions/checkout 4->7,
+ # #168/#169); that is the dependency's major, not ours, and it blocked 1.4.9 on 2026-09-12.
+ # A dependencies PR is not releasable whatever else it carries, and does not trip the refusal.
+ v, d = rv.resolve("1.4.8", ["fix: x (#183)", "build(deps): bump actions/checkout from 4 to 7 (#168)"],
+ labels({183: ["chore", "fix"], 168: ["dependencies", "github_actions", "chore", "major"]}))
+ self.assertEqual(v, "1.4.9")
+ self.assertEqual([x["bump"] for x in d], ["patch", None])
# fix wins over chore on the same PR (#136 -> 1.0.3)
v, _ = rv.resolve("1.0.2", ["Fix the Codex install path (#136)"], labels({136: ["chore", "fix"]}))
self.assertEqual(v, "1.0.3")