balena-supervisor/test/unit
Christina Ying Wang 10f294cf8e Add takeLock to state funnel
A takeLock step should be generated before any of the following steps:
* kill
* start
* stop
* updateMetadata
* restart
* handover

ALL services in an app will be locked for any of the above actions,
unless the action is generated through Supervisor API's
`POST /v2/applications/:appId/(start|stop|restart)-service` endpoints,
in which case only the target service will be locked.

A lock will be taken for a service before it starts by creating the
directory in /tmp before the Engine creates it through bind mounts.

Also, the commit simplifies the generation of service kill
steps from network/volume changes or removals.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2024-04-04 14:07:47 -07:00
..
compose Add takeLock to state funnel 2024-04-04 14:07:47 -07:00
config Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
device-api Update typescript to v5 2024-03-05 15:33:56 -03:00
lib Add methods for easier checking of lockfile existence 2024-04-04 14:07:47 -07:00
.mocharc.js Disable logs globally using mocha hooks 2022-09-28 10:37:41 -03:00
network.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00
types.spec.ts Fix withDefault type helper to work with boolean 2022-09-13 20:08:32 +00:00