Repository navigation
Adopt the hub's reusable workflow chain and WORKFLOW.md contract - #326
Conversation
Replace the carried build, version, plan, validate, and upstream-version task copies with caller stubs pinned to hub release 2.0.1122, and move this repo's own behavior into composite-action hooks: docker-prepare for the upstream pins and the ESPHome version tag, validate for the firmware compile test and its change gate, and resolve-upstream for the PyPI lookup. The publisher gains the validate job and the ref-scoped concurrency group, the merge-bot becomes the hub stub with delete-branch, and Docker Hub README publishing moves to the hub task. Delete repo-config/, which the hub now hosts, sync WORKFLOW.md to the hub contract with this repo's own guarantees in a section 7 numbered from D10, sweep references to the removed files, extend Dependabot to the hooks, and quote the sourced paths in the entrypoint so the hub lint block's shellcheck and shfmt pass. Closes #319 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he hub pin The validate hook now reads its context, Dockerfile, cache repository, and build-args from the docker-prepare hook, so the compile test cannot drift from the published build. A hub pin bump in either stub now runs the compile test before it auto-merges. Correct the docs on new-branch gating, tracker pin convergence, the repo-gate command, and the prose gate a push-only CI never runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 36 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟡 Changes recommended
The entrypoint lacks the required shell safety header, and the operations runbook still references tooling paths removed by this migration.
1 open issue
What changed in this PR
This pull request migrates the repository to the hub’s pinned reusable workflow chain while retaining repository-specific Docker preparation, firmware validation, and upstream-version hooks.
Changes:
- Replaces locally hosted workflow tasks and repository configuration with hub caller stubs.
- Adds
docker-prepare,validate, andresolve-upstreamcomposite hooks. - Updates workflow contracts, operational documentation, repository references, Dependabot coverage, and Docker entrypoint formatting.
- Removes the retired
repo-config/files.
Review comments identify a missing required set -Eeuo pipefail header in Docker/entrypoint/entrypoint.sh ([P1], moderate) and outdated hub-tooling paths in OPERATIONS.md ([P2], nit).
| File | Description |
|---|---|
WORKFLOW.md |
Adopts the hub workflow contract and documents repository-specific pipeline guarantees. |
repo-config/settings.json |
Deleted; repository settings are now hub-hosted. |
repo-config/ruleset-main.json |
Deleted; the main ruleset is now hub-hosted. |
repo-config/ruleset-develop.json |
Deleted; the develop ruleset is now hub-hosted. |
repo-config/README.md |
Deleted with the retired repository-configuration surface. |
repo-config/configure.sh |
Deleted; configuration management is now hub-hosted. |
README.md |
Updates pipeline references to the Docker preparation hook. |
OPERATIONS.md |
Updates local verification and workflow-operation guidance. |
GOVERNANCE.md |
Updates the repository layout for hub tasks and local hooks. |
Docker/entrypoint/entrypoint.sh |
Quotes sourced paths and documents ShellCheck rationale. |
Docker/entrypoint/cache.sh |
Removes a trailing blank line. |
AGENTS.md |
Documents the hub workflow chain and local hooks. |
.github/workflows/validate-task.yml |
Deleted in favor of the hub validator. |
.github/workflows/test-pull-request.yml |
Converts CI into a pinned hub-task caller with the required aggregator. |
.github/workflows/publish-release.yml |
Converts publishing into pinned plan, validation, release, and Docker Hub overview callers. |
.github/workflows/publish-plan-task.yml |
Deleted in favor of the hub release-plan task. |
.github/workflows/merge-bot-pull-request.yml |
Converts merge automation into a pinned hub-task caller with branch deletion enabled. |
.github/workflows/get-version-task.yml |
Deleted in favor of the hub version task. |
.github/workflows/check-upstream-version.yml |
Converts upstream tracking into a pinned hub-task caller. |
.github/workflows/check-upstream-version-task.yml |
Deleted in favor of the hub upstream-version task. |
.github/workflows/build-release-task.yml |
Deleted in favor of the hub release task. |
.github/workflows/build-docker-task.yml |
Deleted in favor of the hub Docker task. |
.github/dependabot.yml |
Adds composite-action directories to GitHub Actions dependency scanning. |
.github/actions/validate/action.yml |
Adds the repository-specific firmware compile validation hook. |
.github/actions/resolve-upstream/action.yml |
Adds the PyPI upstream-version resolver hook. |
.github/actions/docker-prepare/action.yml |
Adds pinned upstream build arguments and Docker tag preparation. |
Review effort: Lite
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |

Summary
Implements #319: this repository now reaches the hub's reusable workflow chain instead of carrying its own copies, and its
WORKFLOW.mdis the hub's current contract.2.0.1122.test-pull-request.ymlcallsvalidate-task.ymland, withsmoke: true,build-release-task.yml.publish-release.ymlgains thevalidatejob the interface contract requires, gatespublishonneeds.validate.result == 'success', takes the ref-scoped concurrency group with the hub stub's push suffix, and publishes the Docker Hub overview throughpublish-docker-readme-task.yml.merge-bot-pull-request.ymlis the hub stub withdelete-branch: true.check-upstream-version.ymlcallscheck-upstream-version-task.yml..github/actions/:docker-preparereadsupstream-version.json, passesESPHOME_VERSIONandDEVICE_BUILDER_VERSION, and adds the:<esphome version>tag on amainbuild. The hub core addsLABEL_VERSIONfrom NBGV.validateis the firmware compile test, unchanged in what it compiles, and it builds from thedocker-prepareentry so it cannot drift from the published build. It always compiles on a publisher run. On push CI it keeps the old change gate (Docker/,.github/compile-test/,upstream-version.json, feature branches diffed against their merge-base withdevelop) and adds the hooks and the two stubs carrying the hub pin, so a hub release bump is compile-tested before it auto-merges.resolve-upstreamis the tracker's PyPI lookup, replacing the removedresolver-commandinput.repo-config/, which the hub now hosts.WORKFLOW.mdis the hub contract (sections 1 to 6) plus a section 7 holding this repository's pipeline and its own guarantees, renumbered from D10: Docker Hub authentication (was D4.7), the upstream pins (new), the compile test (was D11), and the upstream-dependency watcher (was D8.4). The stale "push CI leaves it off" paragraph is corrected.README.md,OPERATIONS.md, the repo-localAGENTS.mdintro, andGOVERNANCE.md"Repository Layout". Dependabot'sgithub-actionsentries now also scan.github/actions/*.Docker/entrypoint/: the hub lint block runs shellcheck and shfmt over*.sh, which this repository's own lint did not, so the sourced paths are quoted and a trailing blank line removed. No behavior change.Behavior changes worth knowing
WORKFLOW.mdsection 7 records both as deliberate choices against the hub's D1.1 and D1.4.check-upstream-dependency.ymlstays a repository-owned workflow. The hub task runs oneresolve-upstreamhook path, which the version tracker already uses, and accepts only string values, so the watcher cannot be a second caller without a workaround.Verification
python3 scripts/docker_lint.py --root <worktree>(all six linters) and the hub'srepo_gate.pypass locally.python3 spec/audit.py --branch feature/hub-workflow-chain ESPHome-NonRoot(run 2026-10-22T00:13:49Z, hub fb7f02b2) reports nohub-only:,interface:, orconcurrency:finding. What remains is outside this change: a staleDOCKER_HUB_PASSWORDDependabot secret, date-based intent hints on.editorconfig-checker.json,cspell.json, andversion.json, and the Docker Hub short description missing its final period.Part of #319, which closes once a real publish succeeds after promotion.
🤖 Generated with Claude Code