Skip to content

Make sync previews and repository configuration auditable - #94

Merged
rohoswagger merged 2 commits into
mainfrom
test/sync-config-coverage
Aug 4, 2026
Merged

Make sync previews and repository configuration auditable#94
rohoswagger merged 2 commits into
mainfrom
test/sync-config-coverage

Conversation

@rohoswagger

Copy link
Copy Markdown
Owner

Part of a stack managed by ez.

Exercise config output, validation, idempotency, and non-mutation contracts alongside sync dry-run previews for fork and native-stack workflows plus clean autostash behavior, all through real temporary repositories and a strict no-network GitHub shim.

Constraint: Dry-run tests must prove that neither GitHub nor stack state is mutated.

Confidence: high

Scope-risk: narrow

Reversibility: clean

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

Not-tested: Live GitHub sync mutation paths are covered in the native-stack and production canary suites.
Advance the bare remote without updating local tracking refs, then assert sync dry-run leaves origin/main unchanged for both fork and native-stack previews. Initialize the bare repository directly in its owned temp directory so cleanup removes the complete fixture.

Constraint: A preview must not fetch, mutate stack state, or call GitHub.

Confidence: high

Scope-risk: narrow

Reversibility: clean

Tested: cargo test --test sync_config_cli --all-features; focused sync_dry_run tests; cargo clippy --test sync_config_cli --all-features -- -D warnings; cargo fmt --check

Related: Independent review findings on PR #94.
@rohoswagger
rohoswagger merged commit 3e76f7f 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