Deprecation notice: Treeherder /jobdetail/ endpoint for uploaded artifacts #43
Comments
I took a look and it seems fine. One thing you might want to look into is a
We're not querying the taskcluster API in the same way you are, so your best bet is to ask someone in the #taskcluster matrix channel. You might also want to ask if you're better off using the taskcluster-lib-urls library rather than hard-coding the API url (due to any versioning changes in the future). |
Treeherder will stop storing uploaded artifacts in our JobDetail table since its a write intensive action and the artifacts can be retrieved via a taskcluster API. Tentative deadline is April 30th.
What you'll need to do:
Stop using the
/jobdetail/endpoint to retrieve the uploaded artifacts.Instead, extract
task_idandretry_id(synonymous with run) from any of the/jobs/endpoints (you won't needjob_idanymore if you're only using it for the/jobdetail/endpoint).For UI code, you'll want to generate the url like this to retrieve artifacts (to retrieve all or by specific artifact value/name, depending on your needs). Use
https://firefox-ci-tc.services.mozilla.comas the rootUrl and the taskcluster-lib-urls library.To format the code in the UI so it has the same keys as what the
/jobdetail/endpoint returns you'll want a helper like this one.For python code, the equivalent is here
Let me know if you have questions :)
The text was updated successfully, but these errors were encountered: