Skip to content

ci: artifact on job missing from build artifacts listing

Created by: burmudar

On the following build

If you look at the artifacts for the job Test (all) you'll see that there is an artifact annotations/0181a54a-920d-4cf4-befe-26ac9b7d8ae9-annotation.md.

If you query for that artifact on the buildkite api, that artifact is not listed.

 curl -s -H "Authorization: Bearer ${TOKEN}" "https://api.buildkite.com/v2/organizations/sourcegraph/pipelines/sourcegraph/builds/156701/artifacts" | grep "annotations/0181a54a-920d-4cf4-befe-26ac9b7d8ae9-annotation.md"

Other annations are uploaded and available on the api

curl -s -H "Authorization: Bearer ${TOKEN}" "https://api.buildkite.com/v2/organizations/sourcegraph/pipelines/sourcegraph/builds/156701/artifacts" | jq '.[] | select(.mime_type=="text/markdown")'
{
  "id": "0181a54c-ad67-485e-b12d-e7dd2cfd9fcd",
  "job_id": "0181a54a-9169-4b6b-9c3e-7d7e3cce0c96",
  "url": "https://api.buildkite.com/v2/organizations/sourcegraph/pipelines/sourcegraph/builds/156701/jobs/0181a54a-9169-4b6b-9c3e-7d7e3cce0c96/artifacts/0181a54c-ad67-485e-b12d-e7dd2cfd9fcd",
  "download_url": "https://api.buildkite.com/v2/organizations/sourcegraph/pipelines/sourcegraph/builds/156701/jobs/0181a54a-9169-4b6b-9c3e-7d7e3cce0c96/artifacts/0181a54c-ad67-485e-b12d-e7dd2cfd9fcd/download",
  "state": "finished",
  "path": "annotations/0181a54a-9169-4b6b-9c3e-7d7e3cce0c96-annotation.md",
  "dirname": "annotations",
  "filename": "0181a54a-9169-4b6b-9c3e-7d7e3cce0c96-annotation.md",
  "mime_type": "text/markdown",
  "file_size": 279,
  "glob_path": null,
  "original_path": null,
  "sha1sum": "5bed1a29009d29108e737217848bdddf3eebafe2"
}
{
  "id": "0181a54c-b5be-4b9f-9ed7-ab3a2cc04b05",
  "job_id": "0181a54a-9162-44a1-84b5-57e49a3e2c88",
  "url": "https://api.buildkite.com/v2/organizations/sourcegraph/pipelines/sourcegraph/builds/156701/jobs/0181a54a-9162-44a1-84b5-57e49a3e2c88/artifacts/0181a54c-b5be-4b9f-9ed7-ab3a2cc04b05",
  "download_url": "https://api.buildkite.com/v2/organizations/sourcegraph/pipelines/sourcegraph/builds/156701/jobs/0181a54a-9162-44a1-84b5-57e49a3e2c88/artifacts/0181a54c-b5be-4b9f-9ed7-ab3a2cc04b05/download",
  "state": "finished",
  "path": "annotations/0181a54a-9162-44a1-84b5-57e49a3e2c88-annotation.md",
  "dirname": "annotations",
  "filename": "0181a54a-9162-44a1-84b5-57e49a3e2c88-annotation.md",
  "mime_type": "text/markdown",
  "file_size": 300,
  "glob_path": null,
  "original_path": null,
  "sha1sum": "759c500aa112e332faffea8b9e18e47f195b5e25"
}
{
  "id": "0181a54c-e823-4995-854e-ea4e7f1c5488",
  "job_id": "0181a54a-915c-4120-9a49-c1209a5ecaeb",
  "url": "https://api.buildkite.com/v2/organizations/sourcegraph/pipelines/sourcegraph/builds/156701/jobs/0181a54a-915c-4120-9a49-c1209a5ecaeb/artifacts/0181a54c-e823-4995-854e-ea4e7f1c5488",
  "download_url": "https://api.buildkite.com/v2/organizations/sourcegraph/pipelines/sourcegraph/builds/156701/jobs/0181a54a-915c-4120-9a49-c1209a5ecaeb/artifacts/0181a54c-e823-4995-854e-ea4e7f1c5488/download",
  "state": "finished",
  "path": "annotations/0181a54a-915c-4120-9a49-c1209a5ecaeb-annotation.md",
  "dirname": "annotations",
  "filename": "0181a54a-915c-4120-9a49-c1209a5ecaeb-annotation.md",
  "mime_type": "text/markdown",
  "file_size": 285,
  "glob_path": null,
  "original_path": null,
  "sha1sum": "71e9372ec752aadfd242de061905be0e4e5aca9d"
}

A possible difference (which does not make sense) is that with these other annotations there are additional files uploaded 🤔