Thanks to visit codestin.com
Credit goes to github.com

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

Move Mac to Linux for Mac engine v2 builders #37330

Closed
wants to merge 7 commits into from

Conversation

keyonghan
Copy link
Contributor

This is a mitigation of high queue time in Mac try builders: flutter/flutter#114656

@keyonghan keyonghan requested a review from godofredoc November 4, 2022 21:09
# TODO(keyonghan): Temporarily use Linux VM to host Mac engine_v2 builders.
# To change it back to `Mac` when there is enough capacity.
# https://github.com/flutter/flutter/issues/114656
- name: Linux mac_android_aot_engine
Copy link
Contributor

Choose a reason for hiding this comment

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

We may want to select the initial platform the build will be running on using something different than the name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This doesn't seem to work.
Here is an led run from a linux vm: https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/keyonghan_google.com/3e1876d68d11f316d53063a79b86f480c9088371897948b3f47af03ac4efc78b/+/build.proto
(got configs based on Linux linux_host_engine, and then update config from linux_host_engine to mac_host_engine)

Copy link
Contributor

Choose a reason for hiding this comment

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

This is because the osx_sdk is propagated from the top task to the subbuild. Can you please add that property to ci/builders/mac_ files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There doesn't seem a drone_properties in the .json files yet. I guess we need to support that in recipes first.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you try properties?

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
Contributor Author

Choose a reason for hiding this comment

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

huh, it passed all the sub builds, but fails with a new error on step Global generators.Release-FlutterMacOS.framework:

Cannot find dsymutil at /b/s/w/ir/cache/builder/src/flutter/sky/tools/../../../buildtools/mac-x64/clang/bin/dsymutil

Do you have any insight?

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 guess the reason is we are running macos scripts on a linux vm.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, the builds with global generators need to run mac orchestrators.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only mac_android_aot_engine doesn't have global generators, and restored other builders.

Validation for mac_android_aot_engine: https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/keyonghan_google.com/4d7203206d2a76005cd388a4389ab793f0c96821882303ed1f93f90a65f92bef/+/build.proto

@keyonghan keyonghan force-pushed the linux_mac_engine_v2 branch from dbb21e1 to 8b5645f Compare November 7, 2022 20:41
@chinmaygarde
Copy link
Member

Is this WIP. Is it even expected to work?

@keyonghan
Copy link
Contributor Author

Our queue time has decreased after several optimizations. Closing here as this would not bring us too much benefit.

@keyonghan keyonghan closed this Nov 10, 2022
@keyonghan keyonghan deleted the linux_mac_engine_v2 branch August 31, 2023 20:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants