Skip to content

chore: bump harness timeout default to 5h50m - #790

Merged
max-sixty merged 1 commit into
mainfrom
bump-harness-timeout-max
Jul 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
bump-harness-timeout-max

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Raises the default harness timeout from 3 hours (10800s, set in #739) to 5h50m (21000s) in both Claude harnesses (claude/action.yaml headless, claude-interactive/action.yaml PTY).

GitHub Actions hard-caps hosted-runner job execution at 6 hours with no override — confirmed against GitHub's own Actions limits docs, not configurable higher even by support. That cap counts the whole job (checkout, setup, the supervised Claude run, and the reporting/log-upload steps after it), not just the run itself, so timeout_seconds can't simply match GitHub's ceiling exactly: a session that fills its full budget would then get killed uncleanly by GitHub mid-teardown, before the harness's own SIGTERM-and-report path can run — the same opaque "$0.00, 0 tokens" failure mode #739 was fixing in the first place, just moved from 1 hour to 6.

21000s leaves a 10-minute buffer under the 6-hour ceiling. Pulled real step-timing data from two worktrunk tend-nightly runs (a normal one and the one that originally hit the 3600s cap) — actual overhead outside the supervised run (checkout, claude-setup, and the composite action's own internal setup/report steps) is ~2 minutes, so 10 minutes covers it with margin for a slower run (cache miss, network variance) while staying close to GitHub's ceiling.

Codex has no harness-level timeout (relies on the GitHub job cap directly), so it's unaffected.

Verified: full generator test suite (275 tests) and pre-commit run --all-files pass, including the check that keeps the two harnesses' input defaults in sync.

This was written by Claude Code on behalf of max

GitHub Actions hard-caps hosted-runner job execution at 6 hours with no
override, counting the whole job — checkout, setup, the Claude run, and
the reporting/log-upload steps after it — not just the supervised run.
Raises timeout_seconds from 10800s (3h, set in #739) to 21000s (5h50m)
in both Claude harnesses: a 10-minute buffer over the observed ~2-minute
real overhead, so a session that fills its budget still gets the
supervisor's clean SIGTERM-and-report instead of GitHub's own silent
kill mid-teardown. Codex has no harness-level timeout and is unaffected.
@max-sixty
max-sixty merged commit a843719 into main Jul 23, 2026
7 checks passed
@max-sixty
max-sixty deleted the bump-harness-timeout-max branch July 23, 2026 07:58
@max-sixty max-sixty mentioned this pull request Jul 24, 2026
2 of 4 tasks
max-sixty added a commit that referenced this pull request Jul 24, 2026
## Summary

Cuts release 0.1.12. 5 commits since 0.1.11:

- Raise default harness timeout to 5h50m (#790)
- Stop asking upstream maintainers to do verification the bot couldn't
do itself (#789)
- Fail loud on transient `gh` errors in `list-recent-runs.sh` instead of
a false all-clear (#784)
- Bump pinned `claude_version` to 2.1.215 (#782)
- Tolerate transient non-JSON `gh api` responses in notifications (#780)

(`#778`, a routine post-0.1.11 workflow regen, is omitted from the
changelog as non-user-facing.)

## Test plan

- [x] `wt test` — 276 passed
- [x] `pre-commit run --all-files` — passed
- [ ] CI green on this PR
- [ ] Tag `0.1.12` and push after merge to trigger PyPI publish + GitHub
Release

> _This was written by Claude Code on behalf of Maximilian Roos_
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Jul 25, 2026
Automated nightly regeneration of tend's workflow files via `uvx
tend@latest init`, picking up the tend release since the last regen.

**tend version:** 0.1.11 → 0.1.12

**Notable changes:**

- **Notifications workflow tolerates transient `gh api` blips** — the
notifications fetch now retries on non-JSON responses (e.g. an HTML
error page returned with a 200 during an API blip) and skips the cycle
cleanly instead of aborting the step red (max-sixty/tend#780).
- **`review-runs` fails loud on transient `gh` errors** — a failed run
enumeration no longer reports a false all-clear; it surfaces the error
so the run isn't silently treated as clean (max-sixty/tend#784).
- **`running-in-ci` guidance** — the bot no longer asks outside
contributors to do work it can't do itself (max-sixty/tend#789).
- **Harness bumps** — Claude harness version bumped to 2.1.215
(max-sixty/tend#782) and the default harness timeout raised to 5h50m
(max-sixty/tend#790).

Compare: max-sixty/tend@0.1.11...0.1.12

Co-authored-by: worktrunk-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants