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

Record the proper clone URL in the provenance #5852

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sschuberth
Copy link
Member

Please have a look at the individual commit messages for the details.

@codecov
Copy link

codecov bot commented Sep 22, 2022

Codecov Report

Base: 57.74% // Head: 57.56% // Decreases project coverage by -0.17% ⚠️

Coverage data is based on head (8e2ea6a) compared to base (fe88b1c).
Patch coverage: 5.26% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5852      +/-   ##
============================================
- Coverage     57.74%   57.56%   -0.18%     
  Complexity     2219     2219              
============================================
  Files           326      327       +1     
  Lines         19023    19092      +69     
  Branches       3735     3747      +12     
============================================
+ Hits          10985    10991       +6     
- Misses         6899     6963      +64     
+ Partials       1139     1138       -1     
Flag Coverage Δ
funTest-analyzer-docker 74.57% <ø> (ø)
test 27.61% <0.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...oader/src/main/kotlin/vcs/SubversionWorkingTree.kt 0.00% <0.00%> (ø)
downloader/src/main/kotlin/vcs/Subversion.kt 59.41% <66.66%> (-11.92%) ⬇️
.../curation/ClearlyDefinedPackageCurationProvider.kt 48.80% <0.00%> (+2.38%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sschuberth
Copy link
Member Author

Note to myself: This raises the interesting

io.kotest.assertions.AssertionFailedError: expected:<"https://svn.apache.org/repos/asf/commons/_moved_to_git/beanutils"> but was:<"https://svn.apache.org/repos/asf/commons/_moved_to_git/beanutils/tags/BEANUTILS_1_8_3">

test failure as with Subversion the tag is part of the URL.

sschuberth and others added 4 commits September 23, 2022 10:25
This increases reability and implicitly gives the formerly anonymous class
a name so it can later be referred to. Slightly reorder functions while at
it, so overridden function fo first and private functions go last.

Signed-off-by: Sebastian Schuberth <[email protected]>
This is a fixup for 103a3c1 and fixes #5232.

Signed-off-by: Sebastian Schuberth <[email protected]>
Earlier fallbacks might have tampered with the original URL (e.g. by
stripping credentials), so the `RepositoryProvenance` should record the
actual URL being used for creating the `WorkingTree`.

Signed-off-by: Sebastian Schuberth <[email protected]>
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.

None yet

1 participant