You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
infer reusable workflow: drop pip pre-commit install now that repos use plain .githooks #112
In cli run 29505567185 (issue inference-gateway/cli#921), the agent's pre-commit run Bash call took 7m2s and was killed by the CLI's tool timeout (exit status -1, log: [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks). The pip-based pre-commit framework builds its hook environments cold on every runner — there is no actions/cache on ~/.cache/pre-commit, and the workflow's "Install pre-commit" step only installs the git hook, never warms the environments — so the cost lands inside the agent's Bash timeout window instead of workflow setup.
Change in cli
The cli repo is dropping the pip pre-commit framework entirely in favor of a plain .githooks/pre-commit shell script (the same pattern infer-action already uses), wired via git config core.hooksPath .githooks. The task precommit:install / task precommit:run contract is unchanged, so no workflow change is required for correctness — but the pip install pre-commit in the reusable workflow becomes dead weight.
Proposal
In .github/workflows/infer.yml, "Install pre-commit" step (gated on inputs.precommit):
Keep task precommit:install as the contract.
Gate pip install pre-commit on the repo actually having a .pre-commit-config.yaml, and for those repos also warm the environments (pre-commit install-hooks) plus cache ~/.cache/pre-commit keyed on hashFiles('.pre-commit-config.yaml') — so any remaining framework-based repo pays the install in workflow setup (25-min job timeout), never inside the agent's Bash tool timeout.
Once all repos are on .githooks, the step reduces to task precommit:install alone.
Activity
chore(hooks): replace pip pre-commit framework with plain .githooks (#…