Perfherder insists on 40 character revision IDs
Categories
(Tree Management :: Perfherder, defect, P2)
Tracking
(Not tracked)
People
(Reporter: JanH, Unassigned)
References
Details
... which is somewhat annoying when trying to paste a changeset ID retrieved from hg.mozilla.org, which doesn't display the full changeset ID unless you look at the raw patch.
Comment 1•6 years ago
|
||
Hi! We're in the process of removing support for 12 character revision SHAs from Treeherder, since the 40 character form is the canonical one (to avoid collisions), and supporting <40 character revisions is bad for performance, since the LIKE query can't be fully indexed.
Would you mind filing an issue against hg.mozilla.org to display the full revision there instead? (We've had an org-wide push to using the full SHA, so in general any system that doesn't yet do so is just in the long tail yet to be converted, rather than doing so by design).
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Hi Ed,
Can perfherder allow the older 40 character IDs as input until all the tools support them as output?
(be permissive in what you accept and strict in what you produce)
Comment 4•6 years ago
|
||
Redirecting to Ionuț, since he owns Perfherder :-)
Comment 5•6 years ago
|
||
I would first need a list with the tools you're using, that output older character IDs.
Comment 6•6 years ago
|
||
Hi Ionuț,
I use:
- the "hg wip" command that ./mach bootstrap sets up.
- Treeherder
- Perfherder
- hg.mozilla.org
I also use these, but I'm unlikely to use them with perfherder.
- bugzilla
- searchfox.org
- crash-stats.mozilla.com
Thank you.
Comment 7•6 years ago
|
||
Relevant to this discussion re Treeherder is bug 1306707 and bug 1340265.
Comment 8•6 years ago
|
||
Can this please be fixed, it's annoying to have to jump through hoops to find the 40 bit hashes. it seems like perfherder compare is the only tool that requires/uses them.
Updated•6 years ago
|
Comment 9•6 years ago
|
||
Has a bug been filed upstream as mentioned by Ed in comment #2? Since there are bugs filed for removing 12 SHA support, we want to be able to move towards that end goal even if we loosen the requirements here temporarily.
Ionut, you'll need to either refactor (lodash's debounce might help here to prevent unnecessary renders from setting state) or disable part of the revision validation in the compareChooser
in order to not require 40 characters.
Comment 10•6 years ago
|
||
There's no comment two on this bug. (Never seen that before.)
Comment 11•6 years ago
|
||
Er, comment 1 - my bad.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 12•6 years ago
|
||
Awesome, thanks!
Comment 13•6 years ago
|
||
Thanks Sarah,
I've filed Bug 1539324 and Bug 1539325 (same but against treeherder) for this. I was genuinely confused by the lack of comment 2, thanks.
Comment 14•6 years ago
|
||
(In reply to Ed Morley [:emorley] from comment #1)
Hi! We're in the process of removing support for 12 character revision SHAs from Treeherder, since the 40 character form is the canonical one (to avoid collisions), and supporting <40 character revisions is bad for performance, since the LIKE query can't be fully indexed.
That performance problem can be fixed by adding another column to that table containing the 12 digit SHA, placing an index on the column and doing an exact match in the query when the user provides only 12 digits.
Updated•5 years ago
|
Comment 15•5 years ago
|
||
I think we can actually close this bug, as hg.mozilla.org now provides full hashes.
I'm preparing to land bug 1553734, as I locally have a working patch for it. Bug 1553734 will let you easily copy the full hash right from Treeherder's main view.
Updated•5 years ago
|
Description
•