Commit Graph

3 Commits

Author SHA1 Message Date
Matthew Raymer
ececbd3cc2 Fix zsh test stability runner script dependencies and npm script reference
- Create zsh-compatible common functions script (test-stability-common-zsh.sh)
- Fix script directory detection in zsh runner to use $(dirname "$0")
- Update zsh runner to source zsh-compatible common file instead of bash version
- Change npm script from test:playwright to test:web to match package.json
- Remove duplicate array declarations from zsh runner
- Make both scripts executable

Resolves "no such file or directory" and "command not found" errors when running zsh scripts.
2025-08-18 11:07:19 +00:00
Matthew Raymer
b9b583a14e refactor: eliminate shell script duplication with common base
- Extract shared functionality into test-stability-common.sh
- Refactor test-stability-runner.sh from 421 to 40 lines
- Refactor test-stability-runner-simple.sh from 423 to 117 lines
- Refactor test-stability-runner.zsh from 607 to 93 lines
- Net reduction: 1,336 deletions, 485 additions (-851 lines)
- Maintain all existing functionality while eliminating code duplication
- Improve maintainability with single source of truth for common functions
2025-08-18 09:56:32 +00:00
Matthew Raymer
33ba03d208 Fix math expression errors in Zsh test stability runner
- Add input validation for all numeric values before math operations
- Implement safe math calculations with zero-division protection
- Add error redirection (2>/dev/null) to suppress command errors
- Improve process management with proper background process cleanup
- Add fallback values when commands return invalid output
- Fix progress bar display with better validation and error handling
- Ensure all math expressions use validated numeric inputs

Resolves "bad math expression: operator expected" errors in track_test_progress function.
2025-08-05 12:19:27 +00:00