Add parallel capacity test tool for Hermes/OpenCode #5
Reference in New Issue
Block a user
Delete Branch "fix/issue-3-parallel-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds a parallel capacity test tool to stress test Hermes/OpenCode and find the practical limit of parallel agent execution.
What was added
Files
tools/parallel-capacity-test/run_test.sh- Bash script for running teststools/parallel-capacity-test/parallel_capacity_test.py- Python tool with detailed metricstools/parallel-capacity-test/README.md- DocumentationCapabilities
Usage
Fixes #3
can you run the test and post here the result of the test using different parameters?
Parallel Capacity Test Results
Ran the parallel capacity test tool with different agent counts (timeout: 60s).
Results Summary
Observations
Test Environment
Note: psutil was not available, so resource monitoring was limited.
Debug Report: Parallel Capacity Test Tool Failing All Tests
Problem
All tests return 0 success regardless of agent count (1, 2, 3, 5 all fail).
Root Cause Found
The script
parallel_capacity_test.pyuses the wrong command-line option for specifying the working directory.Bug location: Line in
_run_single_agent()method:Issue:
opencode rundoes NOT have a--workdiroption. It uses--dirinstead.When
--workdiris passed, opencode treats it as an unrecognized option and shows the help message, causing the subprocess to return exit code 1 and no useful output.Evidence
With correct
--diroption (works):With incorrect
--workdiroption (fails):Fix Applied
Changed line 138 in
parallel_capacity_test.pyfrom:to:
Verification
After fix, test now passes:
Additional Notes
yes we should debug it. what are the other options other than psutil? I'd like to use something built-in, so no additional installation if possible. but if there is no such approach, well there is no way so tell user that we are using external tool so they need to install it first before using our tool. what do you think?
alright can you now post the test result using different parameters?
in the parallel capacity test, can we use kugetsu cli instead of opencode cli directly? in a way that I want to be sure that we are testing our own tool so we know exactly how many parallelization we can run at a time. in a way like, how much does it cost for a single parallelization, and how how does it cost if we scale it up. lets say at most memory we can use is 1 GB. what do you think?
Parallel Capacity Test Results (Kugetsu Mode)
Tested with
kugetsuCLI but all tests failed becausekugetsu initrequires TTY. Tested withopencodemode instead:Key Findings
Notes
kugetsu init- cannot run headlesskugetsu initfirst, then run testlgtm
shoko referenced this pull request2026-04-03 11:13:35 +02:00