Closed Bug 853036 Opened 12 years ago Closed 12 years ago

use lowercase sha512 in all snippets / balrog blobs

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: bhearsum)

References

Details

(Whiteboard: [balrog])

Attachments

(3 files, 2 obsolete files)

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.
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
Attached patch buildbot-configs (deleted) — Splinter Review
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: nobody → bhearsum
Status: NEW → ASSIGNED
Attachment #727328 - Flags: review?(nthomas)
Attached patch buildbotcustom (deleted) — Splinter Review
Attachment #727329 - Flags: review?(nthomas)
Attached patch mozharnes (obsolete) (deleted) — Splinter Review
Attachment #727330 - Flags: review?(nthomas)
Attached patch tools (obsolete) (deleted) — Splinter Review
Attachment #727331 - Flags: review?(nthomas)
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+
Attachment #727329 - Flags: review?(nthomas) → review+
Attachment #727330 - Flags: review?(nthomas) → review+
Attachment #727331 - Flags: review?(nthomas) → review+
Attachment #727328 - Flags: checked-in+
Attachment #727329 - Flags: checked-in+
Attachment #727330 - Flags: checked-in+
Attachment #727331 - Flags: checked-in+
Merged change(s) from this bug and I reconfigured the masters.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
This broke at least Android.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
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-
Attachment #727330 - Flags: checked-in+ → checked-in-
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.
(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.
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.
Attachment #727330 - Attachment is obsolete: true
Attachment #727331 - Attachment is obsolete: true
Comment on attachment 727328 [details] [diff] [review] buildbot-configs Backing out per comments #11 and 12.
Attachment #727328 - Flags: checked-in+ → checked-in-
Attachment #727329 - Flags: checked-in+ → checked-in-
Attached patch switch balrog to lowercase (deleted) — Splinter Review
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)
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+
Summary: use uppercase SHA512 in all snippets / balrog blobs → use lowercase sha512 in all snippets / balrog blobs
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
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: