Remove support for 12 character ('short') SHA revisions
Categories
(Tree Management :: Treeherder: Data Ingestion, defect, P3)
Tracking
(Not tracked)
People
(Reporter: wlach, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(5 files, 2 obsolete files)
Reporter | ||
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
Updated•8 years ago
|
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Comment 13•8 years ago
|
||
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Updated•7 years ago
|
Comment 16•6 years ago
|
||
Updated•6 years ago
|
Comment 17•6 years ago
|
||
After deploying, New Relic reported instances of:
treeherder.model.models:MultipleObjectsReturned: get() returned more than one Push -- it returned 2!
and
treeherder.model.models:DoesNotExist: Push matching query does not exist.
I believe this is since repository
is no longer in a few of the queries, eg:
https://github.com/mozilla/treeherder/pull/4534/files#diff-d1c18844859a68f2ac3f6aa32603cdbeL54
I've rolled back the prod deploy for now - master will need a fix before we deploy again.
Comment 18•6 years ago
|
||
Comment 20•6 years ago
|
||
The 2nd PR landed in:
https://github.com/mozilla/treeherder/commit/bcb0bc2d7ca34e9ca780a4b737f7f7896c395802
Comment 21•6 years ago
|
||
Actually, reopening since the API still supports 12 character revisions and their usage is being tracked via:
https://github.com/mozilla/treeherder/pull/4534/files#diff-d1c18844859a68f2ac3f6aa32603cdbeR272
The API now does the optimal MySQL query if provided with a 40 character SHA, however the fallback should be removed to prevent people from accidentally relying on it (eg when writing tools that comment on bugs etc).
When doing so it may be worth making the API explicitly return a JSON error message and HTTP 400 for SHAs that are not 40 characters (and also ensuring it's bubbled up to the jobs-view and Perfherder UIs) to prevent confusing UX from 404s from seemingly valid SHAs.
Comment 22•6 years ago
|
||
This would be good to get done. But I'm not going to get to it anytime soon.
Comment 23•2 years ago
|
||
cleaning up old bugs we haven't fixed
Description
•