Uh oh!
There was an error while loading. Please reload this page.
Add more tests for patching - #987
Conversation
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThis PR adds a new BDD feature for patch fuzzy matching and enhances test infrastructure. It includes documentation updates to reference patch scenarios, a new feature test file for fuzzy patch matching, and new step definitions supporting directory-aware patch file creation and remote repository modifications. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Fix all issues with AI agents
In `@dfetch/manifest/project.py`:
- Around line 274-275: The SVN documentation block in project.py incorrectly
includes the git-only feature file patch-fuzzy-matching.feature; either remove
the line ".. scenario-include:: ../features/patch-fuzzy-matching.feature" from
the SVN section or add a SVN-specific variant (e.g.,
../features/patch-fuzzy-matching-svn.feature) that replaces git-specific steps
like "a git repository" and "in git-repository" with SVN equivalents, and update
the include to reference that new SVN variant; look for the existing SVN-related
include lines (e.g., ".. scenario-include::
../features/patch-after-fetch-svn.feature") to place or remove the reference
accordingly.
In `@features/patch-fuzzy-matching.feature`:
- Around line 49-58: The step that creates the override patch is writing it to
the wrong directory: change the Gherkin step "And the patch file
'SomeProject.patch' in SomeProject" so the patch is created under the manifest
directory (i.e., in MyProject) instead of SomeProject; update the step fixture
so the file path for the patch is MyProject/SomeProject.patch to ensure dfetch
resolves the manifest-relative patch declared as patch: SomeProject.patch.
- Around line 60-71: The test hardcodes the Dfetch version string; update the
multisub patterns used by the check_output function so the dfetch_title regex is
applied to replace version strings. In practice, import/Reference the existing
dfetch_title regex (from generic_steps.py) and add it to the multisub list
inside check_output (the multisub variable used in check_output) so version
lines like "Dfetch (0.11.0)" are normalized along with existing substitutions
for git hashes and timestamps.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary by CodeRabbit
New Features
Tests