cft/bols_satlab: Refactor container-centric BOLS handlers into lib/bols
Move shared container-based BOLS RPC handlers into ContainerService in
go.chromium.org/infra/cros/lib/bols/container_service.go.
Update bols_satlab to embed bols.ContainerService.
BUG=b:535648254
TAG=agy
CONV=36a8a6f6-1fca-4066-b3ab-db52fba1ecdc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
cft/bols_satlab: Refactor container-centric BOLS handlers into lib/bols
Move shared container-based BOLS RPC handlers into ContainerService in
go.chromium.org/infra/cros/lib/bols/container_service.go.
Update bols_satlab to embed bols.ContainerService.
BUG=b:535648254
TAG=agy
CONV=36a8a6f6-1fca-4066-b3ab-db52fba1ecdc
diff --git a/go/src/infra/cros/cmd/cft/bols_satlab/internal/server/localserver.go b/go/src/infra/cros/cmd/cft/bols_satlab/internal/server/localserver.go
index ff52e9d..5f69209 100644
--- a/go/src/infra/cros/cmd/cft/bols_satlab/internal/server/localserver.go
+++ b/go/src/infra/cros/cmd/cft/bols_satlab/internal/server/localserver.go
@@ -7,11 +7,13 @@
import (
"context"
"fmt"
+ "log"
"net"
"google.golang.org/grpc"
bols_service "go.chromium.org/chromiumos/config/go/test/api/bols"
+
"go.chromium.org/infra/cros/lib/bols"
)
@@ -41,6 +43,7 @@
go func() {
if err := srv.Serve(lis); err != nil && err != grpc.ErrServerStopped {
+ log.Printf("Serve error: %v", err)
}
}()
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
cft/bols_satlab: Refactor container-centric BOLS handlers into lib/bols
Move shared container-based BOLS RPC handlers and domain services from
bols_satlab to go.chromium.org/infra/cros/lib/bols.
Update bols_satlab to embed bols.ContainerService.
BUG=b:535648254
TAG=agy
CONV=36a8a6f6-1fca-4066-b3ab-db52fba1ecdc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
cft/bols_satlab: Refactor container-centric BOLS handlers into lib/bols
Move container-centric BOLS handlers (file_service, servod_lifecycle_service,
servod_control_service, dolos_service, cmd_service, docker_executor, common)
into lib/bols to enable reuse across BOLS runner implementations.
BUG=b:535648254
TAG=agy
CONV=36a8a6f6-1fca-4066-b3ab-db52fba1ecdc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
cft/bols_satlab: Refactor container-centric BOLS handlers into lib/bols
Move container-centric BOLS handlers (file_service, servod_lifecycle_service,
servod_control_service, dolos_service, cmd_service, ip_cache, local_dev, container_utils,
tar_utils, logger, util, docker_executor) into lib/bols to enable reuse across
BOLS runner implementations.
BUG=b:535648254
TAG=agy
CONV=36a8a6f6-1fca-4066-b3ab-db52fba1ecdc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
cft/bols_satlab: Refactor container-centric BOLS handlers into lib/bols
Move container-centric BOLS handlers (file_service, servod_lifecycle_service,
servod_control_service, dolos_service, cmd_service, ip_cache, local_dev, container_utils,
tar_utils, logger, util, docker_executor) into lib/bols to enable reuse across
BOLS runner implementations.
BUG=b:535648254
TAG=agy
CONV=36a8a6f6-1fca-4066-b3ab-db52fba1ecdc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
cft/bols_satlab: Refactor container-centric BOLS handlers into lib/bols
Move container-centric BOLS handlers (file_service, servod_lifecycle_service,
servod_control_service, dolos_service, cmd_service, ip_cache, local_dev, container_utils,
tar_utils, logger, util, docker_executor) into lib/bols to enable reuse across
BOLS runner implementations.
BUG=b:535648254
TAG=agy
CONV=36a8a6f6-1fca-4066-b3ab-db52fba1ecdc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
cft/bols_satlab: Refactor container-centric BOLS handlers into lib/bols
Move container-centric BOLS handlers (file_service, servod_lifecycle_service,
servod_control_service, dolos_service, cmd_service, ip_cache, local_dev, container_utils,
tar_utils, logger, util, docker_executor) into lib/bols to enable reuse across
BOLS runner implementations.
BUG=b:535648254
TAG=agy
CONV=36a8a6f6-1fca-4066-b3ab-db52fba1ecdc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
ipCache: NewIPCacheManager(),Jetski gave me this comment. Not necessary, but it is safer.
```
return &ContainerService{
logPath: logPath,
port: port,
devMode: devMode,
NetworkName: networkName,
logger: log.Default(), // Provide fallback logger to prevent nil dereference
executors: make(map[string]CommandExecutor),
ipCache: NewIPCacheManager(),
}
}
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |