Skip to content

tests/run.sh: parity only against esphome-ble-advert-filter v1.7.0 - #4

Merged
davidcoulson merged 1 commit into
mainfrom
pin-parity-commit
Oct 10, 2026
Merged

davidcoulson merged 1 commit into
mainfrom
pin-parity-commit

Conversation

@davidcoulson

Copy link
Copy Markdown
Owner

Found by a Codex review.

This fork is frozen at esphome-ble-advert-filter v1.7.0, but tests/run.sh compared against whatever it found: HOOK_REPO, a sibling checkout, or a fresh clone of main. A newer or locally modified checkout could pass without proving anything about the code this fork ships. Since v2.0.0, a plain tests/run.sh cloned main and failed parity for a reason unrelated to this fork.

Now:

  • It clones the v1.7.0 tag by default.
  • It refuses a HOOK_REPO that isn't at the pinned v1.7.0 commit or that has local changes.
  • The sibling-checkout shortcut is gone, since that checkout was usually on main.
  • CI already checks out v1.7.0 and is unaffected.

Tested:

  • The default clone of v1.7.0 passes.
  • An explicit v1.7.0 checkout passes.
  • A main checkout is refused with a clear message.

🤖 Generated with Claude Code

This fork is frozen at esphome-ble-advert-filter v1.7.0, but run.sh compared
against whatever checkout it found: HOOK_REPO, a sibling checkout, or a fresh
clone of main. A newer or locally modified checkout could pass without saying
anything about the code this fork ships, and since v2.0.0 a plain run cloned
main and failed parity for a reason unrelated to this fork.

Clone the v1.7.0 tag by default, and refuse a HOOK_REPO that is not at the
pinned v1.7.0 commit or has local changes. The sibling-checkout shortcut is
gone: it was usually on main. CI already checks out v1.7.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@davidcoulson
davidcoulson merged commit ad9957f into main Oct 10, 2026
6 checks passed
@davidcoulson
davidcoulson deleted the pin-parity-commit branch October 10, 2026 17:01
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