Skip to content

fix(ci): Accept copilot branches in the branch-name hook - #5407

Merged
dan-petty merged 6 commits into
mainfrom
fix/5136-copilot-setup-hooks-refuse-commits-on
Nov 13, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/5136-copilot-setup-hooks-refuse-commits-on

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

The Copilot setup steps install the branch-name hook, and that hook refuses each commit on a branch outside <type>/<issue>-<slug>. The Copilot cloud agent works on a copilot/ branch that it cannot rename, so the hook stops the agent at its first commit with an unknown Git error (#5136).

Closes #5136

Change: openspec/changes/archive/2026-11-13-5136-copilot-setup-hooks-refuse-commits-on/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 13, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/5136-copilot-setup-hooks-refuse-commits-on branch from ecc0832 to 8d5efb1 Compare November 13, 2026 13:00
@devops-cli-service
devops-cli-service Bot force-pushed the fix/5136-copilot-setup-hooks-refuse-commits-on branch from 8d5efb1 to 2145bee Compare November 13, 2026 13:02
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #5136 Accept copilot branches in the branch-name hook fix(ci): Accept copilot branches in the branch-name hook Nov 13, 2026
@devops-cli-service

devops-cli-service Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 987970/6091 pytest on base: tests/git/test_branch_form.py
group 2 done 1 483873/5690 -
group 3 done 1 434134/3387 -
fix done 1 838593/9207 -
  • scoped check pre-push: passed, 8 s
  • scoped check static: passed, 23 s
  • scoped check tests: passed, 18 s
  • scoped check pre-push: passed, 7 s
  • scoped check static: passed, 24 s
  • scoped check tests: passed, 18 s
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.git.test_branch_form::test_the_branch_form_of_the_code_is_the_form_of_the_hook.
  • verify of group 2: uv run devops ci test tests/invariants/test_workflow_contracts.py exits 0.
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/agent/worktrees/w-5136
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, hypothesis-6.170.15, syrupy-7.0.0, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, platformdirs-4.14.5, timeout-2.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 160 items

tests/invariants/test_workflow_contracts.py ................................................................................................................................................................                                       [100%]

================================================================================================================== 160 passed in 6.67s ===================================================================================================================
Bytecode compiled 19311 files in 452ms
Bytecode compiled 19311 files in 461ms
/home/devops/.data/agent/worktrees/w-5136/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
Elapsed: 17s
  • verify of group 3: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-5136
\u2713 All documentation files are up to date.
Bytecode compiled 19311 files in 452ms
Bytecode compiled 19311 files in 486ms
Elapsed: 8.14s
Elapsed: 11s
  • verify of group 0: uv run devops ci test tests/git/test_branch_form.py exits 0.
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/agent/worktrees/w-5136
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, hypothesis-6.170.15, syrupy-7.0.0, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, platformdirs-4.14.5, timeout-2.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 10 items

tests/git/test_branch_form.py ..........                                                                                                                                                                                                           [100%]

=================================================================================================================== 10 passed in 0.28s ===================================================================================================================
Bytecode compiled 19311 files in 430ms
Bytecode compiled 19311 files in 474ms
/home/devops/.data/agent/worktrees/w-5136/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
Elapsed: 10s
  • verify of group 0: uv run devops ci test tests/invariants/test_workflow_contracts.py exits 0.
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/agent/worktrees/w-5136
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, hypothesis-6.170.15, syrupy-7.0.0, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, platformdirs-4.14.5, timeout-2.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 160 items

tests/invariants/test_workflow_contracts.py ................................................................................................................................................................                                       [100%]

================================================================================================================== 160 passed in 6.59s ===================================================================================================================
Bytecode compiled 19311 files in 460ms
Bytecode compiled 19311 files in 451ms
/home/devops/.data/agent/worktrees/w-5136/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
Elapsed: 16s
  • verify of group 0: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-5136
\u2713 All documentation files are up to date.
Bytecode compiled 19311 files in 458ms
Bytecode compiled 19311 files in 481ms
Elapsed: 8.01s
Elapsed: 11s

@devops-cli-service devops-cli-service Bot added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 13, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 13, 2026 13:44
dan-petty added a commit that referenced this pull request Nov 13, 2026
The stage job pushed plans that the CI job Plan Check then refused. On
2026-11-13 it staged #5136 with no gate return, and Plan Check refused
plan pull request #5407 because group 2 packs no file.

The stage job now runs the rules of `devops roadmap plan-check` that
need no pull request on the files that it writes, after `openspec
validate`: the title and body rules, the plan reader, the stage gates
and the size of each group. The command and the job call the same
functions of `plan_check.py`, so no rule has a second copy. A refused
reply goes back to the model as a gate return of the gate `plan-check`.
A reply that the rules still refuse after the last return fails the
item, and the job pushes no branch.

This also covers the `group-no-files` refusal that #3970 and #3965 ask
for. The run of the invariant tests before the push waits for #4559.

Closes #4725

Change:
`openspec/changes/archive/2026-11-13-4725-run-the-plan-checks-before-the/`
Elapsed: 2.73s
@dan-petty
dan-petty merged commit be2b71c into main Nov 13, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/5136-copilot-setup-hooks-refuse-commits-on branch November 13, 2026 14:45
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.129.1](v0.129.0...v0.129.1)
(2026-11-13)


### Bug Fixes

* **ci:** Accept copilot branches in the branch-name hook
([#5407](#5407))
([be2b71c](be2b71c))
* **roadmap:** a later plan review judges each earlier finding
([#5423](#5423))
([68227f9](68227f9))

---
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/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners 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(ci): Copilot setup hooks refuse commits on copilot/ branches

1 participant