Skip to content

#870 - Pinned opencode action; added timeouts/tests - #981

Merged
LSantha merged 2 commits into
masterfrom
opencode/issue870-20261121085355
Nov 21, 2026
Merged

LSantha merged 2 commits into
masterfrom
opencode/issue870-20261121085355

Conversation

@LSantha

@LSantha LSantha commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Pinned anomalyco/opencode/github to v1.19.6 in all three workflows, added per-step timeout-minutes (85/15/45), removed all @latest references, and added a node:test wiring test. All 320 tests pass.

Refs #870
Follow-up for the remaining version-step fast-fail: #982

github run

@LSantha LSantha changed the title Pinned opencode action; added timeouts/tests. All pass. #870 - Pinned opencode action; added timeouts/tests. All pass. Nov 21, 2026
@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

/oc review

You are reviewing a pull request for the automated pipeline. Your final line must be exactly one of:
Verdict: approve
Verdict: request-changes

Post this verdict as an ordinary COMMENT on the pull request (a native GitHub review is not usable here: the PR is authored by the maintainer, so GitHub blocks self-approval).

Immediately after the Verdict line, add one more line naming the model that produced this review, copied verbatim from the model your runtime reports (never invented):
Assisted-by:

A reviewer makes no commit, so this comment is the only place its model can be recorded; mergePR folds it into the merge commit as Reviewed-by. Use "Verdict: request-changes" if the PR needs code changes. Use "Verdict: approve" only if the PR is correct and ready for the next phase.

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Review: #981

The pin is correct: all three workflows use anomalyco/opencode/github@v1.19.6, no @latest remains, and the 319 node:test tests pass. Two findings:

  1. Blocker: opencode.yml:160 sets timeout-minutes: 60 on the Run opencode step, below a legitimate successful run: 44871525607 spent 68m26s in that step (05:36:21 to 06:44:47). The job comment at opencode.yml:43-48 says 90 minutes is needed for deep tickets; this cap would kill that work at 60. Raise it to ~85 (still below the 90-minute job timeout) or bound only the version fetch. The new test only checks that a timeout exists, so it cannot catch this.

  2. Gap: The pin does not remove the defect in factory: the vendored opencode action's version step uses an unauthenticated curl, which fails or hangs and takes down every agent run #870. anomalyco/opencode/github@v1.19.6's action.yml still runs the unauthenticated curl -sf https://api.github.com/repos/anomalyco/opencode/releases/latest (no --max-time), and the step timeout does nothing for the 81-138 ms fast-fail: steps.run_agent.outcome is still failure, so opencode-post-step.js:82 applies agent/failed. The /run instruction's "make a version-step failure impossible to confuse with an agent failure" is not met. Add a signal naming run_agent.version, or explicitly leave factory: the vendored opencode action's version step uses an unauthenticated curl, which fails or hangs and takes down every agent run #870 open and file a follow-up; don't claim "Closes factory: the vendored opencode action's version step uses an unauthenticated curl, which fails or hangs and takes down every agent run #870" while the fast-fail remains.

Minor: the test asserts only the presence of timeout-minutes, not that each value is below its job timeout and above legitimate run lengths; add that check when fixing the opencode value.

Verdict: request-changes
Assisted-by: opencode/deepseek-v4.1-flash-free

github run

@LSantha LSantha added the agent/done The agent finished successfully; PR opened or comment posted. label Nov 21, 2026
@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

/oc fix Address review feedback.

Assisted-by: opencode/beam-free
@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Raised opencode.yml step timeout to 85, updated pin test to enforce step < job timeout and > legitimate run length, and changed PR #981 claim from "Closes #870" to "Refs #870". All 320 tests pass.

github run

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

/oc review

You are reviewing a pull request for the automated pipeline. Your final line must be exactly one of:
Verdict: approve
Verdict: request-changes

Post this verdict as an ordinary COMMENT on the pull request (a native GitHub review is not usable here: the PR is authored by the maintainer, so GitHub blocks self-approval).

Immediately after the Verdict line, add one more line naming the model that produced this review, copied verbatim from the model your runtime reports (never invented):
Assisted-by:

A reviewer makes no commit, so this comment is the only place its model can be recorded; mergePR folds it into the merge commit as Reviewed-by. Use "Verdict: request-changes" if the PR needs code changes. Use "Verdict: approve" only if the PR is correct and ready for the next phase.

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Review: #981 (re-review of 1728278)

The pin and timeout fix are correct. Verified: all three workflows pin anomalyco/opencode/github@v1.19.6, no @latest remains in .github/workflows/*.yml; the step caps are 85/15/45 against job caps 90/20/60, so each step is below its job and 85 covers the 68m26s run cited in the previous review; node --test .github/scripts/tests/*.test.js passes 320/320; PR CI (build/test/boot32/boot64) is green.

Blocker: "Refs #870" does not keep #870 open. The ticket runner closes the linked issue after every merge it performs: approveAndMerge calls closeIssueWithLabel at .github/scripts/ticket-runner.js:853 (the auto-merge path does the same at :1213), which adds agent/done and closes with state_reason: completed at :1371. #870 is kind/bug, so isAutoMergeEligible (.github/scripts/orchestrator-helpers.js:171) routes the PR to HUMAN_REVIEW; the human approval then calls approveAndMerge, which closes #870. Changing the body to "Refs" only disables GitHub's own auto-close - it does not stop the ticket runner. Since the pinned action's version step still runs the unauthenticated curl -sf https://api.github.com/repos/anomalyco/opencode/releases/latest with no --max-time (verified in anomalyco/opencode@v1.19.6's github/action.yml), the fast-fail defect is still live; closing #870 as completed would drop it. Either add the run_agent.version signal in this PR, or file a follow-up issue for the remaining fast-fail and link it here so the work survives the merge.

Minor: The title's "All pass." violates the repo rule that test status never goes in the squash subject; mergeSubject only strips decorations (.github/scripts/orchestrator-helpers.js:687), so it would land verbatim as #870 - Pinned opencode action; added timeouts/tests. All pass. (#981). Drop "All pass." (and update the body's "All 319 tests pass" to 320).

Verdict: request-changes
Assisted-by: opencode/deepseek-v4.1-flash-free

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Posted: #981 (comment)
Verdict: request-changes
Assisted-by: opencode/deepseek-v4.1-flash-free

github run

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

/oc fix Address review feedback.

@LSantha LSantha changed the title #870 - Pinned opencode action; added timeouts/tests. All pass. #870 - Pinned opencode action; added timeouts/tests Nov 21, 2026
@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Addressed review feedback: filed follow-up issue #982 for the remaining version-step fast-fail defect, linked it in PR #981, updated PR title (dropped "All pass.") and body (320 tests). All 320 tests pass.

github run

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

/oc review

You are reviewing a pull request for the automated pipeline. Your final line must be exactly one of:
Verdict: approve
Verdict: request-changes

Post this verdict as an ordinary COMMENT on the pull request (a native GitHub review is not usable here: the PR is authored by the maintainer, so GitHub blocks self-approval).

Immediately after the Verdict line, add one more line naming the model that produced this review, copied verbatim from the model your runtime reports (never invented):
Assisted-by:

A reviewer makes no commit, so this comment is the only place its model can be recorded; mergePR folds it into the merge commit as Reviewed-by. Use "Verdict: request-changes" if the PR needs code changes. Use "Verdict: approve" only if the PR is correct and ready for the next phase.

@LSantha LSantha added agent/failed The agent exhausted its retries without producing a result. and removed agent/done The agent finished successfully; PR opened or comment posted. labels Nov 21, 2026
@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

/oc review

You are reviewing a pull request for the automated pipeline. Your final line must be exactly one of:
Verdict: approve
Verdict: request-changes

Post this verdict as an ordinary COMMENT on the pull request (a native GitHub review is not usable here: the PR is authored by the maintainer, so GitHub blocks self-approval).

Immediately after the Verdict line, add one more line naming the model that produced this review, copied verbatim from the model your runtime reports (never invented):
Assisted-by:

A reviewer makes no commit, so this comment is the only place its model can be recorded; mergePR folds it into the merge commit as Reviewed-by. Use "Verdict: request-changes" if the PR needs code changes. Use "Verdict: approve" only if the PR is correct and ready for the next phase.

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Review: #981 (re-review of 1728278)

All prior findings are addressed. Verified:

Non-blocking: the test's jobTimeoutOf takes the first timeout-minutes in each file, which is the job-level value only because each workflow has a single job; if another job is added above the opencode job, the assertion would compare against the wrong job.

Verdict: approve
Assisted-by: opencode/deepseek-v4.1-flash-free

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Posted: #981 (comment)
Verdict: approve
Assisted-by: opencode/deepseek-v4.1-flash-free

github run

@LSantha LSantha added agent/done The agent finished successfully; PR opened or comment posted. and removed agent/failed The agent exhausted its retries without producing a result. labels Nov 21, 2026
@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Agent review passed. Awaiting human approval via native GitHub PR Review UI, or /oc approve on the PR.

@LSantha

LSantha commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

/oc approve

@LSantha
LSantha merged commit f49c377 into master Nov 21, 2026
5 checks passed
@LSantha
LSantha deleted the opencode/issue870-20261121085355 branch November 21, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent/done The agent finished successfully; PR opened or comment posted.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant