Skip to content

fix(alpha): explain build pull request publication failures - #327

Merged
tbhb-agent merged 1 commit into
mainfrom
agent/tools-push-split4
Nov 23, 2026
Merged

tbhb-agent merged 1 commit into
mainfrom
agent/tools-push-split4

Conversation

@tbhb-agent

@tbhb-agent tbhb-agent commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Why

A run returned the same status when the push failed and when only the pull request failed, so a pushed branch with no pull request looked like a failed push. A scan finding in a draft also logged more than the rule ID.

Behavior change

If the driver pushes the branch and can't open the pull request, it returns 5 and logs a pr not opened: line with the cause. A draft scan finding logs only the rule ID and the line number. The status command shows the latest publication reason next to the return code.

Deviations from the task

This pull request is the part of the original change that #323 dropped to fit the size limit.

Risk

A branch can exist on the remote when a run returns 5. A caller that retries every nonzero result can then attempt a second push, while a caller that reads only zero versus nonzero doesn't notice.

Verification

Per the run's report, pytest passed 1,624 targeted tests with 100% line and branch coverage for the changed modules, and ruff passed. The run measured 182 added Code lines against its parent. CI runs the full Bazel suite at the head.

Opened-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli
Assisted-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli

@tbhb-agent
tbhb-agent requested a review from tbhb as a code owner November 23, 2026 08:42
Base automatically changed from agent/tools-push-loud3 to main November 23, 2026 09:01
tbhb-agent added a commit that referenced this pull request Nov 23, 2026
Why
The fake `agy` test script used the Python interpreter path as its
shebang. On a host whose interpreter path is long, the kernel refused to
run it with `ENOEXEC`, so four tests in `test_agy_otel.py` failed there.

Behavior change
None for the product. The fixture now writes a short `/bin/sh` script
that prints the version or stream file and exits with the recorded code.

Deviations from the task
A Codex run found this while building #327 and left it on
a local branch. This pull request contains only that fix.

Risk
Only the fixture changes. A shell without `dirname` or `cat` would break
it, and every supported host has both.

Verification
`pytest tests/test_agy_otel.py` passed 8 tests on this host, and
`ruff check` and `ruff format --check` passed. CI runs the full Bazel
suite.

Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:ec35558d6fb1a9a1;surface=exec
@tbhb-agent
tbhb-agent force-pushed the agent/tools-push-split4 branch from c97f8a0 to 9ad71f4 Compare November 23, 2026 10:08
@tbhb-agent
tbhb-agent merged commit d6356f0 into main Nov 23, 2026
5 checks passed
@tbhb-agent
tbhb-agent deleted the agent/tools-push-split4 branch November 23, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant