-
Notifications
You must be signed in to change notification settings - Fork 22
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
add default BioC_mirror for CI=TRUE env #187
base: devel
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDIT: Maybe I'm overthinking the comments below; the ci-mirror will just be a simple sync of the default mirror, not trying to deliver anything special for the specific CI platforms.... sorry for going off on a tangent...
This seems to commit Bioc to maintaining a complete mirror, and therefore all repositories -- software, annotation, experiment, workflow, book -- for each version and CI platform.
Also, if I understand, the change replaces the default mirror (https:/bioconductor.org), so that if a package is, for whatever reason, not in the container repository, it will not be found in the default repository.
The strategy adopted for supporting binary containers is different -- a single repository for each binary platform, placed at higher priority that the default mirror.
Is there a reason not to generalize the container approach, with a url like CI_BASE_URL <- "https://bioconductor.org/packages/<BIOC_VERSION>/ci_packages/<CI_PLATFORM>"
(or https://ci-mirror.bioconductor.org/<BIOC_VERSION>/<CI_PLATFORM>
)? The first formulation might be preferred for consistency with the binary package solution.
The single repository at the end of this URL would include all packages available for BIOC_VERSION
and CI_PLATFORM
(rather than separate software, annotation, etc., remembering that package names have to be globally unique anyway). Packages not (yet) available for a CI platform would be found in the default mirror.
The patch requires documentation & unit tests to the extent that these are possible.
Refactoring . env_opt_lgl()
might be taken to a separate pull request, and applied systematically?
I think a complete mirror (EDIT: for current With that being said, I agree that completely replacing ^^All of the above with the disclaimer that I am very much a youngling when it comes to understanding |
thanks for all the discussion here. I am very concerned about the complexity. I wonder whether biocmanager is becoming overloaded with functions that do not address its main concerns of organizing an installation for a user. it would be good to think about factoring repository- and version- and platform-oriented calculations away from "processing user request to valid installation" calculations. this could be a basis for well-designed tests? |
Thanks for the review Martin. I will work on updates. I think setting a |
Good point. Does the current patch actually redirect binary queries to ci-mirror... or is the binary URL hard-coded? I'm not sure (maybe it does...) that the usual mirroring mechanism (rsync) supports the path to binaries (there's some authentication step involved, and it might restrict what can be synced...). Also not sure that one would want the binary URL to be built on the mirror, since mirrors will often not contain the binary repository... |
- fallback to bioconductor.org - update docs
- read from config.yaml - find CI in institution value
As a first pass, I've set up a tentative configuration for the |
The current patch checks for a valid
Yes, they don't often contain the binary repository but now they can |
Where is |
Thanks, that bit of code I just removed. |
Hi Martin, @mtmorgan
Here is a draft PR to re-direct
CI=TRUE
environments to low-cost egress services via theBioC_mirror
option.cc: @almahmoud @vjcitn