feat(checkout): vendor actions/checkout v6.0.2 with timeout-minutes input#128
Closed
tenstorrent-github-bot wants to merge 1 commit into
Closed
feat(checkout): vendor actions/checkout v6.0.2 with timeout-minutes input#128tenstorrent-github-bot wants to merge 1 commit into
tenstorrent-github-bot wants to merge 1 commit into
Conversation
Vendors actions/checkout@de0fac2 (v6.0.2) into checkout/ and adds a `timeout-minutes` input (default: 20) that kills any git subprocess that exceeds the limit. Changes: - action.yml: add timeout-minutes input (default '20') - src/git-source-settings.ts: add timeoutMs field to IGitSourceSettings - src/input-helper.ts: parse timeout-minutes → timeoutMs (ms) - src/git-command-manager.ts: store timeoutMs on GitCommandManager, wrap exec.exec() in Promise.race() against a timeout rejection, propagate through createCommandManager() - src/git-source-provider.ts: pass settings.timeoutMs to createCommandManager() - dist/index.js: rebuilt Usage: - uses: tenstorrent/tt-github-actions/checkout@<ref> with: timeout-minutes: 30 # override if large repos need more time Co-Authored-By: BrAIn <brain@tenstorrent.com>
Author
|
Closing in favour of a cleaner redo — two-commit structure, correct action path. |
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.
Summary
Vendors
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd(v6.0.2) — the exact commit tt-metal is pinned to — intocheckout/and adds atimeout-minutesinput that kills any git subprocess exceeding the limit.Motivation
Git operations (especially
fetchon large monorepos like tt-metal) can hang indefinitely when network issues occur mid-transfer. GitHub Actions' job-leveltimeout-minutesis too coarse — it kills the whole job with no context. A per-step git timeout lets us fail fast with a clear message and retry.Changes
checkout/action.yml— newtimeout-minutesinput, default20checkout/src/git-source-settings.ts—timeoutMs: numberfield onIGitSourceSettingscheckout/src/input-helper.ts— parsetimeout-minutes, convert to ms, validate > 0checkout/src/git-command-manager.ts— storetimeoutMsonGitCommandManager; wrap everyexec.exec()inPromise.race()against a timeout rejection; propagate throughcreateCommandManager()checkout/src/git-source-provider.ts— passsettings.timeoutMstocreateCommandManager()checkout/dist/index.js— rebuiltUsage
Base commit
actions/checkoutupstream:de0fac2e4500dabe0009e67214ff5f5447ce83dd(v6.0.2)🤖 Generated with Claude Code