Skip to content

fix(ci): unbreak the Dependabot auto-bump after the .hermes-plugin removal - #109

Merged
sweetrb merged 1 commit into
mainfrom
hermes-workflow-cleanup
Jul 29, 2026
Merged

fix(ci): unbreak the Dependabot auto-bump after the .hermes-plugin removal#109
sweetrb merged 1 commit into
mainfrom
hermes-workflow-cleanup

Conversation

@sweetrb

@sweetrb sweetrb commented Jul 29, 2026

Copy link
Copy Markdown
Owner

The Dependabot auto-bump is currently broken in all four repos. This is not the cosmetic cleanup it looked like.

dependabot-rebuild.yml's bump step writes a patch version bump, runs sync-plugin-version.mjs, prepends a CHANGELOG entry, and then stages all of it with:

git add package.json CHANGELOG.md build .claude-plugin .agents codex \
        .hermes-plugin .antigravity-plugin 2>/dev/null || true

.hermes-plugin/ no longer exists. git add is all-or-nothing: one pathspec matching nothing makes it exit 128 and stage none of the others. The 2>/dev/null || true swallowed the exit code but not the consequence — nothing got staged.

The next step (Commit and push the rebuilt bundle) re-adds only build/. So a Dependabot npm PR whose rebuilt bundle changed would commit the bundle with no version bump and no CHANGELOG entry, then fail require-version-bump — blocking precisely the automation this workflow exists to provide ("so Dependabot automation flows without a human"). Silently, because the error was suppressed.

Changes

  1. Drop the stale .hermes-plugin path.
  2. Drop 2>/dev/null || true. That suppression is what let this go unnoticed; the step runs under set -euo pipefail, so a future missing path now fails the job loudly instead of quietly skipping the bump. Verified all seven remaining paths (package.json, CHANGELOG.md, build, .claude-plugin, .agents, codex, .antigravity-plugin) exist in all four repos and the unsuppressed git add exits 0 in each.

Fleet consistency

The four repos keep dependabot-rebuild.yml byte-identical for conformance-check.sh, so this identical commit lands in all four. Verified matching sha256 across all four after the edit, and ./conformance-check.sh passes.

.github/ does not ship, so no version bump is owed.

…moval

dependabot-rebuild.yml's bump step writes a patch version bump, runs
sync-plugin-version.mjs and prepends a CHANGELOG entry, then staged all of it
with:

  git add package.json CHANGELOG.md build .claude-plugin .agents codex \
          .hermes-plugin .antigravity-plugin 2>/dev/null || true

`.hermes-plugin/` no longer exists, and `git add` is all-or-nothing: one
pathspec matching nothing makes it exit 128 and stage NONE of the others. The
`2>/dev/null || true` swallowed the exit code but not the consequence — nothing
was staged. The next step re-adds only `build/`, so a Dependabot PR would have
landed a rebuilt bundle with no version bump and no changelog entry, failing
require-version-bump and blocking exactly the automation this workflow exists to
provide.

Two changes:
- drop the stale `.hermes-plugin` path
- drop `2>/dev/null || true` so a future missing path fails the job loudly
  rather than silently skipping the bump. Verified all seven remaining paths
  exist in all four repos and the unsuppressed `git add` exits 0.

The file stays byte-identical across all four repos (conformance-check.sh);
this same commit lands in each. .github/ does not ship, so no version bump.
@sweetrb
sweetrb merged commit 8386352 into main Jul 29, 2026
8 checks passed
@sweetrb
sweetrb deleted the hermes-workflow-cleanup branch July 29, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant