Skip to content

Conversation

@seemethere
Copy link
Collaborator

Adds comprehensive test coverage for the merge rules feature:

  • test/merge_rules/yaml_parsing.py.test: YAML parsing tests
  • test/merge_rules/pattern_matching.py.test: fnmatch pattern tests
  • test/merge_rules/approval_validation.py.test: approver validation tests
  • test/merge_rules/check_validation.py.test: CI check validation tests
  • test/merge_rules/ignore_flaky.py.test: ignore_flaky_failures flag tests

Adds land command integration tests:

  • test/land/validate_rules_fail.py.test: validation blocks land
  • test/land/validate_rules_pass.py.test: validation passes and lands
  • test/land/dry_run.py.test: dry run mode validates but doesn't land

Also adds helper functions to test_prelude.py:

  • set_pr_files, set_pr_reviews, set_pr_check_runs
  • Updated gh_land to support validate_rules, dry_run, comment_on_failure flags

Co-authored-by: Cursor cursoragent@cursor.com

[ghstack-poisoned]
seemethere added a commit that referenced this pull request Feb 3, 2026
Adds comprehensive test coverage for the merge rules feature:

- test/merge_rules/yaml_parsing.py.test: YAML parsing tests
- test/merge_rules/pattern_matching.py.test: fnmatch pattern tests
- test/merge_rules/approval_validation.py.test: approver validation tests
- test/merge_rules/check_validation.py.test: CI check validation tests
- test/merge_rules/ignore_flaky.py.test: ignore_flaky_failures flag tests

Adds land command integration tests:
- test/land/validate_rules_fail.py.test: validation blocks land
- test/land/validate_rules_pass.py.test: validation passes and lands
- test/land/dry_run.py.test: dry run mode validates but doesn't land

Also adds helper functions to test_prelude.py:
- set_pr_files, set_pr_reviews, set_pr_check_runs
- Updated gh_land to support validate_rules, dry_run, comment_on_failure flags

Co-authored-by: Cursor <cursoragent@cursor.com>
ghstack-source-id: 4a5247e
ghstack-comment-id: 3838814339
Pull-Request: #321
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