Repository navigation
ci(port): keep partial work on timeout/abort, label it port-incomplete - #30
Draft
LukasParke wants to merge 1 commit into
Draft
LukasParke wants to merge 1 commit into
LukasParke wants to merge 1 commit into
Conversation
…lete The weekly port has died at the 2h converter alarm (exit 142) on every run since 10/12, and each time every edit was discarded with the runner because the failing port step skipped the commit/PR steps. On 10/05 the opposite happened: opencode ended on "Error: Tool execution aborted" but exited 0, so a half-finished tree was labelled eval-failed as if the eval had judged it. - scripts/upstream: capture opencode's status. Exit 142 on timeout, pass other failures through, and exit 4 when opencode exits 0 but its last output line is an Error (mid-run tool errors it recovers from are fine). - workflow: record the exit code instead of failing the port step, so partial work is still committed and pushed to upstreamer/sync. Classify the outcome as passed / eval-failed / port-incomplete, with distinct titles and labels, and drop stale outcome labels on a reused PR. An incomplete run never advances state.yaml. A final step fails the job. - workflow: add a timeout_minutes dispatch input (default 120, max 300) and raise the job limit to 330 so the converter alarm always fires before the job is killed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Every weekly port run since 10/12 has been killed by the 2h converter alarm (
perl alarm, exit 142 "Alarm clock") partway through the doom-loop (78c562e/75271c3) or async-tools (e8d7d6d) delta. Because the port step failed, the commit/PR steps were skipped and all work was lost. On 10/05 the opposite happened: opencode ended onError: Tool execution abortedbut exited 0, so a half-finished tree was opened aseval-failed, as if the eval had judged it.What
scripts/upstream(same change in python-agent and go-agent):set -eexit on it.142= timeout; any other non-zero status is passed through;4= opencode exited 0 but its last output line isError: ...(abort / terminal tool error). Mid-run tool errors the agent recovers from, like a failed edit it retries, are still treated as normal..github/workflows/upstreamer-port.yaml:rcand doesn't fail, so the partial tree is still committed and pushed toupstreamer/sync, and the PR is opened or updated.passedeval-failed: the converter finished butstate.yamldidn't advanceport-incomplete: the converter was cut off, so the eval result means nothingstate.yamlso it can never advance the pointer.eval-failed/port-incompletelabels from a reused PR.timeout_minutesdispatch input (default 120, max 300). The jobtimeout-minutesgoes from 150 to 330 so the converter's alarm always fires before the job is killed. If the job limit hit first, nothing would be saved.port-incomplete.Testing
opencodethrough four cases: clean exit (with a recovered mid-runError:) gives 0,Tool execution abortedas the last line gives 4, exit 7 gives 7, and a hang underUPSTREAMER_TIMEOUT_SECONDS=2gives 142.actionlint(with shellcheck) is clean. The script'sshellcheckshows only one warning, at line 140, which this PR doesn't touch.Not in scope / follow-ups
mainand re-ports the whole range. Partial work is now preserved for a human to look at, but it isn't resumed from. The stepwiserefdispatches are the way through large ranges.${{ inputs.ref }}is still interpolated straight into a shell script (pre-existing). The new inputs go throughenv:.🤖 Generated with Claude Code