-
Notifications
You must be signed in to change notification settings - Fork 6k
Double zip FlutterMacOS.dSYM.zip. #41425
Conversation
|
\cc @XilaiZhang this will impact codesigning in two different parts: identifying if the file requires signing and also on the signing tool detecting if it needs to unzip twice. |
thanks for the info! Yeah I think the current topology covers this case. based on the insights from flutter/flutter#124322 (comment) we would skip signing this file since it is debug symbols and not executables. On the signing tool side, this file will be skipped since if no signing metadata is found upon the first unzip, the file will be skipped. |
This also applies to |
XilaiZhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explaining! I added the changes needed for codesign metadata in comments.
I tested the correctness of the new change by downloading the artifacts built from bab6f0e engine v2 bucket, and run codesign locally on it.
This is covered at the recipes level: https://flutter-review.googlesource.com/c/recipes/+/42560 |
ACK |
Umm I left a comment in recipe. Sorry if I misunderstood, umm I think in the recipe we are requiring the zip to be codesigned, but we are supplying empty configs. My understanding is that the codesign tool might detect the binary in the zip and report a failure due to the empty config. Or maybe we are planning to add more commits in this pr |
The flutter tool is expecting FlutterMacOS.dSYM.zip to be double zipped. Bug: flutter/flutter#124911
Details:
|
|
@XilaiZhang implemented your suggestions and added to TODOs to follow up when removing the outer zip folders. @christopherfujino @jmagman any concerns about adding the double zip logic to the dsym artifact? |
I don't think the tool knows anything about the dSYM artifact, I don't think it downloads it at all. Users manually download it https://github.com/flutter/flutter/wiki/Crashes (and macOS isn't mentioned). Was that artifact actually causing issues somewhere? (I know the .framework was flutter/flutter#124911 (comment)). |
It was not causing any issues but when checking all the artifacts I found the legacy dsym artifact is double zipped. I'm trying to get all the artifacts generated by engine v2 aligned with the legacy artifacts to avoid new disruptions during the migration. |
XilaiZhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! sorry for blocking v2 migration
As a side note, we could keep the metadata for both the inner zip and outer zip (have them both present), and remove the outer metadata when the outer zip is removed. This would work because the codesign tool only looks at metadata at the outer most layer.
flutter/engine@6d79839...34ece7a 2023-04-25 godofredoc@google.com Double zip FlutterMacOS.dSYM.zip. (flutter/engine#41425) 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 jsimmons@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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
The flutter tool is expecting FlutterMacOS.dSYM.zip to be double zipped.
Bug: flutter/flutter#124911
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.