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

Update file permissions for FlutterMacOS.framework #52930

Merged
merged 1 commit into from
May 20, 2024

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented May 20, 2024

During FlutterMacOS.framework engine universal fat framework creation, make sure the framework is u=rwx,go=rx when it's created.

There's a framework-side workaround in-flight flutter/flutter#148580.

However, this is still a good thing to do engine-side, particularly for add-to-app when they don't go through the flutter assemble tooling.

I'll also add a test around here, once this rolls https://github.com/flutter/flutter/blob/02a6c91e4d37d28f42c8f8e4d4335b0defed41c1/packages/flutter_tools/test/host_cross_arch.shard/macos_content_validation_test.dart#L30

Fixes flutter/flutter#148354

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@jmagman jmagman marked this pull request as ready for review May 20, 2024 17:28
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@jmagman jmagman requested review from cbracken and zanderso May 20, 2024 19:20
@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label May 20, 2024
@auto-submit auto-submit bot merged commit c2ef01f into flutter:main May 20, 2024
27 checks passed
@jmagman jmagman deleted the macos-framework-perms branch May 20, 2024 22:26
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 20, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 20, 2024
…148722)

flutter/engine@a8fb9da...c2ef01f

2024-05-20 magder@google.com Update file permissions for FlutterMacOS.framework (flutter/engine#52930)
2024-05-20 jonahwilliams@google.com [Impeller] leave glyph atlas in transfer dst to improve vulkan throughput. (flutter/engine#52908)
2024-05-20 skia-flutter-autoroll@skia.org Roll Dart SDK from 54c384453207 to 08f4324c988b (1 revision) (flutter/engine#52931)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC bdero@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@jmagman jmagman added the cp: stable cherry pick to the stable release candidate branch label May 21, 2024
flutteractionsbot pushed a commit to flutteractionsbot/engine that referenced this pull request May 21, 2024
During FlutterMacOS.framework engine universal fat framework creation, make sure the framework is `u=rwx,go=rx` when it's created.

There's a framework-side workaround in-flight flutter/flutter#148580. 

However, this is still a good thing to do engine-side, particularly for add-to-app when they don't go through the `flutter assemble` tooling.

I'll also add a test around here, once this rolls https://github.com/flutter/flutter/blob/02a6c91e4d37d28f42c8f8e4d4335b0defed41c1/packages/flutter_tools/test/host_cross_arch.shard/macos_content_validation_test.dart#L30

Fixes flutter/flutter#148354

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@jmagman jmagman added the revert Label used to revert changes in a closed and merged pull request. label May 21, 2024
Copy link
Contributor

auto-submit bot commented May 21, 2024

A reason for requesting a revert of flutter/engine/52930 could
not be found or the reason was not properly formatted. Begin a comment with 'Reason for revert:' to tell the bot why
this issue is being reverted.

@auto-submit auto-submit bot removed the revert Label used to revert changes in a closed and merged pull request. label May 21, 2024
auto-submit bot pushed a commit that referenced this pull request May 21, 2024
Fix typo from #52930.  The entire framework bundle/directory needs 755 perms (not recursive), but that PR instead updated the binary within the framework bundle.

Once this rolls I'll rebase flutter/flutter#148786 and merge that test.

Engine-side fix for flutter/flutter#148354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App cp: stable cherry pick to the stable release candidate branch
Projects
None yet
2 participants