Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

possible semver incompatibility fix #311

Merged
merged 1 commit into from
Nov 13, 2020

Conversation

johnoliver
Copy link
Member

Checklist

  • You added tests to cover the change
  • mvn clean install build and test completes
  • You changed or added to the documentation

@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #311 (dbe14d0) into staging (68dc42c) will decrease coverage by 0.47%.
The diff coverage is 50.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             staging     #311      +/-   ##
=============================================
- Coverage      69.82%   69.34%   -0.48%     
  Complexity       280      280              
=============================================
  Files            100      101       +1     
  Lines           2525     2574      +49     
  Branches         307      313       +6     
=============================================
+ Hits            1763     1785      +22     
- Misses           582      607      +25     
- Partials         180      182       +2     
Impacted Files Coverage Δ Complexity Δ
...openjdk/api/v3/mapping/adopt/AdoptReleaseMapper.kt 69.74% <21.05%> (-11.45%) 17.00 <0.00> (ø)
.../adoptopenjdk/api/v3/mapping/adopt/SemverParser.kt 67.74% <67.74%> (ø) 0.00 <0.00> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68dc42c...2044fcd. Read the comment docs.

@karianna karianna added the bug Something isn't working label Nov 13, 2020
@karianna karianna added this to the November 2020 milestone Nov 13, 2020
.sortedBy { ghAssetWithMetadata -> ghAssetWithMetadata.value.version.toApiVersion() }
.last().value.version.toApiVersion()

version = if (version.semver != version.formSemver()) {
Copy link
Member

Choose a reason for hiding this comment

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

We should extract into its own function since its a special case

Copy link
Member

Choose a reason for hiding this comment

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

Do we have a test for this special case?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants