The test framework manages two Java subprocesses: the TR server (#128) and the BattleRunner process. #128 covers server lifecycle. This ticket covers starting, monitoring, and cleaning up the BattleRunner Java process that actually runs battles.
Requirements
Start BattleRunner.java (compiled jar/class) as a subprocess, passing server URL, bot paths, round count
## Wayfinder child of: #126
### Context
The test framework manages two Java subprocesses: the TR server (#128) and the BattleRunner process. #128 covers server lifecycle. This ticket covers starting, monitoring, and cleaning up the BattleRunner Java process that actually runs battles.
### Requirements
- Start `BattleRunner.java` (compiled jar/class) as a subprocess, passing server URL, bot paths, round count
- Capture its stdout for result parsing (#127)
- Detect completion (process exit)
- Handle errors: non-zero exit, timeout, hung process
- Clean up on test failure/exception/signal
### Blocked by
#128 (server must be running first)
### Blocks
#130
BattleRunner process completion timeout: 30s after battle should have ended.
Use defer for process cleanup.
Detect hung process via stdout inactivity timeout.
## Spec addition from grilling
- BattleRunner process completion timeout: **30s** after battle should have ended.
- Use `defer` for process cleanup.
- Detect hung process via stdout inactivity timeout.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Wayfinder child of: #126
Context
The test framework manages two Java subprocesses: the TR server (#128) and the BattleRunner process. #128 covers server lifecycle. This ticket covers starting, monitoring, and cleaning up the BattleRunner Java process that actually runs battles.
Requirements
BattleRunner.java(compiled jar/class) as a subprocess, passing server URL, bot paths, round countBlocked by
#128 (server must be running first)
Blocks
#130
Spec addition from grilling
deferfor process cleanup.Implemented in commit
57a1915.