balena-supervisor/test/integration
Christina W 71d24d6e33 Parse container exit error message instead of status
The previous implementation in #2170 of parsing the container status was too general,
because it relied on the mistaken assumption that a container would have a status of
`Stopped` if it was manually stopped. This turned out to be untrue, as manually stopped
containers were also getting restarted by the Supervisor due to their inspect status of
`exited`. With this, parsing the exit message became unavoidable as there are no other
clear ways to discern a container that has been manually stopped and shouldn't be started
from a container experiencing the Engine-host race condition issue (again, see #2170).

Since we're just parsing the exit error message, we don't need to worry about different behaviors
amongst restart policies, as any container with the error message on exit should be started.

Change-type: patch
Closes: #2178
Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-06-22 14:43:17 -07:00
..
compose Parse container exit error message instead of status 2023-06-22 14:43:17 -07:00
config backends: Add Jetson Orin NX custom device-tree support 2023-04-07 18:12:31 +03:00
device-api Simplify doRestart and doPurge actions 2023-04-20 14:58:58 -04:00
device-state Find and remove duplicate networks 2023-02-10 20:24:36 -05:00
lib Simplify and move lib/contract.spec.ts to tests/unit 2023-05-09 15:20:12 -04:00
.mocharc.js Migrate config module tests to integration 2022-09-28 10:37:41 -03:00
config.spec.ts Mount boot partition into container on Supervisor start 2023-03-27 12:07:01 -07:00
db.spec.ts Remove dependent devices content in codebase 2023-02-06 19:34:02 -08:00
device-config.spec.ts Mount boot partition into container on Supervisor start 2023-03-27 12:07:01 -07:00
device-state.spec.ts Fix sw.arch typo when testing contracts 2023-05-11 13:07:26 -04:00
host-config.spec.ts Do not restart balena-hostname on rename 2023-04-20 11:43:35 -04:00
network.spec.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
state-engine.spec.ts Add extra delay after state engine integration tests 2023-05-31 11:33:27 -07:00
supervisor.spec.ts Run the built supervisor as part of docker-compose tests 2022-11-03 15:45:39 -03:00