Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase default SnapClient timeout to 30 seconds
SnapClient has a default timeout of 5 seconds for all RPCs to the snapd socket. If any operation takes more, an exception is raised to the caller. We have seen this causing issues in slow CI environments, where a simple config-changed hook will attempt to check if a snap is installed, timeout and move the unit to a blocked status (causing the CI run to fail). This is augmented by the fact that typically SnapCache is used instead of SnapClient, which only uses the default value and does not provide a way to configure the timeout. Simply increasing the timeout is enough to tackle the flakes.
- Loading branch information