Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS] Override helper-alerts identifier for signing. #8755

Merged
merged 2 commits into from
May 12, 2021

Conversation

mkarolin
Copy link
Collaborator

@mkarolin mkarolin commented May 8, 2021

Fixes brave/brave-browser#15731

Alerts helper has been added for signing upstream but Chrome doesn't
distribute it yet. Because it uses the same identifier as the current
alerts service, we get a signing error.

For now we'll use a different identifier for this helper and then
revert once Chrome starts distributing the helper.

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

@mkarolin mkarolin self-assigned this May 8, 2021
@mkarolin mkarolin added CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS CI/skip-linux labels May 8, 2021
@mkarolin mkarolin force-pushed the maxk-fix-mac-signing branch 2 times, most recently from 5b149c4 to 324a92a Compare May 10, 2021 18:05
script/signing_helper.py Outdated Show resolved Hide resolved
Alerts helper has been added for signing upstream but Chrome doesn't
distribute it yet. Because it uses the same identifier as the current
alerts service, we get a signing error.

For now we'll use a different identifier for this helper and then
revert once Chrome starts distributing the helper.

Fixes brave/brave-browser#15731

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/56915522276f

commit 56915522276f86acc55f86b143b4d7b260d6bc36
Author: Richard Knoll <knollr@chromium.org>
Date:   Fri Mar 5 16:07:34 2021 +0000

    Introduce alert notification helper .app

    This adds a new helper .app on macOS to display alert notifications.
    This app is required to show alert style notifications as the main app
    can only show banner style ones and the XPC service can not use the new
    UNNotification APIs.

    Bug: 1127306
@mkarolin mkarolin added the CI/skip-macos-x64 Do not run CI builds for macOS x64 label May 10, 2021
@mkarolin mkarolin changed the title WIP: [MacOS] Override helper-alerts entitlements for signing. [MacOS] Override helper-alerts entitlements for signing. May 10, 2021
@mkarolin mkarolin requested a review from bridiver May 10, 2021 22:33
@mihaiplesa
Copy link
Collaborator

Other than the known audit deps fail this has some PyLint warnings. If fixing, we can re-run with Ci/skip.

@mkarolin mkarolin removed the CI/skip-macos-x64 Do not run CI builds for macOS x64 label May 11, 2021
@mkarolin
Copy link
Collaborator Author

Fixed pylint warnings. Would prefer to rerun MacOS signing to make sure I didn't break anything.

@mihaiplesa
Copy link
Collaborator

Sounds good, thanks @mkarolin!

@mkarolin
Copy link
Collaborator Author

Still have pylint warnings, I guess we are using python3's pylint. I was checking with python2's one.

@mihaiplesa mihaiplesa added this to the 1.26.x - Nightly milestone May 12, 2021
@mihaiplesa mihaiplesa merged commit 5525543 into master May 12, 2021
@mihaiplesa mihaiplesa deleted the maxk-fix-mac-signing branch May 12, 2021 01:12
@mkarolin mkarolin changed the title [MacOS] Override helper-alerts entitlements for signing. [MacOS] Override helper-alerts identifier for signing. May 12, 2021
mkarolin added a commit that referenced this pull request May 18, 2021
* [MacOS] Override helper-alerts identifier for signing.

Alerts helper has been added for signing upstream but Chrome doesn't
distribute it yet. Because it uses the same identifier as the current
alerts service, we get a signing error.

For now we'll use a different identifier for this helper and then
revert once Chrome starts distributing the helper.

Fixes brave/brave-browser#15731

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/56915522276f

commit 56915522276f86acc55f86b143b4d7b260d6bc36
Author: Richard Knoll <knollr@chromium.org>
Date:   Fri Mar 5 16:07:34 2021 +0000

    Introduce alert notification helper .app

    This adds a new helper .app on macOS to display alert notifications.
    This app is required to show alert style notifications as the main app
    can only show banner style ones and the XPC service can not use the new
    UNNotification APIs.

    Bug: 1127306

* Pacify pylint for signing_helper.py
mkarolin added a commit that referenced this pull request Sep 1, 2021
Upstream fully transitioned now to helper (Alerts) and removed XPC
notification service. We should no longer mess with the identifier for
that executable.

See original change: #8755

See upstream: https://bugs.chromium.org/p/chromium/issues/detail?id=1170731
mariospr pushed a commit that referenced this pull request Sep 3, 2021
Upstream fully transitioned now to helper (Alerts) and removed XPC
notification service. We should no longer mess with the identifier for
that executable.

See original change: #8755

See upstream: https://bugs.chromium.org/p/chromium/issues/detail?id=1170731
mkarolin added a commit that referenced this pull request Sep 7, 2021
Upstream fully transitioned now to helper (Alerts) and removed XPC
notification service. We should no longer mess with the identifier for
that executable.

See original change: #8755

See upstream: https://bugs.chromium.org/p/chromium/issues/detail?id=1170731
mkarolin added a commit that referenced this pull request Sep 11, 2021
Upstream fully transitioned now to helper (Alerts) and removed XPC
notification service. We should no longer mess with the identifier for
that executable.

See original change: #8755

See upstream: https://bugs.chromium.org/p/chromium/issues/detail?id=1170731
mkarolin added a commit that referenced this pull request Sep 13, 2021
Upstream fully transitioned now to helper (Alerts) and removed XPC
notification service. We should no longer mess with the identifier for
that executable.

See original change: #8755

See upstream: https://bugs.chromium.org/p/chromium/issues/detail?id=1170731
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MacOS] Signing is failing on Nightly build due to helper (Alerts) app.
3 participants