blob: c4a6cfb2e0a4f0e3190e1194e9eb701012d17bb6 [file] [log] [blame]
// Copyright 2020 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package luci.resultdb.v1;
option go_package = "go.chromium.org/luci/resultdb/proto/v1;resultpb";
// Information about a test.
message TestMetadata {
// The original test name.
string name = 1;
// Where the test is defined, e.g. the file name.
// location.repo MUST be specified.
TestLocation location = 2;
// The issue tracker component associated with the test, if any.
// Bugs related to the test may be filed here.
BugComponent bug_component = 3;
}
// Location of the test definition.
message TestLocation {
// Gitiles URL as the identifier for a repo.
// Format for Gitiles URL: https://<host>/<project>
// For example "https://chromium.googlesource.com/chromium/src"
// Must not end with ".git".
// SHOULD be specified.
string repo = 1;
// Name of the file where the test is defined.
// For files in a repository, must start with "//"
// Example: "//components/payments/core/payment_request_data_util_unittest.cc"
// Max length: 512.
// MUST not use backslashes.
// Required.
string file_name = 2;
// One-based line number where the test is defined.
int32 line = 3;
}
// Represents a component in an issue tracker. A component is
// a container for issues.
message BugComponent {
oneof system {
// The Google Issue Tracker component.
IssueTrackerComponent issue_tracker = 1;
// The monorail component.
MonorailComponent monorail = 2;
}
}
// A component in Google Issue Tracker, sometimes known as Buganizer,
// available at https://issuetracker.google.com.
message IssueTrackerComponent {
// The Google Issue Tracker component ID.
int64 component_id = 1;
}
// A component in monorail issue tracker, available at
// https://bugs.chromium.org.
message MonorailComponent {
// The monorail project name.
string project = 1;
// The monorail component value. E.g. "Blink>Accessibility".
string value = 2;
}