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

Adds an --rbe option to tools/gn that works on Linux hosts #45271

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

zanderso
Copy link
Member

@zanderso zanderso commented Aug 30, 2023

This PR lands changes to tools/gn to use Flutter's RBE instance instead of Goma. It is initially supported only for builds from a Linux host.

  1. Authenticate with gcloud
engine/src$ ./buildtools/linux-x64/gcloud/bin/gcloud auth application-default login --disable-quota-project
  1. GN
engine/src$ ./flutter/tools/gn --android --android-cpu arm64 --no-lto --runtime-mode debug --rbe
  1. Build
engine/src$ ninja -C out/android_debug_arm64 -j200

@zanderso zanderso mentioned this pull request Aug 30, 2023
@zanderso zanderso added the Work in progress (WIP) Not ready (yet) for review! label Aug 30, 2023
zanderso added a commit to flutter/buildroot that referenced this pull request Aug 31, 2023
See instructions on flutter/engine#45271
@zanderso zanderso changed the title RBE Adds an --rbe option to tools/gn that works on Linux hosts Aug 31, 2023
Copy link
Contributor

@keyonghan keyonghan left a comment

Choose a reason for hiding this comment

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

LGTM with nit.

'--cfg=' + rbe_cfg_path,
]
try:
subprocess.call(bootstrap_cmd, cwd=SRC_ROOT)
Copy link
Contributor

Choose a reason for hiding this comment

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

From LUCI side, we expect to have a cleanup/shutdown step after task finishes. You may want to mention somewhere that users are expected to cleanup/shutdown the bootstrap later.

Copy link
Member Author

Choose a reason for hiding this comment

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

There isn't a good spot to put that in the local dev workflow, and the command is too long to ask folks to run by hand, so that will need some more thought.

@zanderso zanderso merged commit 02cc6af into flutter:main Aug 31, 2023
@zanderso zanderso deleted the rbe-test branch August 31, 2023 18:31
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 31, 2023
…133810)

flutter/engine@51090e3...ca513c9

2023-08-31 [email protected] Revert "Reland "Build iOS unittest target in unopt builds" (#44356)"" (flutter/engine#45346)
2023-08-31 [email protected] Lazily allocate RasterCacheItems only when caching is enabled (flutter/engine#45211)
2023-08-31 [email protected] Roll Skia from 8ff4fd208c26 to 5d08dadd2ef4 (3 revisions) (flutter/engine#45340)
2023-08-31 [email protected] Reland "Build iOS unittest target in unopt builds" (#44356)" (flutter/engine#44821)
2023-08-31 [email protected] Update comment const_finder.dart (flutter/engine#45180)
2023-08-31 [email protected] Replace an unnecessary util function with PostSync (flutter/engine#45190)
2023-08-31 [email protected] Roll Skia from cda0cfaadfd7 to 8ff4fd208c26 (3 revisions) (flutter/engine#45337)
2023-08-31 [email protected] Roll Dart SDK from 0cea73a8d3c3 to ac3bc9f6351a (4 revisions) (flutter/engine#45336)
2023-08-31 [email protected] [macOS] Link __availability_version_check (flutter/engine#45333)
2023-08-31 [email protected] Roll Skia from 8c05d5103d6b to cda0cfaadfd7 (3 revisions) (flutter/engine#45334)
2023-08-31 [email protected] Adds an --rbe option to tools/gn that works on Linux hosts (flutter/engine#45271)
2023-08-31 [email protected] Migrate VK calls of GrBackend* (flutter/engine#45325)
2023-08-31 [email protected] Roll buildroot (flutter/engine#45329)
2023-08-31 [email protected] Revert dl split (flutter/engine#45326)
2023-08-31 [email protected] Roll Skia from d113402de2ce to 8c05d5103d6b (4 revisions) (flutter/engine#45331)

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 [email protected],[email protected],[email protected] 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Work in progress (WIP) Not ready (yet) for review!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants