Download pipelines with authenticated GH API calls#3607
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
Oops wrong base branch. Fixed. |
|
Done. Test failures (most likely) unrelated or at least I have no idea what they mean. |
There is a problem mapping your CLI arguments to the parameters of the Apart from that, please mind that there is a major refactor of Downloads ongoing (#3634). Preferably, all new contributions would already be based on and point to this new structure. |
|
How does this fit with the pipeline downloads refactoring @MatthiasZepper @jpfeuffer? |
|
Good question. Who knows more about the refactor? |
|
Yes, I checked. And the mechanism for a download of the repo data/files is still the same. |
|
And well there needs to be a little fix for the CLI apparently. Note that I just added the CLI option because I still wanted to allow downloads from the Zip URLs because they will never be rate-limited. While non-authenticated downloads from the API can be. |
c8d134c to
592d621
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I quickly let copilot rebase the changes. (and fixed the cli bug) |
- Rename --api-download to --authenticated for better UX - Replace os.rename with Pathlib operations - Refactor download_wf_files method to reduce code duplication - Rename compress to compress_type consistently across codebase - Update all references and tests accordingly
JulianFlesch
left a comment
There was a problem hiding this comment.
Sorry for taking my time with this review. The repo download could probably be simplified further and I think we should get away without adding a new flag, if I am not missing something.
Is it also a target of this PR to add downloads from different sources (i.e. private repos)?
|
Yep, private/internal (GitHub) repos should be supported by this. This is basically my use case. The download_url unification should be addressed by my latest changes. |
|
Ok, my revised suggestion:
What do you think? Thanks for this feature @jpfeuffer and sorry for being a bit picky on these details, I am just trying to keep the complexity as low as can be. |
|
Hi @jpfeuffer , I will quickly commit my most recent comments and merge this PR. This is to avoid your feature becoming stale and to have this available in the dev version. |
|
Thank you, yes the comments make sense I think. I have just been busy with other stuff. |
For repos that follow the nf-core template but need authentication.
PR checklist
CHANGELOG.mdis updateddocsis updated