Skip to content

Commit

Permalink
[ci_runner] Add support to pass flags directly to the runner (#6651)
Browse files Browse the repository at this point in the history
  • Loading branch information
maggie-lou authored May 24, 2024
1 parent c8bcd98 commit 79816e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions enterprise/server/hostedrunner/hostedrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func (r *runnerService) createAction(ctx context.Context, req *rnpb.RunRequest,
for _, patchURI := range patchURIs {
args = append(args, "--patch_uri="+patchURI)
}
args = append(args, req.GetRunnerFlags()...)

affinityKey := req.GetSessionAffinityKey()
if affinityKey == "" {
Expand Down
3 changes: 3 additions & 0 deletions proto/runner.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ message RunRequest {
// remotely. If false or unset, run metadata (runtime flags, files, etc) will
// be collected so the binary can be run elsewhere.
bool run_remotely = 14;

// Flags to pass directly to the runner.
repeated string runner_flags = 15;
}

message RunResponse {
Expand Down

0 comments on commit 79816e5

Please sign in to comment.