Closed
Bug 853036
Opened 12 years ago
Closed 12 years ago
use lowercase sha512 in all snippets / balrog blobs
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: bhearsum)
References
Details
(Whiteboard: [balrog])
Attachments
(3 files, 2 obsolete files)
(deleted),
patch
|
nthomas
:
review+
bhearsum
:
checked-in-
|
Details | Diff | Splinter Review |
(deleted),
patch
|
nthomas
:
review+
bhearsum
:
checked-in-
|
Details | Diff | Splinter Review |
(deleted),
patch
|
nthomas
:
review+
|
Details | Diff | Splinter Review |
The current AUS server uses a lowercase "sha512" in snippets for the hash function. We should do the same for Balrog snippets to make comparisons easier.
This might involve something in the balrog code itself, or maybe just something in the client code.
Assignee | ||
Comment 1•12 years ago
|
||
Looks like we actually aren't even consistent in the snippets on aus3.m.o. It's looking like we use the lowercase for nightlies and uppercase for releases. Clearly they both work, so let's just start using uppercase everywhere, since that's what Balrog is already using.
Summary: use lowercase "sha512" for hash function in balrog → use uppercase SHA512 in all snippets / balrog blobs
Assignee | ||
Comment 2•12 years ago
|
||
Turns out there's a bunch of places where we have 'sha512'. All of these end up doing one or more of the following with it:
* Printing it directly to the snippet
* Using it with Python's hashlib:
>>> hashlib.new('SHA512')
<SHA512 HASH object @ 0x7f5343249c10>
>>>
* Using it with openssl:
➜ balrog git:(master) openssl dgst -SHA512 Makefile
SHA512(Makefile)=xxxxxxx
I've run these patches through checkconfig but I haven't done any real staging tests. I think they're safe enough to not bother with that?
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #727329 -
Flags: review?(nthomas)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #727330 -
Flags: review?(nthomas)
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #727331 -
Flags: review?(nthomas)
Comment 6•12 years ago
|
||
Comment on attachment 727328 [details] [diff] [review]
buildbot-configs
Looks like it should be fine without a staging release.
Attachment #727328 -
Flags: review?(nthomas) → review+
Updated•12 years ago
|
Attachment #727329 -
Flags: review?(nthomas) → review+
Updated•12 years ago
|
Attachment #727330 -
Flags: review?(nthomas) → review+
Updated•12 years ago
|
Attachment #727331 -
Flags: review?(nthomas) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #727328 -
Flags: checked-in+
Assignee | ||
Updated•12 years ago
|
Attachment #727329 -
Flags: checked-in+
Assignee | ||
Updated•12 years ago
|
Attachment #727330 -
Flags: checked-in+
Assignee | ||
Updated•12 years ago
|
Attachment #727331 -
Flags: checked-in+
Comment 7•12 years ago
|
||
Merged change(s) from this bug and I reconfigured the masters.
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•12 years ago
|
||
This broke at least Android.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 9•12 years ago
|
||
Comment on attachment 727331 [details] [diff] [review]
tools
I confirmed that only Android is broken. I'm only going to back out the parts that affect it.
Attachment #727331 -
Flags: checked-in+ → checked-in-
Assignee | ||
Updated•12 years ago
|
Attachment #727330 -
Flags: checked-in+ → checked-in-
Assignee | ||
Comment 10•12 years ago
|
||
I filed bug 853823 to get the Android updater to be case insensitive, but we still need a workaround here, as I don't anticipate that patch being accepted as a backport.
Assignee | ||
Comment 11•12 years ago
|
||
(In reply to Ben Hearsum [:bhearsum] from comment #10)
> I filed bug 853823 to get the Android updater to be case insensitive, but we
> still need a workaround here, as I don't anticipate that patch being
> accepted as a backport.
Seems like the right thing to do here is to switch everything to lowercase instead, including whatever is setting hashFunction in Balrog (which might be done by hand right now...). The alternative is to wait for bug 832454 to be on aurora for a couple of weeks and then re-land the existing patches. That would be cause any users without the patch to get stuck on their current build. We only have 5,500 users on Fennec nightly/aurora.
Comment 12•12 years ago
|
||
There seems to be lots of usage out there for both sha512 & SHA512. In the metrics dashboard, about two thirds of aurora users are on builds from the last two weeks. Unknown if users on even older are even moving anywhere, but I guess we should use lower case to not strand them.
Assignee | ||
Updated•12 years ago
|
Attachment #727330 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #727331 -
Attachment is obsolete: true
Assignee | ||
Comment 13•12 years ago
|
||
Comment on attachment 727328 [details] [diff] [review]
buildbot-configs
Backing out per comments #11 and 12.
Attachment #727328 -
Flags: checked-in+ → checked-in-
Assignee | ||
Updated•12 years ago
|
Attachment #727329 -
Flags: checked-in+ → checked-in-
Assignee | ||
Comment 14•12 years ago
|
||
Turns out that our only references in the Balrog code itself are in docs/tests. There's no references to hashFunction in the Balrog client code yet (bug 763004 will be adding one, though.)
I'm going to be manually adjusting the -latest blobs to change their hashFunction to "sha512" today. That plus this patch will finish off this bug.
Attachment #729499 -
Flags: review?(nthomas)
Assignee | ||
Comment 15•12 years ago
|
||
Updated the Balrog blobs. We're now serving lowercase from aus4-dev: https://aus4-dev.allizom.org/update/3/Firefox/14.0a1/20111108031146/Linux_x86_64-gcc3/en-US/nightly/Linux%203.0.0-12-generic%20%28GTK%202.24.6%29/default/default/update.xml?force=1
Comment 16•12 years ago
|
||
Comment on attachment 729499 [details] [diff] [review]
switch balrog to lowercase
zomg, huge. I'm going to assume you got them all!
Attachment #729499 -
Flags: review?(nthomas) → review+
Assignee | ||
Updated•12 years ago
|
Summary: use uppercase SHA512 in all snippets / balrog blobs → use lowercase sha512 in all snippets / balrog blobs
Comment 17•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/balrog
https://github.com/mozilla/balrog/commit/7bfb2eb10b0a3e91e65e0367288f46abfc03d970
bug 853036: use lowercase sha512 in all snippets / balrog blobs. r=nthomas
Assignee | ||
Comment 18•12 years ago
|
||
This went into production yesterday. Snippets are lowercased again: https://aus3.mozilla.org/update/1/Firefox/3.6.23pre/2011032403/Linux_x86_64-gcc3/en-US/nightly/update.xml?force=1
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•