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

"Getting latest release" takes a very long time on repos with many releases #10

Open
jessebye opened this issue May 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jessebye
Copy link

jessebye commented May 29, 2024

On a repo with many (1,955) releases, we observed the getting latest release step taking almost 4 minutes:

Wed, 29 May 2024 19:05:19 GMT [go-semantic-release]: getting latest release...
Wed, 29 May 2024 19:09:08 GMT [go-semantic-release]: found version: 3.0.2

I believe this happens because the calling code in semantic-release calls GetReleases with no matchRegex and ends up fetching every release that has ever been created.

I'm not sure why this is necessary, but if it could retrieve less releases then this step could be much faster. For example, retrieving the last 30 releases only takes about 2 seconds...

@christophwitzko
Copy link
Member

Hi @jessebye, yes, you are right. This case should be handled better. I have to think a bit more about how we can solve this in a non-breaking manner because, currently, semantic-release needs all tags to find the latest release.

@christophwitzko christophwitzko added the enhancement New feature or request label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants