agent icon indicating copy to clipboard operation
agent copied to clipboard

[BUG/DOC] Agent Download Bug or Confusing Docs

Open chrisjenx opened this issue 1 year ago • 2 comments

We were running this agent command:

buildkite-agent artifact download --build "0188348b-27ee-42dd-81c4-e43bb25f6df0" shared/shopper-delivering/impl/build/outputs/apk/androidTest/debug/impl-debug-androidTest.apk tmp/

I would expect this to put the file including subfolders under tmp/shared.shopper...etc but it doesn't. I'm not actually sure where it goes, even after ls -l tmp/ it's empty.

We had to resort too:

- buildkite-agent artifact download --build "0188348b-27ee-42dd-81c4-e43bb25f6df0" shared/shopper-delivering/impl/build/outputs/apk/androidTest/debug/impl-debug-androidTest.apk .
- mv shared/shopper-delivering/impl/build/outputs/apk/androidTest/debug/impl-debug-androidTest.apk tmp/impl-debug-androidTest.apk

Not sure if this is a bug or bad docs for expected behavior ?

chrisjenx avatar May 19 '23 15:05 chrisjenx

Hi @chrisjenx, this does look a bit unusual. You might get more detail by passing --debug flag to your command

buildkite-agent artifact download --debug --build "0188348b-27ee-42dd-81c4-e43bb25f6df0" shared/shopper-delivering/impl/build/outputs/apk/androidTest/debug/impl-debug-androidTest.apk tmp/

We agree this is could be something to fix, but as there is a workaround, it's not our highest priority at the moment.

You're also welcome to contact [email protected].

triarius avatar May 24 '23 02:05 triarius

I checked the debug and it outputs what it suggests that it should be doing. So I'm guessing it's failing silently after the debug statement

On Tue, May 23, 2023 at 8:05 PM Narthana Epa @.***> wrote:

Hi @chrisjenx https://github.com/chrisjenx, this does look a bit unusual. You might get more detail by passing --debug flag to your command

buildkite-agent artifact download --debug --build "0188348b-27ee-42dd-81c4-e43bb25f6df0" shared/shopper-delivering/impl/build/outputs/apk/androidTest/debug/impl-debug-androidTest.apk tmp/

We agree this is could be something to fix, but as there is a workaround, it's not our highest priority at the moment.

You're also welcome to contact @.***

— Reply to this email directly, view it on GitHub https://github.com/buildkite/agent/issues/2099#issuecomment-1560357152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI5DMO26QEKUFMFYZEQ6JDXHVUFZANCNFSM6AAAAAAYH6N3ZE . You are receiving this because you were mentioned.Message ID: @.***>

chrisjenx avatar May 24 '23 13:05 chrisjenx