-
Notifications
You must be signed in to change notification settings - Fork 303
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
Artifact download doesn’t use most recent artifact when names collide #803
Comments
We'll investigate! |
Hello, Hows with investigation on this one ? I am often facing issue as described:
in the next step I use artifact plugin to download application-$BUILDKITE_BUILD_NUMBER.nomad and get:
|
+1 Also experiencing the same in which a generated pipeline uploads multiple instances of an artifact (uploaded with identical names/paths) resulting in subsequent downloads of this artifact name during downstream steps to fail on a (
|
#1268 fixes the case where a single I suspect some people in this issue are experiencing the issue due to separate uploads using the same path, perhaps from different steps within the same build. In those cases, I'd suggest ensuring a path is only uploaded once in the build. You might want to incorporate |
@0x0i and I discovered this issue largely because the buildkite-agent artifact download does not work according to the doumentation, and #1268 does not resolve this issue. Quote from the documentation: "The buildkite-agent artifact command will find the most recent file uploaded with a matching filename, no matter which build step uploaded it. If you want to target an artifact from a particular build step use the --step argument." As anyone in this thread has experienced, it does not download the most recent file, it only downloads unique files uploaded by a pipeline. If this is not the intended behavior we can certainly work around the --step solution but the documentation remains incredibly misleading. |
Oh interesting — I hadn't realised the docs said that. I'll reopen the issue. |
Take the following scenario
logfile.txt
, is uploaded twice by the agent and It's stored twice in the backend:Downloading with
buildkite-agent artifact download logs/logfile.txt logs/
saysIs this the correct behaviour? Should't filter the agent dup files when expanding paths?
Also, i think (not sure) executing this in the
command
for the same job may result in 3 files with the same shabuildkite-agent artifact upload "logs/logfile.txt"
Should backend dedup files with the same sha for the same job?
The text was updated successfully, but these errors were encountered: