Skip to content

Require the plugin version to be above the tip of origin/main too - #56

Merged
gabe4coding merged 1 commit into
mainfrom
claude/ecstatic-bohr-cp92gw
Oct 13, 2026
Merged

gabe4coding merged 1 commit into
mainfrom
claude/ecstatic-bohr-cp92gw

Conversation

@gabe4coding

Copy link
Copy Markdown
Owner

Problem

test_a_change_to_the_cached_files_raises_the_version compared the version only with the merge base. Two branches from the same main (0.11.3) can both raise to 0.11.4 and pass. After the first branch merges, the second branch ships other cached files under the same version. The per-version plugin cache of Claude Code and Codex then does not copy them. This happened on 2026-10-13.

Change

  • tests/test_plugin.py: when the cached files (CACHED) change, the new version must be above the version at the merge base and at the tip of origin/main. The failure message names each version that blocks. The CI skip and fail rules for a missing origin/main do not change.
  • tests/test_plugin.py: new self-test test_the_new_version_must_be_above_each_old_one for the comparison. It has no git setup.
  • CODING_STANDARDS.md: the version must be above the version on main now. Merge main just before the PR merges, because the test sees only the main it fetched.

Limit

The test checks the main that CI fetched. If a branch passed CI before another branch merged, the test catches the conflict only when CI runs again. To close this gap, turn on "require branches to be up to date" or a merge queue in the GitHub settings.

Verification

  • scripts/test --all: 1720 passed, 13 skipped.
  • Manual race test with a fake origin/main ref that was restored after:
    1. Cached file changed, no raise: fails ("not above 0.11.4 on the merge base, 0.11.4 on origin/main").
    2. Raised to 0.11.5, main at 0.11.4: passes.
    3. Raised to 0.11.5, main tip already at 0.11.5: fails ("not above 0.11.5 on origin/main"). The old test passed this case.
  • /verify: SKIP (the change is to tests and docs only).

🤖 Generated with Claude Code

https://claude.ai/code/session_017PU3Bi7LSMdy1ByFedCJdR


Generated by Claude Code

The version test compared only with the merge base. Two branches cut from
the same main could both raise 0.11.3 to 0.11.4 and pass; after the first
merged, the second shipped other cached files under the same version, and
the per-version plugin cache never copied them.

When the cached files change, the new version must now be above the
version at the merge base and at the tip of origin/main. The CI skip and
fail rules for a missing origin/main stay the same. A fast self-test
covers the comparison, and CODING_STANDARDS.md says to merge main just
before the PR merges, because the test sees only the main it fetched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PU3Bi7LSMdy1ByFedCJdR
@gabe4coding
gabe4coding marked this pull request as ready for review October 13, 2026 16:15
@gabe4coding
gabe4coding merged commit 0691b8f into main Oct 13, 2026
2 checks passed
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.

2 participants