This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Download and use the goma client from cipd #41488
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,12 @@ vars = { | |
| # If there are problems with the toolchain, contact fuchsia-toolchain@. | ||
| 'clang_version': 'git_revision:20d06c833d833ef6b2d0f519cc4a7998d49a2803', | ||
|
|
||
| # The goma version and the clang version can be tightly coupled. If goma | ||
| # stops working on a clang roll, this may need to be updated using the value | ||
| # from the 'integration' tag of | ||
| # https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/goma/client | ||
| 'goma_version': ' git_revision:41b3bcb64014144a844153fd5588c36411fffb56', | ||
|
|
||
| # When updating the Dart revision, ensure that all entries that are | ||
| # dependencies of Dart are also updated to match the entries in the | ||
| # Dart SDK's DEPS file for that revision of Dart. The DEPS file for | ||
|
|
@@ -98,7 +104,12 @@ vars = { | |
| "checkout_llvm": False, | ||
|
|
||
| # Setup Git hooks by default. | ||
| "setup_githooks": True, | ||
| 'setup_githooks': True, | ||
|
|
||
| # When this is true, the goma client will be downloaded from cipd, and | ||
| # the engine build will prefer to use this client over a client that is | ||
| # specified by GOMA_DIR, or installed in the default goma install location. | ||
| 'use_cipd_goma': False, | ||
|
|
||
| # This is not downloaded be default because it increases the | ||
| # `gclient sync` time by between 1 and 3 minutes. This option is enabled | ||
|
|
@@ -830,6 +841,40 @@ deps = { | |
| 'dep_type': 'cipd', | ||
| }, | ||
|
|
||
| # GOMA | ||
| 'src/buildtools/mac-x64/goma': { | ||
| 'packages': [ | ||
| { | ||
| 'package': 'fuchsia/third_party/goma/client/mac-amd64', | ||
| 'version': Var('goma_version'), | ||
| } | ||
| ], | ||
| 'condition': 'use_cipd_goma and host_os == "mac"', | ||
| 'dep_type': 'cipd', | ||
| }, | ||
|
|
||
| 'src/buildtools/linux-x64/goma': { | ||
| 'packages': [ | ||
| { | ||
| 'package': 'fuchsia/third_party/goma/client/linux-amd64', | ||
| 'version': Var('goma_version'), | ||
| } | ||
| ], | ||
| 'condition': 'use_cipd_goma and host_os == "linux"', | ||
| 'dep_type': 'cipd', | ||
| }, | ||
|
|
||
| 'src/buildtools/windows-x64/goma': { | ||
| 'packages': [ | ||
| { | ||
| 'package': 'fuchsia/third_party/goma/client/windows-amd64', | ||
| 'version': Var('goma_version'), | ||
| } | ||
| ], | ||
| 'condition': 'use_cipd_goma and download_windows_deps', | ||
| 'dep_type': 'cipd', | ||
| }, | ||
|
|
||
| # Get the SDK from https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/core at the 'latest' tag | ||
| # Get the toolchain from https://chrome-infra-packages.appspot.com/p/fuchsia/clang at the 'goma' tag | ||
| 'src/fuchsia/sdk/mac': { | ||
|
|
@@ -965,6 +1010,36 @@ hooks = [ | |
| 'src/flutter/tools/activate_emsdk.py', | ||
| ] | ||
| }, | ||
| { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this work for external users with no access to goma?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, but this runhook will only run if the |
||
| 'name': 'Start compiler proxy', | ||
| 'pattern': '.', | ||
| 'condition': 'use_cipd_goma and host_os == "mac"', | ||
| 'action': [ | ||
| 'python3', | ||
| 'src/buildtools/mac-x64/goma/goma_ctl.py', | ||
| 'ensure_start' | ||
| ] | ||
| }, | ||
| { | ||
| 'name': 'Start compiler proxy', | ||
| 'pattern': '.', | ||
| 'condition': 'use_cipd_goma and host_os == "linux"', | ||
| 'action': [ | ||
| 'python3', | ||
| 'src/buildtools/linux-x64/goma/goma_ctl.py', | ||
| 'ensure_start' | ||
| ] | ||
| }, | ||
| { | ||
| 'name': 'Start compiler proxy', | ||
| 'pattern': '.', | ||
| 'condition': 'use_cipd_goma and download_windows_deps', | ||
| 'action': [ | ||
| 'python3', | ||
| 'src/buildtools/windows-x64/goma/goma_ctl.py', | ||
| 'ensure_start' | ||
| ] | ||
| }, | ||
| { | ||
| 'name': 'Setup githooks', | ||
| 'pattern': '.', | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
not
integration?Are we updating the clang roller to update this?
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.
Yeah that's a good idea. We can ask the Skia autoroller folks if that's possible.
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.
Not
integrationbecause we should probably avoid unpinned dependencies.