Skip to content

Prove branch creation and restacking against real repositories - #93

Merged
rohoswagger merged 2 commits into
mainfrom
test/create-restack-coverage
Aug 4, 2026
Merged

Prove branch creation and restacking against real repositories#93
rohoswagger merged 2 commits into
mainfrom
test/create-restack-coverage

Conversation

@rohoswagger

Copy link
Copy Markdown
Owner

Part of a stack managed by ez.

Add hermetic CLI scenarios for create parent selection, scope and hook metadata, tracked versus untracked staging, remote trunk advancement, linked-worktree restacking, dirty-worktree recovery, and merge-commit preflight refusal.

Constraint: Coverage must use real Git state while remaining offline and deterministic.

Confidence: high

Scope-risk: narrow

Reversibility: clean

Tested: cargo test --test create_restack_cli --all-features; cargo test --all-targets; cargo llvm-cov --all-targets; cargo clippy --all-targets --all-features -- -D warnings; cargo fmt --check

Not-tested: Live GitHub APIs are outside these create/restack paths.
Initialize the bare test remote with an explicit main branch so writer clones behave identically on Linux and macOS regardless of the runner's init.defaultBranch configuration.

Constraint: Production-like tests must not inherit machine-specific Git defaults.

Confidence: high

Scope-risk: narrow

Reversibility: clean

Tested: cargo test --test create_restack_cli --all-features; focused remote-trunk restack test

Related: GitHub Actions run 30687728992.
@rohoswagger
rohoswagger merged commit d6c2131 into main Aug 4, 2026
6 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.

1 participant