balena-supervisor/test/integration
Christina Ying Wang cf8d8cedd7 Simplify lock interface to prep for adding takeLock to state funnel
This commit changes a few things:

* Pass `force` to `takeLock` step directly. This allows us to remove
the `lockFn` used by app manager's action executors, setting takeLock
as the main interface to interact with the update lock module. Note
that this commit by itself will not pass tests, as no update locking
occurs where it once did. This will be amended in the next commit.

* Remove locking functions from doRestart & doPurge, as this is
the only area where skipLock is required.

* Remove `skipLock` interface, as it's redundant with the functionality
of `force`. The only time `skipLock` is true is in doRestart/doPurge,
as those API methods are already run within a lock function. We removed
the lock function which removes the need for skipLock, and in the next
commit we'll add locking as a composition step to replace the
functionality removed here.

* Remove some methods not in use, such as app manager's `stopAll`.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2024-04-04 14:07:47 -07:00
..
compose Simplify lock interface to prep for adding 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 Simplify lock interface to prep for adding takeLock to state funnel 2024-04-04 14:07:47 -07:00
device-state Find and remove duplicate networks 2023-02-10 20:24:36 -05:00
lib Implement takeLock composition step + tests 2024-04-04 14:07:47 -07:00
.mocharc.js Migrate config module tests to integration 2022-09-28 10:37:41 -03:00
config.spec.ts Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
db.spec.ts Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
device-config.spec.ts Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
device-state.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00
host-config.spec.ts Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
network.spec.ts Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
state-engine.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00
supervisor.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00