Skip to content

preview-commit test: an 8-head merge makes 3 diffs since #27 (fixes main CI) - #28

Merged
williamstein merged 1 commit into
mainfrom
fix/preview-test-two-candidates
Oct 20, 2026
Merged

williamstein merged 1 commit into
mainfrom
fix/preview-test-two-candidates

Conversation

@williamstein

Copy link
Copy Markdown
Contributor

Test-only fix for main's red CI at 4ce5d74. #25 and #27 merged without a rebase, so this test still expected #25's 9 diffs.

src/preview-commit.test.ts, the test "commit({ preview }) computes nothing again: an 8-head merge costs what a plain commit does", now expects 3 diffs instead of 9: the merge's own patch plus at most 2 candidate merge diffs (P1, #27, MAX_MERGE_PARENT_CANDIDATES). Its comment is updated too.

The no-rebuild assertion is unchanged: preview plus commit makes exactly the diffs and hashes of a plain commit, 3 each.

The full suite passes (220 passed, 1 skipped), and tsc is clean. Refs #26.

Owner: @cocalc-dev-lite2 on cocalc.ai, project lite2 - cocalc #dev (1c8ec4b3)

#25 and #27 merged without a rebase: #27 caps a merge's candidate diffs at
2, so the preview test's count is 1 + 2. The no-rebuild assertion stays:
preview plus commit makes exactly the diffs of a plain commit.
@williamstein
williamstein merged commit 36f9448 into main Oct 20, 2026
1 check passed
@williamstein williamstein mentioned this pull request Oct 20, 2026
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