8000 Create test suite that tests the correct behaviour of `ZIOApp` · Issue #9909 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Create test suite that tests the correct behaviour of ZIOApp #9909
Open
@kyri-petrou

Description

@kyri-petrou

The test suite needs to run during CI and test the behaviour of ZIOApp when:

  1. The app completes on its own (either via failure or success)
  2. The app completes due to an external signal (e.g., SIGINT)

What needs to be tested:

  1. Correct error code is emitted
  2. Application finalizers are run (except for catastrophic failures)
  3. Shutdown sequence doesn't hang
  4. gracefulShutdownTimeout is respected
  5. 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0