diff --git a/.github/workflows/opencode-review.yml b/.github/workflows/opencode-review.yml index 86604c76..a70edc8d 100644 --- a/.github/workflows/opencode-review.yml +++ b/.github/workflows/opencode-review.yml @@ -5298,7 +5298,7 @@ jobs: } >"$prompt_file" cd "$OPENCODE_REVIEW_WORKDIR" - if ! timeout --kill-after=30s "${OPENCODE_RUN_TIMEOUT_SECONDS:-5400}s" opencode run "$(cat "$prompt_file")" \ + if ! timeout --kill-after=30s "${OPENCODE_RUN_TIMEOUT_SECONDS:-120}s" opencode run "$(cat "$prompt_file")" \ --pure \ --agent ci-review-fallback \ --model "$MODEL" \ diff --git a/tests/test_opencode_agent_contract.py b/tests/test_opencode_agent_contract.py index bde1626d..c97bc407 100644 --- a/tests/test_opencode_agent_contract.py +++ b/tests/test_opencode_agent_contract.py @@ -702,6 +702,7 @@ def test_workflow_provisions_sandbox_tool_and_reviewer_agent(): ) assert "MODEL: github-models/deepseek/deepseek-v3-0324" in publish_step assert 'OPENCODE_RUN_TIMEOUT_SECONDS: "120"' in publish_step + assert '${OPENCODE_RUN_TIMEOUT_SECONDS:-120}s' in publish_step assert ( 'timeout --kill-after=15s "${OPENCODE_EXPORT_TIMEOUT_SECONDS:-120}s"' in publish_step