Octo.exe list-releases taking unnecessarily long time


I’ve noticed for some time that using the Octopus CLI octo.exe takes a long time when gathering releases.
I ran it in debug mode today and noticed that it’s gathering all releases on the instance even when --project is provided.

I would expect that when providing a project, it should use the API endpoint: /api/projects/{id}/releases
However, in the logs I see that it’s actually gathering all releases, which takes a significant amount of time:

Octopus Deploy Command Line Tool, version 4.45.0

Detected automation environment: “NoneOrUnknown”

Handshaking with Octopus Server: https://<server>

Handshake successful. Octopus version: 2018.8.12; API version: 3.0.0

GET https://<server>/api/users/me

Authenticated as: domain\user <email>

Loading projects…

GET https://<server>/api/projects

GET https://<server>/api/projects?skip=30&take=30

Loading releases…

GET https://<server>/api/releases

GET https://<server>/api/releases?skip=30&take=30

GET https://<server>/api/releases?skip=60&take=30

GET https://<server>/api/releases?skip=90&take=30

GET https://<server>/api/releases?skip=120&take=30

Hi Andrew,

Thanks for getting in touch.

We’ve had a look at the code and your conclusion is correct, we load every release in Octopus and then filter by project(s) on the client side.

We’re looking into how we can change this to do the filtering on the server side instead.

Thank you and best regards,

Hi Andrew, we have created an issue for this at https://github.com/OctopusDeploy/OctopusClients/issues/370. You can watch the issue to be notified of any updates.

Matt C

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.