Skip to content

Fix the unit test that silently skipped the re-parenting path#57

Merged
Phlogistique merged 1 commit into
mainfrom
claude/fix-update-pr-stack-test-flake
Jul 3, 2026
Merged

Fix the unit test that silently skipped the re-parenting path#57
Phlogistique merged 1 commit into
mainfrom
claude/fix-update-pr-stack-test-flake

Conversation

@Phlogistique

Copy link
Copy Markdown
Collaborator

When the simulated squash cherry-pick in test_update_pr_stack.sh lands in the same second as the original feature1 commit, it reproduces its sha exactly; the script then sees the child as already up to date and the test passes without exercising git-merge-onto at all. When the timing crosses a second boundary, the run reaches git-merge-onto, which refuses to start because the test's own tee output sits untracked inside the test repo. So since #56 the test either tested nothing or flaked.

Cherry-pick with -x so the sha always differs, and write the run log outside the repo. Found while rebasing #52.


Generated by Claude Code

When the simulated squash cherry-pick lands in the same second as the
original feature1 commit, it reproduces its sha exactly; the script then
sees the child as already up to date and the test passes without
exercising git-merge-onto at all. When the timing crosses a second
boundary, the run reaches git-merge-onto, which refuses to start because
the test's own tee output sits untracked inside the test repo. So the
test either tested nothing or flaked.

Cherry-pick with -x so the sha always differs, and write the run log
outside the repo.
@Phlogistique Phlogistique marked this pull request as ready for review July 3, 2026 10:54
@Phlogistique Phlogistique merged commit e886bf0 into main Jul 3, 2026
2 checks passed
@github-actions github-actions Bot deleted the claude/fix-update-pr-stack-test-flake branch July 3, 2026 10:55
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