Repository navigation
ci: add timeout-minutes to all workflow jobs to prevent multi-hour hangs - #11
Merged
Merged
Conversation
A `CI / cuda` run recently hung for ~24h. None of the 10 workflow files set any job timeout, so a stuck job (e.g. a hung `cargo test` on the self-hosted GPU runner, or a stalled HF model download) could run until the runner/GitHub default limit. Add job-level `timeout-minutes` to every job that can take one (20 jobs across 9 files), tiered by workload: - heavy CUDA / release / docker builds: 90 - normal builds, test suites, cargo doc, msrv: 45 (clippy workspace: 30) - lint / quick / deploy (fmt, typos, doc-links, pages deploy): 15 Also add step-level timeouts on the likely hang points so a single wedged step fails fast instead of consuming the whole job budget: - ci_cuda.yaml: Clippy (60), Test (30) - release.yml: Build binary (75) - build-test-matrix.yml: Build hanzo-cli (75), Smoke test (10) - ci.yml: cargo test step (40, guards stalled HF downloads) The two reusable-workflow caller jobs (build-image.yml `docker`, release.yml `publish-docker`) are intentionally left unchanged: the Actions schema forbids `timeout-minutes` on a job that uses `uses:`. Their timeout must live in the called workflow (hanzoai/.github). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Code Metrics Report━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Language Files Lines Code Comments Blanks ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ C Header 5 305 210 52 43 C++ 1 1048 868 42 138 CSS 5 1462 1288 39 135 CUDA 60 20622 16570 1656 2396 Dockerfile 1 38 21 8 9 JavaScript 19 3972 3089 488 395 Jinja2 7 694 656 5 33 JSON 27 9400 9397 0 3 Makefile 1 6 5 0 1 MDX 1 147 0 132 15 Metal Shading Lan| 34 13466 10542 1117 1807 PowerShell 1 300 227 30 43 Python 131 10161 8357 462 1342 Shell 4 948 765 106 77 Plain Text 3 3723 0 2413 1310 TOML 28 1130 1027 23 80 TypeScript 11 1607 1371 66 170 YAML 4 41 39 2 0 ───────────────────────────────────────────────────────────────────────────────── HTML 4 782 695 38 49 |- CSS 1 578 544 14 20 |- JavaScript 1 24 23 0 1 (Total) 1384 1262 52 70 ───────────────────────────────────────────────────────────────────────────────── Jupyter Notebooks 3 122 83 23 16 |- Markdown 1 60 30 22 8 |- Python 1 122 113 1 8 (Total) 304 226 46 32 ───────────────────────────────────────────────────────────────────────────────── Markdown 211 19270 0 13529 5741 |- BASH 124 1405 1095 191 119 |- Dockerfile 3 6 6 0 0 |- JSON 35 1175 1175 0 0 |- PowerShell 5 7 7 0 0 |- Python 45 1717 1459 65 193 |- Rust 63 2410 2037 56 317 |- TOML 16 318 250 4 64 |- YAML 3 18 17 1 0 (Total) 26326 6046 13846 6434 ───────────────────────────────────────────────────────────────────────────────── Rust 523 252847 223507 6439 22901 |- Markdown 322 8113 452 6708 953 (Total) 260960 223959 13147 23854 ───────────────────────────────────────────────────────────────────────────────── Svelte 18 1831 1696 50 85 |- CSS 1 4 4 0 0 |- JavaScript 18 876 727 24 125 (Total) 2711 2427 74 210 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Total 1102 360755 288352 33806 38597 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
hanzo-dev
added a commit
that referenced
this pull request
Jun 2, 2026
…tection) (#16) engine #11 timeouts did not land on main; these had 0 (the 24h CUDA hang was unprotected). 90-min job cap after each single-line runs-on (uses-jobs + multi-line runs-on untouched). release.yml handled by the migration PR. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
hanzo-dev
added a commit
that referenced
this pull request
Jul 16, 2026
…ngs (#11) A `CI / cuda` run recently hung for ~24h. None of the 10 workflow files set any job timeout, so a stuck job (e.g. a hung `cargo test` on the self-hosted GPU runner, or a stalled HF model download) could run until the runner/GitHub default limit. Add job-level `timeout-minutes` to every job that can take one (20 jobs across 9 files), tiered by workload: - heavy CUDA / release / docker builds: 90 - normal builds, test suites, cargo doc, msrv: 45 (clippy workspace: 30) - lint / quick / deploy (fmt, typos, doc-links, pages deploy): 15 Also add step-level timeouts on the likely hang points so a single wedged step fails fast instead of consuming the whole job budget: - ci_cuda.yaml: Clippy (60), Test (30) - release.yml: Build binary (75) - build-test-matrix.yml: Build hanzo-cli (75), Smoke test (10) - ci.yml: cargo test step (40, guards stalled HF downloads) The two reusable-workflow caller jobs (build-image.yml `docker`, release.yml `publish-docker`) are intentionally left unchanged: the Actions schema forbids `timeout-minutes` on a job that uses `uses:`. Their timeout must live in the called workflow (hanzoai/.github). Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
hanzo-dev
added a commit
that referenced
this pull request
Jul 16, 2026
…tection) (#16) engine #11 timeouts did not land on main; these had 0 (the 24h CUDA hang was unprotected). 90-min job cap after each single-line runs-on (uses-jobs + multi-line runs-on untouched). release.yml handled by the migration PR. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
zeekay
pushed a commit
that referenced
this pull request
Jul 26, 2026
…ngs (#11) A `CI / cuda` run recently hung for ~24h. None of the 10 workflow files set any job timeout, so a stuck job (e.g. a hung `cargo test` on the self-hosted GPU runner, or a stalled HF model download) could run until the runner/GitHub default limit. Add job-level `timeout-minutes` to every job that can take one (20 jobs across 9 files), tiered by workload: - heavy CUDA / release / docker builds: 90 - normal builds, test suites, cargo doc, msrv: 45 (clippy workspace: 30) - lint / quick / deploy (fmt, typos, doc-links, pages deploy): 15 Also add step-level timeouts on the likely hang points so a single wedged step fails fast instead of consuming the whole job budget: - ci_cuda.yaml: Clippy (60), Test (30) - release.yml: Build binary (75) - build-test-matrix.yml: Build hanzo-cli (75), Smoke test (10) - ci.yml: cargo test step (40, guards stalled HF downloads) The two reusable-workflow caller jobs (build-image.yml `docker`, release.yml `publish-docker`) are intentionally left unchanged: the Actions schema forbids `timeout-minutes` on a job that uses `uses:`. Their timeout must live in the called workflow (hanzoai/.github). Co-authored-by: Hanzo Dev <[email protected]>
zeekay
pushed a commit
that referenced
this pull request
Jul 26, 2026
…tection) (#16) engine #11 timeouts did not land on main; these had 0 (the 24h CUDA hang was unprotected). 90-min job cap after each single-line runs-on (uses-jobs + multi-line runs-on untouched). release.yml handled by the migration PR. Co-authored-by: Hanzo Dev <[email protected]>
zeekay
pushed a commit
that referenced
this pull request
Jul 26, 2026
…ngs (#11) A `CI / cuda` run recently hung for ~24h. None of the 10 workflow files set any job timeout, so a stuck job (e.g. a hung `cargo test` on the self-hosted GPU runner, or a stalled HF model download) could run until the runner/GitHub default limit. Add job-level `timeout-minutes` to every job that can take one (20 jobs across 9 files), tiered by workload: - heavy CUDA / release / docker builds: 90 - normal builds, test suites, cargo doc, msrv: 45 (clippy workspace: 30) - lint / quick / deploy (fmt, typos, doc-links, pages deploy): 15 Also add step-level timeouts on the likely hang points so a single wedged step fails fast instead of consuming the whole job budget: - ci_cuda.yaml: Clippy (60), Test (30) - release.yml: Build binary (75) - build-test-matrix.yml: Build hanzo-cli (75), Smoke test (10) - ci.yml: cargo test step (40, guards stalled HF downloads) The two reusable-workflow caller jobs (build-image.yml `docker`, release.yml `publish-docker`) are intentionally left unchanged: the Actions schema forbids `timeout-minutes` on a job that uses `uses:`. Their timeout must live in the called workflow (hanzoai/.github). Co-authored-by: Hanzo Dev <[email protected]>
zeekay
pushed a commit
that referenced
this pull request
Jul 26, 2026
…tection) (#16) engine #11 timeouts did not land on main; these had 0 (the 24h CUDA hang was unprotected). 90-min job cap after each single-line runs-on (uses-jobs + multi-line runs-on untouched). release.yml handled by the migration PR. Co-authored-by: Hanzo Dev <[email protected]>
hanzo-dev
added a commit
that referenced
this pull request
Jul 27, 2026
…ngs (#11) A `CI / cuda` run recently hung for ~24h. None of the 10 workflow files set any job timeout, so a stuck job (e.g. a hung `cargo test` on the self-hosted GPU runner, or a stalled HF model download) could run until the runner/GitHub default limit. Add job-level `timeout-minutes` to every job that can take one (20 jobs across 9 files), tiered by workload: - heavy CUDA / release / docker builds: 90 - normal builds, test suites, cargo doc, msrv: 45 (clippy workspace: 30) - lint / quick / deploy (fmt, typos, doc-links, pages deploy): 15 Also add step-level timeouts on the likely hang points so a single wedged step fails fast instead of consuming the whole job budget: - ci_cuda.yaml: Clippy (60), Test (30) - release.yml: Build binary (75) - build-test-matrix.yml: Build hanzo-cli (75), Smoke test (10) - ci.yml: cargo test step (40, guards stalled HF downloads) The two reusable-workflow caller jobs (build-image.yml `docker`, release.yml `publish-docker`) are intentionally left unchanged: the Actions schema forbids `timeout-minutes` on a job that uses `uses:`. Their timeout must live in the called workflow (hanzoai/.github).
hanzo-dev
added a commit
that referenced
this pull request
Jul 27, 2026
…ngs (#11) A `CI / cuda` run recently hung for ~24h. None of the 10 workflow files set any job timeout, so a stuck job (e.g. a hung `cargo test` on the self-hosted GPU runner, or a stalled HF model download) could run until the runner/GitHub default limit. Add job-level `timeout-minutes` to every job that can take one (20 jobs across 9 files), tiered by workload: - heavy CUDA / release / docker builds: 90 - normal builds, test suites, cargo doc, msrv: 45 (clippy workspace: 30) - lint / quick / deploy (fmt, typos, doc-links, pages deploy): 15 Also add step-level timeouts on the likely hang points so a single wedged step fails fast instead of consuming the whole job budget: - ci_cuda.yaml: Clippy (60), Test (30) - release.yml: Build binary (75) - build-test-matrix.yml: Build hanzo-cli (75), Smoke test (10) - ci.yml: cargo test step (40, guards stalled HF downloads) The two reusable-workflow caller jobs (build-image.yml `docker`, release.yml `publish-docker`) are intentionally left unchanged: the Actions schema forbids `timeout-minutes` on a job that uses `uses:`. Their timeout must live in the called workflow (hanzoai/.github).
zeekay
added a commit
that referenced
this pull request
Sep 15, 2026
…ngs (#11) A `CI / cuda` run recently hung for ~24h. None of the 10 workflow files set any job timeout, so a stuck job (e.g. a hung `cargo test` on the self-hosted GPU runner, or a stalled HF model download) could run until the runner/GitHub default limit. Add job-level `timeout-minutes` to every job that can take one (20 jobs across 9 files), tiered by workload: - heavy CUDA / release / docker builds: 90 - normal builds, test suites, cargo doc, msrv: 45 (clippy workspace: 30) - lint / quick / deploy (fmt, typos, doc-links, pages deploy): 15 Also add step-level timeouts on the likely hang points so a single wedged step fails fast instead of consuming the whole job budget: - ci_cuda.yaml: Clippy (60), Test (30) - release.yml: Build binary (75) - build-test-matrix.yml: Build hanzo-cli (75), Smoke test (10) - ci.yml: cargo test step (40, guards stalled HF downloads) The two reusable-workflow caller jobs (build-image.yml `docker`, release.yml `publish-docker`) are intentionally left unchanged: the Actions schema forbids `timeout-minutes` on a job that uses `uses:`. Their timeout must live in the called workflow (hanzoai/.github). Co-authored-by: Hanzo Dev <[email protected]>
zeekay
added a commit
that referenced
this pull request
Sep 15, 2026
…tection) (#16) engine #11 timeouts did not land on main; these had 0 (the 24h CUDA hang was unprotected). 90-min job cap after each single-line runs-on (uses-jobs + multi-line runs-on untouched). release.yml handled by the migration PR. Co-authored-by: Hanzo Dev <[email protected]>
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
A
CI / cudarun recently hung for ~24h. None of the 10 workflow files set any job timeout, so a stuck job (a wedgedcargo teston the self-hosted GPU runner, a stalled HF model download, a hung Docker build) runs until GitHub's default ceiling.What
Added job-level
timeout-minutesto every job that can take one — 20 jobs across 9 files — tiered by workload:brew_release:build,build_cpu,build_cuda_all,build-test-matrix,ci_cuda:test-cuda,release:build-binariesanalysis,ci:check,ci:check-metal,ci:test,ci:docs,ci:msrv,docs:build,release:build-and-testci:clippyci:fmt,ci:typos,ci:doc-links,docs:deploy,release:create-releasePlus step-level timeouts on the most likely hang points so one wedged step fails fast instead of burning the whole job budget:
ci_cuda.yaml: Clippy (60), Test (30)release.yml: Build binary (75)build-test-matrix.yml: Build hanzo-cli (75), Smoke test (10)ci.yml:cargo teststep (40) — guards stalled HF downloadsIntentionally not changed
Two reusable-workflow caller jobs —
build-image.yml:dockerandrelease.yml:publish-docker— are left as-is. The Actions schema forbidstimeout-minuteson a job that usesuses:; their timeout belongs in the called workflow (hanzoai/.github/.github/workflows/docker-build.yml).All 10 workflow files were validated to still parse as valid YAML.
🤖 Generated with Claude Code