-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use dedicated exec group for link actions
When remote execution is used, a user may want to use different exec properties for different actions under the same target. For example: A go_test could include 3 different actions: - GoCompilePkg - GoLink - GoTest If users wish to use a special exec_properties for GoLink actions, after this PR, they could do so with: ```python go_test( ... exec_properties = { # Default "container-image": "docker://alpine", "EstimatedMemory": "500MB", # Only applied to GoLink exec_group "GoLink.container-image": "docker://ubuntu", "GoLink.EstimatedMemory": "2GB", } ... ) ``` Reference: https://bazel.build/extending/exec-groups
- Loading branch information
Showing
6 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LINK_EXEC_GROUP = "GoLink" | ||
|
||
RULES_GO_EXEC_GROUPS = { | ||
LINK_EXEC_GROUP: exec_group(), | ||
} |
This file contains 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