Skip to content

Commit ff7b376

Browse files
j-gaocopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 892246219
1 parent 36a8938 commit ff7b376

5 files changed

Lines changed: 118 additions & 2 deletions

File tree

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bazel_dep(name = "bazel_skylib", version = "1.8.1")
1313
bazel_dep(name = "googletest", version = "1.17.0")
1414
bazel_dep(name = "grpc", version = "1.74.1")
1515
bazel_dep(name = "grpc-java", version = "1.71.0")
16-
bazel_dep(name = "protobuf", version = "31.1")
16+
bazel_dep(name = "protobuf", version = "33.4")
1717
bazel_dep(name = "rules_android", version = "0.6.6")
1818
bazel_dep(name = "rules_java", version = "8.14.0")
1919
bazel_dep(name = "rules_jvm_external", version = "6.7")
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
16+
# Description:
17+
# Protos for Mobile Harness Master V5 Scheduler.
18+
19+
load("@protobuf//bazel:java_proto_library.bzl", "java_proto_library")
20+
load("@protobuf//bazel:proto_library.bzl", "proto_library")
21+
22+
package(
23+
default_applicable_licenses = ["//:license"],
24+
default_visibility = [
25+
":scheduler_users",
26+
],
27+
)
28+
29+
package_group(
30+
name = "scheduler_users",
31+
packages = [
32+
],
33+
)
34+
35+
proto_library(
36+
name = "job_proto",
37+
srcs = ["job.proto"],
38+
)
39+
40+
java_proto_library(
41+
name = "job_java_proto",
42+
deps = [":job_proto"],
43+
)
44+
45+
proto_library(
46+
name = "test_proto",
47+
srcs = ["test.proto"],
48+
deps = ["//src/devtools/mobileharness/api/model/proto:job_proto"],
49+
)
50+
51+
java_proto_library(
52+
name = "test_java_proto",
53+
deps = [":test_proto"],
54+
)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
edition = "2024";
18+
19+
package mobileharness.infra.master.scheduler;
20+
21+
option features.field_presence = IMPLICIT;
22+
option java_package = "com.google.devtools.mobileharness.infra.master.scheduler.proto";
23+
24+
message JobScheduleCondition {
25+
int64 create_time_ms = 1;
26+
27+
// The last successful allocation time.
28+
int64 last_allocation_time_ms = 2;
29+
bool call_scheduler_directly = 3;
30+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
edition = "2024";
18+
19+
package mobileharness.infra.master.scheduler;
20+
21+
import "src/devtools/mobileharness/api/model/proto/job.proto";
22+
23+
option features.field_presence = IMPLICIT;
24+
option java_package = "com.google.devtools.mobileharness.infra.master.scheduler.proto";
25+
26+
message TestScheduleCondition {
27+
// The ID to talk to scheduler service.
28+
string schedule_id = 1;
29+
30+
// The device schedule priority of the test.
31+
.mobileharness.api.model.Priority priority = 2;
32+
}

src/javatests/com/google/devtools/mobileharness/shared/size/BinarySizeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class BinarySizeTest {
6363
"ats_console",
6464
22_550_000L,
6565
"persistent_cache_manager",
66-
9_050_000L,
66+
9_150_000L,
6767
"xts_tradefed_agent",
6868
4_950_000L);
6969

0 commit comments

Comments
 (0)