Document ingesting old builds-4h pushes



Tree Management
Treeherder: Docs & Development
a year ago
a year ago


(Reporter: jfrench, Unassigned)




(1 attachment)



a year ago
During work on bug 1294525 camd showed me jgraham's groovy way to ingest a push from an old builds-4h. I'm wondering if this would be a useful addition to the docs, below our existing "Ingesting a single push (at a time)" section

If I understand it correctly, the general steps are:

1) Find an old push on prod that you'd like to ingest locally
2) Find the corresponding date/time builds-4h url .gz in
3) Download, unzip, open it and find the 'got_revision' SHA you need *
4) Optional: thpurge, re-provision your vagrant to be sure what you're ingesting

5) Switch treeherder/config/ BUILDAPI_BUILDS4H_URL to your custom value

6) In vagrant, ingest the push
./ ingest_push [repo] [SHA]
eg. ./ ingest_push comm-central 2540c39cc958

* avoids any browser hang directly opening a large builds-4h .gz

Just wondering what you guys think? I wasn't aware it was possible reading the current docs. For a title, perhaps we could create a separate block called "Ingesting an old push", or flesh out the existing section to describe everything.
I'm a massive fan of good docs, however I think there's sometimes a fine line between documenting lots of useful things and the docs becoming so verbose people dislike looking through them, so miss even the most important items.

For this workflow, if we were going to try and improve it, I'd rather add it to the management command (ie fetch the Hg revision and use the date to automatically fetch the correct builds-4hr archive) than add things to the docs I think? Though with buildbot gradually going away, that may not even be worth it.

Happy to see what the others say about it though?

Something that we definitely do need to document more (and make sure works out of the box, on Vagrant) is Pulse ingestion from Taskcluster however.

Comment 2

a year ago
By coincidence I jotted out a docs addition I think while your reply was being posted here :) I'll open a PR for what it's worth, but ya please close it if it's not the desired way forward or is no longer applicable with buildbot disappearing. You can see the appearance at least, in the .rst file.
Assignee: nobody → tojonmz

Comment 3

a year ago
Created attachment 8799957 [details] [review]
[treeherder] tojon:docs-ingest-old-push > mozilla:master


a year ago
Assignee: tojonmz → nobody


a year ago
Last Resolved: a year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.