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

Conversation

@godofredoc
Copy link
Contributor

The code path dealing with release information was not implementing the
relative paths calculation correctly.

Bug: flutter/flutter#81855

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 Hixie said 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.

The code path dealing with release information was not implementing the
relative paths calculation correctly.

Bug: flutter/flutter#81855
subprocess.check_call([
'zip', '-r',
'%s/Flutter.dSYM.zip' % dst,
'%s/Flutter.dSYM/Contents' % dst
Copy link
Member

Choose a reason for hiding this comment

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

Is this replacing something that will be moved from the recipe? I see https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/engine/engine.py#1375 but it's zipping the Flutter.dSYM, not the Contents subdirectory.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch, updated!

Copy link
Member

Choose a reason for hiding this comment

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

Let me know when this is all checked in and I can validate the final output, if you want.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm missing adding the verify exported check. Whether this script is run or not will depend on the configuration file. I may need to make some changes to verify_exported before I can add it to the config file. Let run it with led and share the build.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@jmagman jmagman Aug 13, 2022

Choose a reason for hiding this comment

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

Looks like an outage, I can take a look on Monday

Screen Shot 2022-08-12 at 6 24 14 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

How can I download the artifacts to check if the symbols are in the right place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can click the gsutil.upload links at the end of the build, they will take you to the upload location in gcs.

'zip', '-r', 'artifacts.zip', 'gen_snapshot_arm64', 'Flutter.xcframework'
],
cwd=dst)
if (os.path.exists(os.path.join(dst, 'Flutter.dSYM', 'Contents'))):
Copy link
Member

Choose a reason for hiding this comment

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

Do the scripts already know not to generate external symbols except in release mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, but for engine_v2 recipes we are calling explicit ninja targets rather than building the full configuration. This is an example: https://github.com/flutter/engine/pull/35366/files

@chinmaygarde chinmaygarde removed their request for review August 15, 2022 20:33
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

It's not zipping this up correctly, it's unzipping a directory named opt that contains opt/s/w/ir/cache/builder/src/out/release/

Here's from the led command:
https://storage.googleapis.com/flutter_archives_v2/flutter_infra_release/flutter/cc2b4dbc0994fafe25752f32487a7ab52ca07a8d/ios-release/Flutter.dSYM.zip

opt/s/w/ir/cache/builder/src/out/release/Flutter.dSYM/Contents/Resources/DWARF/Flutter

Here's what it's supposed to look like:
https://storage.googleapis.com/flutter_infra_release/flutter/f16e757d5d68c164d084b61d84e3b7cd14eacba9/ios-release/Flutter.dSYM.zip

Flutter.dSYM/Contents/Resources/DWARF/Flutter

@jmagman
Copy link
Member

jmagman commented Aug 16, 2022

@godofredoc Can I get another led run to check again?

@godofredoc
Copy link
Contributor Author

@godofredoc Can I get another led run to check again?

It took several changes to get the zip file right. Here is the link: https://chromium-swarm.appspot.com/task?id=5cbda3086da64d10

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

zip structure looks correct now.

@godofredoc godofredoc added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 16, 2022
@auto-submit auto-submit bot merged commit 8c7d896 into flutter:main Aug 16, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 16, 2022
@godofredoc godofredoc deleted the fix_ios_gen branch January 12, 2024 19:47
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