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

1.7 compat #74

Merged
merged 12 commits into from
Dec 4, 2021
Merged

1.7 compat #74

merged 12 commits into from
Dec 4, 2021

Conversation

mmiller-max
Copy link
Member

Testing full CI. Needs a bit of work (one failing test I think) and tidying

@codecov
Copy link

codecov bot commented Jul 20, 2021

Codecov Report

Merging #74 (b956c7a) into master (14d94a1) will increase coverage by 7.92%.
The diff coverage is 95.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
+ Coverage   88.99%   96.92%   +7.92%     
==========================================
  Files           7        7              
  Lines         509      520      +11     
==========================================
+ Hits          453      504      +51     
+ Misses         56       16      -40     
Impacted Files Coverage Δ
src/TestReports.jl 100.00% <ø> (ø)
src/compat_check.jl 89.88% <75.00%> (+5.97%) ⬆️
src/runner.jl 97.77% <97.56%> (+15.32%) ⬆️
src/testsets.jl 99.03% <0.00%> (+2.88%) ⬆️
src/to_xml.jl 100.00% <0.00%> (+4.41%) ⬆️

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 14d94a1...b956c7a. Read the comment docs.

@mmiller-max mmiller-max mentioned this pull request Jul 20, 2021
@mmiller-max mmiller-max changed the title WIP - 1.7 combat 1.7 compat Dec 1, 2021
@mmiller-max
Copy link
Member Author

Well the release of 1.7 forced my hand a bit with this one! Looks good to go though.

Its not super pretty but it replicates the same behaviour as what we are doing on 1.6. Also bonus is that it passes on nightly.

Lets keep 1.0 compat for now, although it may be worth removing it to overhaul the code somewhat.

@mmiller-max mmiller-max requested a review from oxinabox December 1, 2021 18:19
@@ -151,10 +154,11 @@ function get_dep_entries end
if haskey(getdeps(active_env.manifest), testreport_proj.deps[dep])
push!(deps_to_check, getdeps(active_env.manifest)[testreport_proj.deps[dep]])
else
version_number = isa(testreport_proj.compat[dep], String) ? VersionNumber(testreport_proj.compat[dep]) : VersionNumber(testreport_proj.compat[dep].str)
Copy link
Member

Choose a reason for hiding this comment

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

Can we do something like

Suggested change
version_number = isa(testreport_proj.compat[dep], String) ? VersionNumber(testreport_proj.compat[dep]) : VersionNumber(testreport_proj.compat[dep].str)
version_number = string(testreport_proj.compat[dep])

Copy link
Member Author

Choose a reason for hiding this comment

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

In 1.7 VersionNumber(testreport_proj.compat[dep] is a Pkg.Types.Compat which is a new type that didn't exist, so string(testreport_proj.compat[dep]) just produces something like "Compat(VersionSpec(\"1.0\"), \"1.0\")". However I can make this line clearer

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh I see you mean not use VersionNumber. Yes quite possibly. I've been thinking about this and it feels like there must be a better solution/I'm not sure this is working exactly as intended. For this PR I'll keep using VersionNumber as it keeps the behaviour consistent, but I think a better way may be to to use VersionSpec.

Copy link
Member Author

Choose a reason for hiding this comment

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

#79

@mmiller-max mmiller-max merged commit 9f83893 into master Dec 4, 2021
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.

2 participants