Closed
Bug 1085273
Opened 11 years ago
Closed 11 years ago
v2 mac signing still not working on partner repacks
Categories
(Release Engineering :: Release Automation, defect)
Release Engineering
Release Automation
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hectorz, Assigned: bhearsum)
References
Details
Attachments
(3 files, 1 obsolete file)
|
751 bytes,
patch
|
spohl
:
review+
bhearsum
:
checked-in+
|
Details | Diff | Splinter Review |
|
9.30 KB,
patch
|
coop
:
review+
bhearsum
:
checked-in+
|
Details | Diff | Splinter Review |
|
1.29 KB,
patch
|
bhearsum
:
review+
bhearsum
:
checked-in+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1048890 +++
(In reply to Hector Zhao [:hectorz] from comment #7)
> IIUC, in bug 1047738, the new home for distribution directory is
> Contents/Resources instead of MozResouces?
Confirmed by QA in Beijing office, excerpt from mail:
> Tested the partner package[1], the message “”Firefox” is damaged and can’t be opened. You should move it to Trash.” was displayed.
>
> Set 'Allow apps download from: Anywhere’ in ’Security&Privacy’, it can be opened and all the customized contents in distribution were not applied.
>
> [1]: https://ftp.mozilla.org/pub/mozilla.org/firefox/candidates/34.0b1-candidates/build2/partner-repacks/bing/mac/en-US/
| Assignee | ||
Updated•11 years ago
|
Summary: update partner repack scripts to use Contents/Resources for mac signing changes → v2 mac signing still not working on partner repacks
| Assignee | ||
Comment 1•11 years ago
|
||
It looks like it's still using Contents/MacOS:
2014-10-15 00:06:52,492 - Executing cp -r /builds/slave/rel-m-beta-osx64_partner_rpk-0/partner-repacks/scripts/./../partners/1und1/distribution stage/Firefox.app/Contents/MacOS
2014-10-15 00:06:52,493 - in /builds/slave/rel-m-beta-osx64_partner_rpk-0/partner-repacks/scripts/repacked_builds/34.0b1/build2/partner-repacks/1und1/mac/de/working
Which is probably because these scripts didn't get updated after MozResources was dropped, I still see this code:
417 def copyFiles(self):
418 if path.exists(path.join("stage", "Firefox.app", "MozResources")):
419 target_dir = path.join("stage", "Firefox.app", "MozResources")
420 else:
421 target_dir = path.join("stage", "Firefox.app", "Contents", "MacOS")
| Assignee | ||
Comment 2•11 years ago
|
||
Assignee: nobody → bhearsum
Status: NEW → ASSIGNED
Attachment #8507885 -
Flags: review?(spohl.mozilla.bugs)
Attachment #8507885 -
Flags: review?(rail)
| Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8507885 [details] [diff] [review]
use Contents/Resources instead of MozResources
Oops, spohl pointed out that Resources exists no matter what. New patch coming.
Attachment #8507885 -
Attachment is obsolete: true
Attachment #8507885 -
Flags: review?(spohl.mozilla.bugs)
Attachment #8507885 -
Flags: review?(rail)
| Assignee | ||
Comment 4•11 years ago
|
||
I was thinking of looking for distribution, but I don't think it exists at the time this code runs. But we're just looking for new vs. old style layout, so this should be fine.
Attachment #8507889 -
Flags: review?(spohl.mozilla.bugs)
Attachment #8507889 -
Flags: review?(rail)
Updated•11 years ago
|
Attachment #8507889 -
Flags: review?(rail) → review+
Comment 5•11 years ago
|
||
Comment on attachment 8507889 [details] [diff] [review]
check for Contents/Resources/defaults instead
Review of attachment 8507889 [details] [diff] [review]:
-----------------------------------------------------------------
::: scripts/partner-repacks.py
@@ +416,5 @@
> os.remove("stage/ ")
>
> def copyFiles(self):
> + if path.exists(path.join("stage", "Firefox.app", "Contents", "Resources", "defaults")):
> + target_dir = path.join("stage", "Firefox.app", "Contents", "Resources", "defaults")
I think you wanted target_dir to point to Contents/Resources here. r+ with that.
Attachment #8507889 -
Flags: review?(spohl.mozilla.bugs)
Attachment #8507889 -
Flags: review?(rail)
Attachment #8507889 -
Flags: review+
| Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8507889 [details] [diff] [review]
check for Contents/Resources/defaults instead
(In reply to Stephen Pohl [:spohl] from comment #5)
> Comment on attachment 8507889 [details] [diff] [review]
> check for Contents/Resources/defaults instead
>
> Review of attachment 8507889 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: scripts/partner-repacks.py
> @@ +416,5 @@
> > os.remove("stage/ ")
> >
> > def copyFiles(self):
> > + if path.exists(path.join("stage", "Firefox.app", "Contents", "Resources", "defaults")):
> > + target_dir = path.join("stage", "Firefox.app", "Contents", "Resources", "defaults")
>
> I think you wanted target_dir to point to Contents/Resources here. r+ with
> that.
Oops, yeah. Thanks for catching this, too. I landed with that fixed.
Attachment #8507889 -
Flags: review?(rail) → checked-in+
| Assignee | ||
Comment 7•11 years ago
|
||
This still isn't working. I think there's a larger problem here: the partner repack script uploads a *dmg*, not a .app. I think we need more work here to make this work.
Surprisingly, the signing server doesn't blow up when you ask it to sign a dmg file.
| Assignee | ||
Comment 8•11 years ago
|
||
Apparently signing a dmg is a thing with codesign, so that explains why that didn't fail:
[cltsign@mac-v2-signing2.srv.releng.scl3.mozilla.com ~]$ codesign -s Mozilla -fv --keychain /builds/signing/rel-key-signing-server/secrets/dmg/signing.keychain --requirement '=designated => ( (anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] ) or (anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.OU] = "43AQ936H96"))' Firefox\ 34.0b2.dmg
Firefox 34.0b2.dmg: signed generic [Firefox 34.0b2]
I'll try to get a patch ready for this today - I'd like to fix it before 34.0b3.
| Assignee | ||
Comment 9•11 years ago
|
||
I tested this out on Linux, Mac, and Windows. The Mac repacks got signed properly - to the point where codesign -vvvv likes them again. Linux and Windows were signed as normal.
Attachment #8508886 -
Flags: review?(coop)
Updated•11 years ago
|
Attachment #8508886 -
Flags: review?(coop) → review+
| Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8508886 [details] [diff] [review]
support internal + external signing
OK, this should work for 34.0b3, which starts on Thursday.
Attachment #8508886 -
Flags: checked-in+
Comment 11•11 years ago
|
||
For 33.0.1 we have mac partner repack logs like this:
2014-10-21 23:09:44,429 - e5f90d63339fface100f35476591743372369cd0: processing Firefox.app.tar.gz on https://mac-v2-signing1.srv.releng.scl3.mozilla.com:9120
2014-10-21 23:09:44,453 - e5f90d63339fface100f35476591743372369cd0: uploading for signing
2014-10-21 23:09:53,815 - e5f90d63339fface100f35476591743372369cd0: processing Firefox.app.tar.gz on https://mac-v2-signing1.srv.releng.scl3.mozilla.com:9120
2014-10-21 23:10:54,838 - e5f90d63339fface100f35476591743372369cd0: processing Firefox.app.tar.gz on https://mac-v2-signing1.srv.releng.scl3.mozilla.com:9120
2014-10-21 23:11:55,860 - e5f90d63339fface100f35476591743372369cd0: processing Firefox.app.tar.gz on https://mac-v2-signing1.srv.releng.scl3.mozilla.com:9120
2014-10-21 23:12:56,899 - e5f90d63339fface100f35476591743372369cd0: processing Firefox.app.tar.gz on https://mac-v2-signing1.srv.releng.scl3.mozilla.com:9120
2014-10-21 23:13:24,900 - e5f90d63339fface100f35476591743372369cd0: processing Firefox.app.tar.gz on https://mac-v2-signing1.srv.releng.scl3.mozilla.com:9120
....
On the signing server there is a rc of 1 from signscript. I think we're doing dmgv2 signing on the wrong file layout, so this avoids that, but I'm unsure if this is the right diagnosis & fix.
Attachment #8509257 -
Flags: review?(bhearsum)
| Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 8509257 [details] [diff] [review]
Fix up signing of older mac builds
Review of attachment 8509257 [details] [diff] [review]:
-----------------------------------------------------------------
I landed and retagged for this.
Attachment #8509257 -
Flags: review?(bhearsum)
Attachment #8509257 -
Flags: review+
Attachment #8509257 -
Flags: checked-in+
| Assignee | ||
Comment 13•11 years ago
|
||
This is working again for old style mac builds:
[bhearsum@mac-signing3.srv.releng.scl3.mozilla.com ~]$ curl http://ftp.mozilla.org/pub/mozilla.org/firefox/candidates/33.0.1-candidates/build1/partner-repacks/gmx/mac/en-US/Firefox%2033.0.1.dmg > firefox.dmg
[bhearsum@mac-signing3.srv.releng.scl3.mozilla.com ~]$ hdiutil attach firefox.dmg
[bhearsum@mac-signing3.srv.releng.scl3.mozilla.com ~]$ codesign -vvv /Volumes/Firefox/Firefox.app/
/Volumes/Firefox/Firefox.app/: valid on disk
/Volumes/Firefox/Firefox.app/: satisfies its Designated Requirement
Sorry for all the fallout from this, and thanks to everyone for helping out!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•