Skip to content

Conversation

@zanderso
Copy link
Member

@zanderso zanderso commented Aug 25, 2022

If the host is an arm64 mac, this PR causes arm64 tools to be downloaded instead of x64 tools. To avoid a large refactoring to the artifact cache, the arm64 tools are still placed in the darwin-x64 directory. Luckily the name of the directory isn't too important. We might even consider just renaming it darwin instead of trying to plumb host architecture information all over the place.

Fixes: #110227 #110226 #109892

@flutter-dashboard flutter-dashboard bot added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Aug 25, 2022
@zanderso zanderso force-pushed the more-arm64-artifacts branch 2 times, most recently from 8be0993 to 9dffb3e Compare August 26, 2022 01:38
@zanderso zanderso force-pushed the more-arm64-artifacts branch from 9dffb3e to 47b0360 Compare August 26, 2022 01:52
@zanderso zanderso requested review from cbracken and jmagman August 26, 2022 02:28
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.

I don't see anywhere we're testing flutter test on an arm Mac in CI.

flutter_test_performance only runs on Linux.

final List<String> arguments = flutterCommandArgs('test', <String>[

framework_tests shard runs on x64:

await _runFlutterTest(

misc shard runs example smoke tests runs on x64:

await runExampleTests();

I actually just got misc passing on arm, that might be a good one to run in both archs. Updated go/flutter-mac-test-architectures.
https://github.com/flutter/flutter/pull/109889/checks?check_run_id=8028285978

Trying framework_tests_misc on this PR on arm:
https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/magder_google.com/558f51ea68106e71f9af03e428a133229f451fe8e57879aa6b0741c85f1864d1/+/build.proto

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.

This also fixes #106763.

The led run passed:
https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/magder_google.com/558f51ea68106e71f9af03e428a133229f451fe8e57879aa6b0741c85f1864d1/+/build.proto passed:

darwin-arm64 downloaded:

> GET /flutter_infra_release/flutter/90d1a67e0d8b76bf769d16aae9e6563f07cace73/dart-sdk-darwin-arm64.zip HTTP/2
Downloading darwin-arm64 tools...                                  692ms
...
Downloading darwin-arm64/font-subset tools...                      116ms

flutter tests passed, presumably running natively:
https://logs.chromium.org/logs/flutter/led/magder_google.com/558f51ea68106e71f9af03e428a133229f451fe8e57879aa6b0741c85f1864d1/+/u/run_test.dart_for_framework_tests_shard_and_subshard_misc/test_stdout

LGTM

@jmagman
Copy link
Member

jmagman commented Aug 26, 2022

Here's one that exercises impeller: https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/magder_google.com/350dfe0bd08ece80558fdef608b717c295746e04201fcbaa0335bed1ea50a4c3/+/build.proto

$ led get-builder 'luci.flutter.try:Mac_ios new_gallery_impeller_ios__transition_perf' | led edit -d pool=luci.flutter.staging | led edit -d cpu=arm64 | led edit -pa 'revision="47b0360f3d0393155e1e3766a70f2baf88fdb424"' | led edit -pa git_ref='refs/pull/110291/head' | led edit -pa git_url='https://github.com/flutter/flutter' | led launch

@zanderso zanderso merged commit c6ec84e into flutter:master Aug 29, 2022
@zanderso zanderso deleted the more-arm64-artifacts branch August 29, 2022 17:33
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 1, 2022
@danielgomezrico
Copy link
Contributor

Hi

On what version of flutter will this be released? 👍🏻

@jmagman
Copy link
Member

jmagman commented Sep 12, 2022

This is available on 3.4.0-18.0.pre.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libpath_ops.dylib should run natively on Apple Silicon arm machines

3 participants