Skip to content

fix(test): tolerate a shallow Core checkout in the parity pin - #19

Merged
Xuepoo merged 1 commit into
mainfrom
cmd/hygiene-0026
Oct 22, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
cmd/hygiene-0026

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Priority: P2 | Area: plugins | Labels: fix, P2, area:plugin | Milestone: v0.1.0 | RFC: none | Task: fleet hygiene pass

Summary

  • Guard the live-host parity pin so a shallow Core checkout does not fail the
    suite.

Why

The HISTORY_READ_MERGE pin (bitty 76fa42d6, PR #1673) is not stale:
GitHub reports main as 416 commits ahead and 0 behind that commit, so it is
an ancestor upstream. The local Core checkout is shallow, and a shallow clone
grafts its boundary commits parentless; git merge-base --is-ancestor cannot
traverse the boundary, so the test failed on a healthy main.

The fix skips only the ancestry proof when
git rev-parse --is-shallow-repository reports true, prints a notice, and
keeps the surface assertion that proves the history-read capability exists at
fresh origin/main. Full checkouts still prove the pin.

Verification

  • BITTY_WORKSPACE=<workspace> just check passes; the live parity suite runs
    (58 tests) and prints the shallow-checkout notice.

The parity pin (`HISTORY_READ_MERGE`, bitty 76fa42d6) is an ancestor of
`origin/main` upstream, but the local Core checkout is shallow. A shallow
clone grafts its boundary commits parentless, so `git merge-base
--is-ancestor` cannot traverse past the boundary and the test failed on a
healthy main.

Skip only the ancestry proof when `git rev-parse --is-shallow-repository`
reports true, with a notice, and keep the surface assertion that proves the
history-read capability is present at fresh `origin/main`. Full checkouts
still prove the pin.
@Xuepoo Xuepoo added this to the v0.1.0 milestone Oct 22, 2026
@Xuepoo Xuepoo added fix Bug fix area:plugin Plugin manifest and runtime surface P2 Normal priority labels Oct 22, 2026
@Xuepoo
Xuepoo merged commit f3016ef into main Oct 22, 2026
7 checks passed
@Xuepoo
Xuepoo deleted the cmd/hygiene-0026 branch October 22, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:plugin Plugin manifest and runtime surface fix Bug fix P2 Normal priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant