Skip to content

Conversation

@EdmondDantes
Copy link
Contributor

No description provided.

      This commit introduces 15 new tests that verify the robustness of the
      TrueAsync API when handling critical PHP failures (bailout scenarios).

      Test categories:
      - Memory exhaustion in simple and nested async operations
      - Stack overflow in simple and nested async operations
      - Bailout during suspend/resume operations
      - Bailout during await/awaitAll operations
      - Bailout with multiple concurrent coroutines
      - Bailout in shutdown functions
      - Bailout with onFinally handlers and exception handling

      These tests ensure that:
      - Memory and stack overflow are properly handled in async contexts
      - Graceful shutdown mode is correctly initiated during bailout
      - onFinally handlers execute properly even during critical failures
      - Resource cleanup mechanisms work correctly under extreme conditions
      - Exception handlers process composite exceptions from finally blocks

      All tests follow the established naming pattern (001-015) and include
      proper expectation handling for Fatal errors and graceful shutdown
      warnings.
@EdmondDantes EdmondDantes linked an issue Jul 5, 2025 that may be closed by this pull request
@EdmondDantes EdmondDantes self-assigned this Jul 5, 2025
@EdmondDantes EdmondDantes added this to the Stabilization milestone Jul 5, 2025
@EdmondDantes EdmondDantes merged commit 781c826 into main Jul 5, 2025
1 check passed
@EdmondDantes EdmondDantes deleted the 8-bailout-tests branch July 5, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bailout tests

2 participants