Skip to content

[Bug]: bk artifacts download is unusably slow #923

Description

@zenspider

Contact Details

um. here?

What happened?

(from an email I sent to support@ who sent me here)

I found this to be tedious at best:

bk artifacts ls -p platform | jq -r '.[] | select(.path | test("rspec.*json")) | .id' | xargs -n1 bk artifacts download -p platform

given:

3183 $ bk artifacts ls -p platform | jq -r '.[] | select(.path | test("rspec.*json")) | .id' | wc -l
     70

this is SUPER slow with xargs -n1. It's equally slow(er) not trying to grab specific files. bk build download is incredibly fast by comparison.

PLEASE, either let me specify multiple IDs per cmdline OR allow me to select on the path(s) I want, OR let me get the whole shebang in one fast zip. I would much prefer:

bk artifacts download -p platform 'log/rspec*.json'

or even

bk artifacts download -p platform $(bk artifacts ls -p platform | jq -r '.[] | select(.path | test("rspec.*json")) | .id')

and better/relatedly... I'd rather all the artifacts be included with bk build download since that's actually fast but seemingly unhelpful since it contains TWO of the rspec files in question (I really don't understand that at all and am guessing that I'm not getting some fundamental concept).

I can share more details if it helps.

Version

3.49.2

What environment are you seeing the problem on?

Local Development

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions