Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update doc for how to re-run an action with another RBE instance. #590

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

ywmei-brt1
Copy link
Collaborator

This CL update the readme file to show how to re-run an action on another RBE instance.

This CL also fix the flag conflict issue, for execute_action, one and only one of these two flags should be set: [--action_root=PATH|--digest=DIGEST].

This CL update the readme file to show how to re-run an action on another RBE instance.

This CL also fix the flag conflict issue, for execute_action, one and only one of these two flags should be set: [--action_root=PATH|--digest=DIGEST].
@ywmei-brt1 ywmei-brt1 requested a review from mrahs August 1, 2024 20:02
@ywmei-brt1 ywmei-brt1 self-assigned this Aug 1, 2024
go/README.md Outdated
Comment on lines 57 to 58
permission to download actions from `FOO`, but lack of permission to don't have
the permission to execute an action with instance `FOO`). In this case, you want
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
permission to download actions from `FOO`, but lack of permission to don't have
the permission to execute an action with instance `FOO`). In this case, you want
permission to download actions from `FOO`, but don't have
the permission to execute that instance). In this case, you want

log.Exitf("either specify --digest or --action_root, should not set both of them together.")
}
if inputDigest == "" && actionRoot == "" {
log.Exitf("either specify --digest or --action_root, at least one of these two flag must be set.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
log.Exitf("either specify --digest or --action_root, at least one of these two flag must be set.")
log.Exitf("either specify --digest or --action_root, one of these two flag must be set, but not both.")

@@ -157,3 +159,13 @@ func getPathFlag() string {
}
return pathPrefix
}

func validateActionRootAndDg() (string, string) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: validate implies no return values, but validation can be expected as a side effect for a function that does return values.

Suggested change
func validateActionRootAndDg() (string, string) {
func inputDgAndActionRoot() (string, string) {

go/pkg/tool/tool.go Show resolved Hide resolved
This CL update the readme file to show how to re-run an action on another RBE instance.

This CL also fix the flag conflict issue, for execute_action, one and only one of these two flags should be set: [--action_root=PATH|--digest=DIGEST].
@ywmei-brt1 ywmei-brt1 requested a review from mrahs August 6, 2024 15:35
@ywmei-brt1 ywmei-brt1 merged commit e9017ea into bazelbuild:master Aug 6, 2024
7 checks passed
@ywmei-brt1 ywmei-brt1 deleted the run_on_other_rbe branch August 6, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants