cft/bols_satlab: Modularize BOLS server handlers into domain services
Split the monolithic service.go in bols_satlab into domain-specific files
(file_service.go, servod_service.go, cmd_service.go, and common.go) to
prepare for sharing with lib/bols.
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: Modularize BOLS server handlers into domain services
Split the monolithic service.go in bols_satlab into domain-specific files
(file_service.go, servod_lifecycle_service.go, servod_control_service.go,
dolos_service.go, cmd_service.go, and common.go) to prepare for sharing with lib/bols.
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: Modularize BOLS server handlers into domain services
Split monolithic service.go and common.go in bols_satlab into domain-specific files
(file_service.go, servod_lifecycle_service.go, servod_control_service.go,
dolos_service.go, cmd_service.go, ip_cache.go, local_dev.go, container_utils.go,
tar_utils.go, logger.go, util.go) to prepare for sharing with lib/bols.
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: Modularize BOLS server handlers into domain services
Split servod_service.go and common.go into modular domain service files:
- servod_lifecycle_service.go (StartServod, StopServod, StartEmptyContainer, GetServodStatus)
- servod_control_service.go (HWInitServod, DocServod, GetServod, SetServod, etc.)
- dolos_service.go (Dolos RPC stubs)
- file_service.go (File and directory gRPC RPCs)
- cmd_service.go (DMesg, RunMount, RunUMount, RunFutility, etc.)
- ip_cache.go (ipCacheManager struct)
- local_dev.go (localDevOptions struct)
- container_utils.go (Container execution helpers)
- tar_utils.go (Tar and stat parsing helpers)
- logger.go (Log creation and logger methods)
- util.go (Env and time helpers)
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. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
I have focused on splitting the handlers into domain services first to simplify the logic before moving them to a shared location for reuse in bols_linux. Please review these structural changes.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | -1 |
It is a big change, and there is no testing information in the commit message. Please create a new container and deploy it to a Satlab to test it out. Then, update the commit message. You should use bols_satlab to test it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
It is a big change, and there is no testing information in the commit message. Please create a new container and deploy it to a Satlab to test it out. Then, update the commit message. You should use bols_satlab to test it.
Sorry, I meant that we should bols_testing to test
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +0 |
servodContainerlLabel = "SERVOD_CONTAINER_LABEL"Typo. Probably from the original code. Probably we should fix this now.
var _ = stringset.Newgo.chromium.org/luci/common/data/stringset is unused if we remove this, and I don't remember why we need this in the first place.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
See Wai FuIt is a big change, and there is no testing information in the commit message. Please create a new container and deploy it to a Satlab to test it out. Then, update the commit message. You should use bols_satlab to test it.
Sorry, I meant that we should bols_testing to test
That's fine. I remember that this code cannot go to Satlab release without manual process. We can delay the testing.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |