Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The LUCI Authors. All rights reserved. | |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | |
| 3 // that can be found in the LICENSE file. | |
| 4 | |
| 5 syntax = "proto3"; | |
| 6 | |
| 7 package milo; | |
| 8 | |
| 9 import "github.com/luci/luci-go/common/proto/milo/annotations.proto"; | |
| 10 | |
| 11 // The buildbot service definition. | |
|
hinoka
2017/02/02 22:46:23
BuildInfo? Also copypasta the description you sen
dnj
2017/02/03 01:53:26
OK
| |
| 12 service BuildInfo { | |
| 13 rpc Get(BuildInfoRequest) returns (BuildInfoResponse); | |
| 14 } | |
| 15 | |
| 16 message BuildInfoRequest { | |
| 17 // The request for the name of a BuildBot built. | |
| 18 message BuildBot { | |
| 19 // The master name. | |
| 20 string master_name = 1; | |
| 21 // The builder name server. | |
| 22 string builder_name = 2; | |
| 23 // The build number. | |
| 24 int64 build_number = 3; | |
| 25 } | |
| 26 | |
| 27 // The request containing a Swarming task. | |
| 28 message Swarming { | |
| 29 // The Swarming task name. | |
| 30 string task = 1; | |
|
hinoka
2017/02/02 22:46:23
string server = 1. we have like 8 of them.
dnj
2017/02/03 01:53:26
ATM I'm leaving server off until we have a whiteli
| |
| 31 } | |
| 32 | |
| 33 oneof build { | |
| 34 // Request a BuildBot build. | |
| 35 BuildBot buildbot = 1; | |
| 36 // Request a Swarming build. | |
| 37 Swarming swarming = 2; | |
| 38 } | |
| 39 | |
| 40 // Project hint is a LUCI project suggestion for this build. Some builds, | |
| 41 // notably older ones, may not contain enough metadata to resolve their | |
| 42 // project. Resolution may succeed if this hint is provided and correct. | |
| 43 // | |
| 44 // This field is optional, and its use is discouraged unless necessary. | |
| 45 string project_hint = 11; | |
|
hinoka
2017/02/02 22:46:23
Is this actively useful in V1? If not let's remove
dnj
2017/02/03 01:53:26
Yes, it is. Older builds especially, which don't h
| |
| 46 } | |
| 47 | |
| 48 // The request containing the name of the master. | |
| 49 message BuildInfoResponse { | |
| 50 // The LUCI project that this build belongs to. | |
| 51 string project = 1; | |
| 52 | |
| 53 // The main build step. | |
| 54 milo.Step step = 2; | |
| 55 | |
| 56 // The LogDog annotation stream for this build. The Prefix will be populated | |
| 57 // and can be used as the prefix for any un-prefixed LogdogStream in "step". | |
| 58 milo.LogdogStream annotation_stream = 3; | |
| 59 } | |
| OLD | NEW |