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

Eagerness to avoid LazyArtifacts #444

Merged
merged 2 commits into from
Dec 2, 2020
Merged

Eagerness to avoid LazyArtifacts #444

merged 2 commits into from
Dec 2, 2020

Conversation

palday
Copy link
Member

@palday palday commented Dec 2, 2020

It seems challenging to have lazy artifact downloading be compatible with Julia < 1.6 and 1.6+, see recent test failures and Discourse. However, we use the TestData artifact in __init__ so they're downloaded with the very first using MixedModels, which we can assume most users will want to do not too much after ]add MixedModels. So we can avoid all the laziness issues and just be eager. Slightly longer download times upon initial install, but since the artifacts system has its own caching, there shouldn't be any real performance issues as long as we don't change TestData too often.

@palday
Copy link
Member Author

palday commented Dec 2, 2020

Also, this makes me think we should slightly change our post 1.6 support policy:

Tier 1: Last LTS release
Tier 2: Current release

All of this subject to the condition that there aren't critical new features in LinearAlgebra and Distributed or Threads in a non LTS release.

Currently, our plan is to take current Tier 1 (1.4, 1.5) and make it Tier 2 upon the 1.6 LTS release and make the LTS Tier 1. This is changing plans a bit and going back on a vague support committment, but we also haven't really defined what Tier 1 and Tier 2 support mean anyway...

@palday palday requested a review from dmbates December 2, 2020 13:29
@codecov
Copy link

codecov bot commented Dec 2, 2020

Codecov Report

Merging #444 (b4e402c) into master (f76b4ff) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #444   +/-   ##
=======================================
  Coverage   92.71%   92.71%           
=======================================
  Files          23       23           
  Lines        1716     1716           
=======================================
  Hits         1591     1591           
  Misses        125      125           
Impacted Files Coverage Δ
src/MixedModels.jl 100.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 f76b4ff...b4e402c. Read the comment docs.

Copy link
Collaborator

@dmbates dmbates left a comment

Choose a reason for hiding this comment

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

Thanks for picking up on the use of lazy in the Artifacts.toml file. If I understand correctly, it would not have any effect to change it back to lazy=true for julia v1.6.0+ because the artifact is used in the __init__ function. Would the only difference be that the artifact is downloaded at installation time rather than when the package is first used? If so, it doesn't seem very important to make it lazy.

@palday
Copy link
Member Author

palday commented Dec 2, 2020

@dmbates Your assessment is exactly correct.

@palday palday merged commit 52651b7 into master Dec 2, 2020
@palday palday deleted the pa/lazyartifacts branch December 2, 2020 15:38
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