aglinxinyuan opened a new pull request, #7151: URL: https://github.com/apache/texera/pull/7151
### What changes were proposed in this PR? Adds `WorkflowLifecycleManagerSpec` for the lifecycle manager's externally observable cleanup behavior. | Scenario | Observable contract | | --- | --- | | Multiple users | Cleanup waits until the final user disconnects. | | Workflow state | A RUNNING update cancels cleanup; a terminal update schedules it again. | | Repeated terminal updates | A later update replaces the older deadline. | The suite uses an isolated Pekko actor system and restores `AmberRuntime`'s shared actor-system reference after the suite, so other Amber suites retain their runtime setup. The assertions were mutation-tested against temporary production changes, all reverted before commit: | Temporary mutation | Result | | --- | --- | | `userCount == 0` to `userCount < 0` | 1 test failed | | `status == RUNNING` to `status != RUNNING` | 2 tests failed | | Remove cancellation of an active cleanup deadline | 1 test failed | ### Any related issues, documentation, discussions? Closes #7150 ### How was this PR tested? ``` "C:/Program Files (x86)/sbt/bin/sbt" -java-home "C:/Users/linxi/.jdks/jbr-17.0.14" "WorkflowExecutionService/testOnly org.apache.texera.web.WorkflowLifecycleManagerSpec" ``` ``` Tests: succeeded 3, failed 0 ``` ``` "C:/Program Files (x86)/sbt/bin/sbt" -java-home "C:/Users/linxi/.jdks/jbr-17.0.14" "WorkflowExecutionService/Test/scalafmtCheck" "WorkflowExecutionService/Test/scalafix --check" ``` Both checks completed successfully. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Codex (GPT-5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
