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

fix(vcs): Consider VCS configurations in cache lookup #9800

Conversation

wkl3nk
Copy link
Contributor

@wkl3nk wkl3nk commented Jan 21, 2025

When looking up a VCS implementation by repository URL or by a working tree directory from the cache, also consider the requested VCS configurations.

Fixes #9795.

@wkl3nk wkl3nk requested a review from a team as a code owner January 21, 2025 17:39
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.07%. Comparing base (3c4de5d) to head (584c41a).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9800   +/-   ##
=========================================
  Coverage     68.07%   68.07%           
  Complexity     1285     1285           
=========================================
  Files           249      249           
  Lines          8828     8828           
  Branches        918      918           
=========================================
  Hits           6010     6010           
  Misses         2432     2432           
  Partials        386      386           
Flag Coverage Δ
funTest-docker 65.00% <ø> (ø)
funTest-non-docker 33.35% <ø> (ø)
test-ubuntu-24.04 35.90% <ø> (ø)
test-windows-2022 35.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

downloader/src/test/kotlin/VersionControlSystemTest.kt Outdated Show resolved Hide resolved
downloader/src/test/kotlin/VersionControlSystemTest.kt Outdated Show resolved Hide resolved
downloader/src/test/kotlin/VersionControlSystemTest.kt Outdated Show resolved Hide resolved
downloader/src/main/kotlin/VersionControlSystem.kt Outdated Show resolved Hide resolved
downloader/src/main/kotlin/VersionControlSystem.kt Outdated Show resolved Hide resolved
When looking up a VCS implementation by repository URL or by
a working tree directory from the cache, also consider the requested
VCS configurations.

Fixes oss-review-toolkit#9795.

Signed-off-by: Wolfgang Klenk <[email protected]>
@wkl3nk wkl3nk force-pushed the wkl3nk/consider-vcs-configurations-in-cache-lookup branch from 485d5de to 584c41a Compare January 22, 2025 07:06
@sschuberth sschuberth enabled auto-merge (rebase) January 22, 2025 07:08
Copy link
Member

@sschuberth sschuberth left a comment

Choose a reason for hiding this comment

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

I have some ideas how to make this nicer while maybe changing semantics a bit. But let's get this in as-is for tomorrow's release.

@sschuberth sschuberth merged commit ae58bb8 into oss-review-toolkit:main Jan 22, 2025
25 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.

VersionControlSystem.forURL(...) incorrectly returning cached VCS instance
2 participants