Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

christopherfujino
Copy link
Contributor

Hack around: flutter/flutter#153614
CP of #54576

In #54414, we added dSYM files for physical and simulator binaries in both regular and extension-safe framework builds, but did not add the dSYMs to the without_entitlements.txt list.

This passed all engine pre/post-submit tests, as well as framework tests, but failed during release code signing in Cocoon in a test here:
https://github.com/flutter/cocoon/blob/d849b14bab90e0f90e2f7667e37c9f9a5696b918/cipd_packages/codesign/lib/src/file_codesign_visitor.dart#L305-L313

This adds the missing files to `without_entitlements.txt`, which fixes a code-signing error as seen in this build log:
https://ci.chromium.org/ui/p/dart-internal/builders/flutter/Mac%20Production%20Engine%20Drone/13590/overview

A corresponding change was landed on the [flutter-3.24-candidate.1](https://github.com/flutter/engine/tree/flutter-3.24-candidate.1) branch:
#54573

The build associated with that patch correctly completed code signing in this build:
https://ci.chromium.org/ui/p/dart-internal/builders/flutter/Mac%20engine_release_builder/688/overview

And more specifically, this sub-build:
https://ci.chromium.org/ui/p/dart-internal/builders/flutter/Mac%20Production%20Engine%20Drone/13650/overview

And even more specifically, this build step:
https://logs.chromium.org/logs/dart-internal/buildbucket/cr-buildbucket/8739493904842446705/+/u/Global_generators/Codesign__Volumes_Work_s_w_ir_cache_builder_src_out_release_unsigned_artifacts.zip/codesign_Apple_engine_binaries/stdout

Additionally, this patch adds `sky_utils.assert_valid_codesign_config()` which fails the script (and thus the build) with an error message if any file in scope for code signing (i.e. Mach-O binaries) is not listed in the code-signing config (`entitlements.txt`, `without_entitlements.txt`), or any listed file is not found on disk.

Issue: flutter/flutter#116493
Issue: flutter/flutter#153532

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@christopherfujino
Copy link
Contributor Author

@cbracken is this the right change to make? Notably, it's a larger diff than what went into 3.24 and 3.24.0-1.0.pre (but I think that's because it has more of your upstream changes).

@christopherfujino christopherfujino changed the base branch from main to flutter-3.25-candidate.0 August 20, 2024 18:12
@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@christopherfujino
Copy link
Contributor Author

This should not be merged until AFTER https://flutter-review.googlesource.com/c/recipes/+/59300

@christopherfujino christopherfujino marked this pull request as draft August 20, 2024 18:35
@flutter-dashboard
Copy link

This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again.

@christopherfujino
Copy link
Contributor Author

This should not be merged until AFTER https://flutter-review.googlesource.com/c/recipes/+/59300

That recipe change has landed, so this should be safe to merge

@christopherfujino christopherfujino marked this pull request as ready for review August 20, 2024 19:32
Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM stamp from a Japanese personal seal

@christopherfujino christopherfujino added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 20, 2024
@christopherfujino
Copy link
Contributor Author

FYI @itsjustkevin

@auto-submit auto-submit bot merged commit a39fc55 into flutter:flutter-3.25-candidate.0 Aug 20, 2024
26 checks passed
@christopherfujino christopherfujino deleted the cherrypicks-flutter-3.25-candidate.0 branch August 20, 2024 19:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants