nf-core / tools

Python package with helper tools for the nf-core community.
https://nf-co.re
MIT License
241 stars 189 forks source link

CI Runs failing due to (potential) bug in utils method for fetching repo releases #3264

Open awgymer opened 4 hours ago

awgymer commented 4 hours ago

Description of the bug

The method nf_core.utils.get_repo_releases is failing tests when trying to check MultiQC branches contain main.

The root of this issue is that the API endpoint we hit returns at most 30 branches. Branches are returned alphabetically and it seems that overnight MultiQC got new branches which have pushed main onto the second page, and we do not iterate paginated API results.

It is worth noting that the same method calls endpoints for releases and tags which may also be paginated (although with higher per-page limits) and it is unclear to me what the effects of not iterating paginated results would be downstream on that method.

Command used and terminal output

No response

System information

No response