Repository navigation
Skip redundant local Git queries during PR refresh and merge admission - #1735
Conversation
Architecture-Review: unchanged; the publication and merge verification boundaries are unchanged. Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the base merge retains delivery verification and adapts the consolidated ancestry test. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on b04d3a417c73ff42695cd0ab7237cf1a56dba512, 18.7s: approve (0 critical, 0 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
|
|
||
| git_calls.clear() | ||
| code, out, err = run(capsys, "pr") | ||
| assert not any(call[:2] == ["merge-base", "--is-ancestor"] for call in git_calls) |
There was a problem hiding this comment.
suggestion: The tests don't check the 10 and 7 process totals named in the acceptance criteria
The acceptance criteria call for measuring 10 Git processes on a same-head PR refresh and 7 on merge admission. The new tests only check that the redundant calls are gone: no merge-base --is-ancestor call, and exactly one branch --show-current call. That matches what the Notes say was intended, and it does guard the specific regression. But other extra Git launches could creep back into either path without any test failing. If the totals matter, add assert_git_cost(git_calls, 10, ...) and assert_git_cost(git_calls, 7, ...), using the existing helper at tests/test_cli.py:308, next to the targeted assertions. This is optional.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Skip redundant local Git queries during PR refresh and merge admission
Context and goal
Closes #1608
Acceptance
Notes
Supersedes #1615 and #1690. This branch retains the merge commit and its test conflict resolution. The upstream push-target check adds one launch to the PR baseline. The regression tests now assert against the redundant calls themselves.
The architecture guide already describes the delivery and verification boundaries. This only removes redundant local queries.
Validation
(no
loopzero checkrun recorded)Review
Base
Base: 481383a
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.