Skip to content

fix(roadmap): the Job skips a hook whose program is missing - #3137

Merged
dan-petty merged 2 commits into
mainfrom
fix/3136-the-job-leaves-out-a-hook-without-its-program
Nov 2, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/3136-the-job-leaves-out-a-hook-without-its-program

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

What changes

The Job leaves out of its hook configuration any hook whose program the runner image does not hold. Today that is devops-ci-workflows-pre-push, which runs actionlint. The checks of the pull request run it.

  • runner_tools.py: HOOK_PROGRAMS (hook id to programs) and hooks_without_programs().
  • implement_hooks.py: trusted_config drops those hooks from the copy it writes for every hook run, and a repository that keeps no hook. The copy is the same text when nothing is dropped.
  • Tests: the copy without the hook, the copy with the program on PATH, a repository with no hook left, the search-path check, and a check that each skipped hook is in .pre-commit-config.yaml and each program is in NOT_IN_RUNNER.

Why

#3111 left actionlint out of the runner image, and #3112 made the Job run the hooks of the pre-push stage. So an item that changes a workflow file failed that hook in the Job, no agent could repair it, and the Job stopped with no push. The independent review of #3112 proved the failure.

Verification

  • pre-commit validate-config accepts the repository configuration with that hook removed (17 of 18 hooks stay).
  • uv run devops ci test tests/roadmap and the invariant tests pass (2642 tests).

Closes #3136

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 1, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 2, 2026 00:08
@dan-petty
dan-petty merged commit 6c57c85 into main Nov 2, 2026
20 checks passed
@dan-petty
dan-petty deleted the fix/3136-the-job-leaves-out-a-hook-without-its-program branch November 2, 2026 00:08
dan-petty pushed a commit that referenced this pull request Nov 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.39.1](v0.39.0...v0.39.1)
(2026-11-02)


### Bug Fixes

* **k8s:** set native structured output on Claude groups
([#3141](#3141))
([9ab668e](9ab668e)),
closes [#3140](#3140)
* **roadmap:** the Job skips a hook whose program is missing
([#3137](#3137))
([6c57c85](6c57c85)),
closes [#3136](#3136)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): the Job leaves out a hook whose program the runner image does not hold

1 participant