Skip to content

BF: Fix invalid version comparison - #7249

Merged
yarikoptic merged 1 commit into
datalad:maintfrom
bpoldrack:fix-version-kludge
Jan 12, 2023
Merged

BF: Fix invalid version comparison#7249
yarikoptic merged 1 commit into
datalad:maintfrom
bpoldrack:fix-version-kludge

Conversation

@bpoldrack

@bpoldrack bpoldrack commented Jan 12, 2023

Copy link
Copy Markdown
Member

Specifying 10.20221212+git18 as requirement doesn't work, when the reported version of an annex build is using a different scheme. It was used because the git-annex version required isn't released yet. See issue 7248.

However, we know the scheme of annex versions (it's a date after the dot), therefore setting the required version to one day after the previous release does the trick with respect to released annex versions. Hence, we will use this only with the coming release (not a current snapshot). But that is clearly more sensible than crashing on an annex version that doesn't support it yet.

Closes #7248

Specifying 10.20221212+git18 as requirement doesn't work, when the
reported version of an annex build is using a different scheme. It was
used because the git-annex version required isn't released yet. See
issue 7248.

However, we know the scheme of annex versions (it's a date after the
dot), therefore setting the required version to one day after the
previous release does the trick with respect to released annex versions.

Closes 7248
@bpoldrack bpoldrack added the semver-patch Increment the patch version when merged label Jan 12, 2023
@bpoldrack
bpoldrack marked this pull request as ready for review January 12, 2023 11:06
@bpoldrack bpoldrack added the release Create a release when this pr is merged label Jan 12, 2023
@codecov

codecov Bot commented Jan 12, 2023

Copy link
Copy Markdown

Codecov Report

Base: 88.71% // Head: 88.71% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (ed7caa5) compared to base (9d3818f).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##            maint    #7249   +/-   ##
=======================================
  Coverage   88.71%   88.71%           
=======================================
  Files         326      326           
  Lines       44420    44420           
  Branches     5919     5919           
=======================================
+ Hits        39407    39409    +2     
+ Misses       4998     4996    -2     
  Partials       15       15           
Impacted Files Coverage Δ
datalad/support/annexrepo.py 90.43% <100.00%> (ø)
datalad/_version.py 45.68% <0.00%> (ø)
datalad/support/tests/test_parallel.py 95.36% <0.00%> (+1.32%) ⬆️

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.

@bpoldrack bpoldrack removed the release Create a release when this pr is merged label Jan 12, 2023
@yarikoptic

Copy link
Copy Markdown
Member

THANKS! I did feel that I will get us into trouble with that comparison but could not put finger to it... now I know and will try to remember. That comparison by "date based" version is what I thought to use instead too, so there we agree.

@yarikoptic

Copy link
Copy Markdown
Member

travis stall -- filed and issue. let's proceed! Thanks @bpoldrack !

@yarikoptic
yarikoptic merged commit d3662eb into datalad:maint Jan 12, 2023
@yarikoptic-gitmate

Copy link
Copy Markdown
Collaborator

PR released in 0.18.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid git annex findref call on Windows

4 participants