Skip to content

Make two tests hermetic on macOS and under agent harnesses - #1557

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:agents/fix-test-hermetic
Oct 8, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:agents/fix-test-hermetic

Conversation

@potiuk

@potiuk potiuk commented Oct 8, 2026

Copy link
Copy Markdown
Member

Fixes two tests that fail on macOS / inside agent harnesses and block the workspace pytest hook:

  • container-gateway test_serve_unix_binds_owner_only: pytest tmp_path exceeds the AF_UNIX path limit; use a short temp dir.
  • agent-isolation bare-repo worktree test: an inherited GIT_CONFIG_COUNT (safe.bareRepository=explicit) made git worktree add fail; set GIT_CONFIG_COUNT=0 in the test env.

- container-gateway: bind the unix socket under a short temp dir so the
  path stays within the AF_UNIX limit.
- agent-isolation: neutralise inherited GIT_CONFIG_COUNT so
  safe.bareRepository=explicit cannot break 'worktree add' on a bare repo.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added family:tools tools/* substrate:sandbox Tool substrate: agent isolation, egress control, settings audit labels Oct 8, 2026
@potiuk
potiuk merged commit 5a74293 into apache:main Oct 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:tools tools/* substrate:sandbox Tool substrate: agent isolation, egress control, settings audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant