Skip to content

Conversation

@Eijebong
Copy link
Contributor

This fixes a regression from 384afee where we started using the taskcluster python client instead of making requests manually.

The artifacts route is special because the API returns some JSON as part of a 303 to the artifact's content URL. The previous code followed that
303. The python client before tascluster 91 does not. So instead we're getting the body which looks like this: {"type": "s3/...", "url": "whereverthe303pointsat"}.

I also fixed the test as the previous one was basically ignoring the fact that taskcluster was returning a 303 and was mocking as if it didn't exist.

Fixes #812
Supersedes #814

This fixes a regression from 384afee
where we started using the taskcluster python client instead of making
requests manually.

The artifacts route is special because the API returns some JSON as part
of a 303 to the artifact's content URL. The previous code followed that
303. The python client before tascluster 91 does not. So instead we're
getting the body which looks like this: `{"type": "s3/...", "url":
"whereverthe303pointsat"}`.

I also fixed the test as the previous one was basically ignoring the
fact that taskcluster was returning a 303 and was mocking as if it
didn't exist.

Fixes taskcluster#812
@Eijebong Eijebong requested a review from a team as a code owner October 14, 2025 17:15
@Eijebong Eijebong requested a review from ahal October 14, 2025 17:15
@ahal ahal merged commit 32de50b into taskcluster:main Oct 14, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

taskgraph.util.taskcluster.get_artifact doesn't return the artifact content anymore

2 participants