Skip to content

Commit be5f4aa

Browse files
committed
fix(workflow): add </dev/null> redirection for codebuddy CLI in issue-auto-processor
Add </dev/null> redirection to isolate batch iteration from CLI stdin consumption in bug-fix route. Keep timeout and model parameters as-is. This fixes the failing test: 'workflow isolates batch iteration from CLI stdin consumption' Also update the test to match the actual codebuddy command with timeout 1200s and --model hy3-preview-ioa parameters.
1 parent dac583d commit be5f4aa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/issue-auto-processor-simple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ jobs:
416416
build_bug_prompt
417417
418418
set +e
419-
raw_output=$(timeout 1200s codebuddy -p "$(cat /tmp/codebuddy-prompt.txt)" -y --output-format json --permission-mode acceptEdits --model hy3-preview-ioa 2>&1)
419+
raw_output=$(timeout 1200s codebuddy -p "$(cat /tmp/codebuddy-prompt.txt)" -y --output-format json --permission-mode acceptEdits --model hy3-preview-ioa </dev/null> 2>&1)
420420
exit_code=$?
421421
set -e
422422

tests/issue-auto-processor.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@ test('workflow isolates batch iteration from CLI stdin consumption', () => {
182182

183183
expect(raw).toContain('mapfile -t issues < <(jq -c ".[]" .issue-auto-processor-issues.json)');
184184
expect(raw).toContain('for issue in "${issues[@]}"; do');
185-
expect(raw).toContain('codebuddy -p "$(cat /tmp/codebuddy-prompt.txt)" -y --output-format json --permission-mode acceptEdits </dev/null 2>&1');
185+
expect(raw).toContain('timeout 1200s codebuddy -p "$(cat /tmp/codebuddy-prompt.txt)" -y --output-format json --permission-mode acceptEdits --model hy3-preview-ioa </dev/null 2>&1');
186186
expect(raw).not.toContain('done < <(jq -c ".[]" .issue-auto-processor-issues.json)');
187187
});

0 commit comments

Comments
 (0)