Skip to content

Use the eager Pkg server registry, by default#30

Closed
DilumAluthge wants to merge 14 commits intomasterfrom
dpa/eager
Closed

Use the eager Pkg server registry, by default#30
DilumAluthge wants to merge 14 commits intomasterfrom
dpa/eager

Conversation

@DilumAluthge
Copy link
Copy Markdown
Member

@DilumAluthge DilumAluthge commented Feb 15, 2023

Fixes #14

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 15, 2023

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (98ab822) compared to base (252d468).
Patch has no changes to coverable lines.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #30   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            2         2           
=========================================
  Hits             2         2           

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.

@fredrikekre
Copy link
Copy Markdown
Contributor

fredrikekre commented Mar 13, 2023

What is needed to push this over the finish line? For example for Literate.jl, CI takes 7m14s for Windows but 1m45s for Ubuntu. (https://github.com/fredrikekre/Literate.jl/actions/runs/3950203865/jobs/6762429082). It seems extremely wasteful that the Julia ecosystem use so much CI for this.

I am sure eager registry is fine, but an alternative would be to download the current snapshot of General#master from GitHub directly.

pref_key = "JULIA_PKG_SERVER_REGISTRY_PREFERENCE"
pref_value = strip(get(ENV, pref_key, "eager"))
ENV[pref_key] = pref_value
input = strip(ENV["PROPAGATE_INPUT"])
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is this PROPAGATE_INPUT stuff? I'm confused why this fix is not a lot simpler; just set the env variable and done? It seems it is adding these extra options that are pretty unlikely to be used in practice. If someone wants some special behavior they can just add that to their own CI files.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was about to say the same. If you need this then it should go in the root environment key of the CI job description. It seems strange that it is "hidden" in the buildpkg action (which most packages should not need to use anyway).

@SaschaMann
Copy link
Copy Markdown
Member

superseded by #31 but thanks for opening this PR!

@SaschaMann SaschaMann closed this Mar 13, 2023
@DilumAluthge DilumAluthge deleted the dpa/eager branch March 13, 2023 14:30
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.

Reconsider using Pkg server by default for the registry

5 participants