Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: validate whole plan, rather than topmost two layers (canonical#363)
This PR moves layer/plan validation into dedicated functions, with `Layer.Validate` covering validation that is specific to a layer (such as an invalid value) and `Plan.Validate` covering validation that covers the plan as a whole (such as cycles or missing values). Plan validation includes layer validation, and is done in the service manager's `updatePlanLayers` and in `plan.CombineLayers`. We also use the check period as the upper bound for the timeout in checks, which was happening before, but less explicitly. No additional validation is done - all of the validation code is moved rather than changed. Fixes canonical#349
- Loading branch information