Open
Description
The test suite needs to run during CI and test the behaviour of ZIOApp
when:
- The app completes on its own (either via failure or success)
- The app completes due to an external signal (e.g., SIGINT)
What needs to be tested:
- Correct error code is emitted
- Application finalizers are run (except for catastrophic failures)
- Shutdown sequence doesn't hang
gracefulShutdownTimeout
is respected- A lot of use-cases from past issues:
i. ZIO 2.1.18 does not wait on termination of registered finalizers #9901
ii. Unclean shutdown as a result of a race between shutdown hooks #9807
iii. Dependency on sun.misc.SignalHandler causing NoClassDefFoundError #9240
iv. (I'll add others as I find them)