Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getDiffRanges: better fallback for absent patch #2699

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

cklin
Copy link
Contributor

@cklin cklin commented Jan 16, 2025

It was pointed out to me in a meeting today that we do not necessarily need to fall back to full analysis even if we cannot obtain the patch for a specific file (for example, if the diff is too large). Instead, we can continue with diff-informed analysis, using an (already supported) special diff range to cover that entire file.

This PR implements that improvement.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

@cklin cklin marked this pull request as ready for review January 16, 2025 18:08
@Copilot Copilot bot review requested due to automatic review settings January 16, 2025 18:08
@cklin cklin requested a review from a team as a code owner January 16, 2025 18:08
@cklin cklin requested a review from henrymercer January 16, 2025 18:08

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

henrymercer
henrymercer previously approved these changes Jan 16, 2025
Copy link
Contributor

@henrymercer henrymercer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 👍

Base automatically changed from cklin/diff-informed-status-report to main January 16, 2025 20:47
@cklin cklin dismissed henrymercer’s stale review January 16, 2025 20:47

The base branch was changed.

@cklin cklin merged commit 0f1559a into main Jan 16, 2025
267 checks passed
@cklin cklin deleted the cklin/diff-informed-file-fallback branch January 16, 2025 21:46
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.

3 participants