Skip to content

test(agy): use a short sh shebang in the fake agy script - #328

Merged
tbhb-agent merged 1 commit into
mainfrom
agent/tools-agy-fixture-shebang
Nov 23, 2026
Merged

tbhb-agent merged 1 commit into
mainfrom
agent/tools-agy-fixture-shebang

Conversation

@tbhb-agent

Copy link
Copy Markdown
Collaborator

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.

Opened-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli
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=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
@tbhb-agent
tbhb-agent requested a review from tbhb as a code owner November 23, 2026 08:57
@tbhb-agent
tbhb-agent merged commit f6a8a94 into main Nov 23, 2026
5 checks passed
@tbhb-agent
tbhb-agent deleted the agent/tools-agy-fixture-shebang branch November 23, 2026 09:25
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