This PR implements a test suite for ZIOApp that verifies proper finalizer execution and graceful shutdown behavior. It includes:

  • Process-based testing utilities for launching and controlling ZIOApp instances
  • Test cases for normal completion, finalizer execution, and signal handling
  • Verification of nested finalizer execution order
  • Timeout behavior testing for graceful shutdown
  • Tests for race conditions between finalizers and JVM shutdown hooks
  • Cross-platform signal handling with appropriate platform-specific isolation

Fixes #9909, addressing the issues identified in #9901, #9807, and #9240. /claim #9909

Claim

Total prize pool $400
Total paid $0
Status Pending
Submitted June 13, 2025
Last updated June 13, 2025

Contributors

يو

يوسف جمال يوسف محمد ناجي

@promisingcoder

100%

Sponsors

ZI

ZIO

@ZIO

$400