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

First pass at implementing the operations API #1359

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions nativelink-config/src/cas_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ pub struct ServicesConfig {

/// This is the service for health status check.
pub health: Option<HealthConfig>,

/// This is the service for the Operations API
pub operations: Option<OperationsConfig>,
}

#[derive(Deserialize, Debug)]
Expand Down Expand Up @@ -741,3 +744,9 @@ pub struct CasConfig {
/// Any global configurations that apply to all modules live here.
pub global: Option<GlobalConfig>,
}

#[derive(Deserialize, Debug)]
#[serde(deny_unknown_fields)]
pub struct OperationsConfig {
pub enabled: bool,
}
3 changes: 3 additions & 0 deletions nativelink-service/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ rust_library(
"src/execution_server.rs",
"src/health_server.rs",
"src/lib.rs",
"src/operations_server.rs",
"src/worker_api_server.rs",
],
visibility = ["//visibility:public"],
Expand All @@ -33,8 +34,10 @@ rust_library(
"@crates//:http-body",
"@crates//:http-body-util",
"@crates//:hyper-1.4.1",
"@crates//:lru",
"@crates//:parking_lot",
"@crates//:prost",
"@crates//:prost-types",
"@crates//:serde_json5",
"@crates//:tokio",
"@crates//:tonic",
Expand Down
2 changes: 2 additions & 0 deletions nativelink-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ futures = { version = "0.3.30", default-features = false }
http-body = "1.0.1"
http-body-util = "0.1.2"
hyper = { version = "1.4.1" }
lru = { version = "0.12.3", default-features = false }
serde_json5 = "0.1.0"
parking_lot = "0.12.3"
prost = { version = "0.13.1", default-features = false }
prost-types = { version = "0.13.1" }
tokio = { version = "1.38.0", features = ["fs", "rt-multi-thread", "signal", "io-util"], default-features = false }
tokio-stream = { version = "0.1.15", features = ["fs"], default-features = false }
tonic = { version = "0.12.0", features = ["transport", "tls"], default-features = false }
Expand Down
1 change: 1 addition & 0 deletions nativelink-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ pub mod capabilities_server;
pub mod cas_server;
pub mod execution_server;
pub mod health_server;
pub mod operations_server;
pub mod worker_api_server;
Loading
Loading