Skip to content

test: pin platform in git-preflight probes that assumed a Linux host - #1179

Open
PatrickKalkman wants to merge 1 commit into
jayminwest:mainfrom
PatrickKalkman:test/preflight-platform
Open

test: pin platform in git-preflight probes that assumed a Linux host#1179
PatrickKalkman wants to merge 1 commit into
jayminwest:mainfrom
PatrickKalkman:test/preflight-platform

Conversation

@PatrickKalkman

Copy link
Copy Markdown

Summary

  • Three probeSandboxGit tests in src/sandbox/git-preflight.test.ts build their probe input without a platform, so they inherit the host's. They were written against the bwrap path and fail on a macOS host, where the probe takes the sandbox-exec branch instead: fails naming the resolved binary and the exec detail, assertSandboxGit throws the typed error carrying the binary path, and skips with ok when the platform sandbox wrapper is missing.
  • Pins platform: "linux" on those three inputs, the same way the neighbouring darwin cases already pin theirs. No behaviour change; the tests now assert what they were written to assert on every host.

Changes

  • src/sandbox/git-preflight.test.ts — three platform: "linux" lines.

Test plan

  • bun run check:all — 12/12 gates on a macOS host (previously check:coverage failed with the three tests above)
  • CI (Linux) unaffected: the host platform there was already linux

Why it matters

check:all is the pre-commit gate, so on a macOS contributor host these three failures block every commit in the repository until worked around. This is a prerequisite for contributing from macOS at all; I hit it while building the Azure DevOps tracker extension (#1173).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Rf5tbgdUDmHzKnNXpiJLvg

Three probeSandboxGit tests left `platform` unset and inherited
process.platform, so on darwin they took the sandbox-exec branch and
failed while CI on Linux passed. The sibling tests already pin the
platform; these now do the same.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rf5tbgdUDmHzKnNXpiJLvg
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T02:06:10.199661Z 6f9dc83 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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