Skip to content

test: add --delete-excluded filter tests and --delay-updates+delete tests (#321, #351) - #2471

Merged
oferchen merged 1 commit into
masterfrom
worktree-agent-acee6400
Feb 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
worktree-agent-acee6400

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds 4 integration tests for --delete-excluded with filter rules (task Add transport negotiation stream wrapper crate #321), covering both --exclude shorthand and explicit --filter='exclude ...' rules
  • Adds 2 integration tests for --delay-updates + --delete during-timing interaction (task Add transport session handshake dispatcher #351), verifying that During timing is promoted to After when --delay-updates is active
  • Fixes quick-check flakiness in delay_updates_files_atomically_moved_from_staging by shortening the destination pre-content to ensure different file sizes

Test plan

  • delete_preserves_excluded_log_files_at_dest: --delete with --exclude=*.log preserves excluded files at dest
  • delete_excluded_removes_log_files_matching_exclude_pattern: --delete --delete-excluded removes files matching exclude pattern
  • delete_excluded_with_filter_exclude_rule_removes_tmp_files: --filter='exclude *.tmp' + --delete-excluded removes .tmp files
  • delete_without_delete_excluded_preserves_filtered_tmp_files: --delete alone preserves files matching exclude rule
  • delay_updates_delete_during_deletes_after_rename: During timing promoted to After; extraneous files deleted after rename sweep, no staging artifacts remain
  • delay_updates_delete_during_removes_extraneous_in_subdirs: Same promotion works across nested directory trees

@oferchen
oferchen merged commit 3efff13 into master Feb 22, 2026
9 checks passed
@github-actions github-actions Bot added the test label Feb 22, 2026
@oferchen
oferchen deleted the worktree-agent-acee6400 branch February 22, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant