fix: test_alpha.sh bugs — CLI output parsing + wait loop #156
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#156
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
Running
test_alpha.shfails on every test with parse errors:Root Causes
send_filedropusesfiledropCLI which outputs colored ANSI text + status messages. The function captures this full output and tries to use it as a message ID for integer comparison inwait_for_response.wait_for_responsepolls TestRunner inbox but theelapsedcomparison ([ "$elapsed" -lt "$timeout" ]) receives the full CLI output string instead of a clean integer.Fix
Option A: Use
filedropCLI properlyfiledrop sendoutput (parse the JSON filename)filedrop send ... 2>&1 | sed "s/\x1b\[[0-9;]*m//g"Option B: Write JSON directly (no CLI)
send_filedropfunction should write the JSON file directly to Alpha inbox instead of using the CLIOption B is preferred — simpler, no parsing needed, and the test controls exactly what gets sent.
Also needed
/olymp/agents.json(added manually, should be part of test setup)wait_for_responseshould check for files matching*Alpha*or*alpha*patternRef: #143