# test\(server\): run the Antigravity install harness for the host platform · PR \#9574 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/9574)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: windows-tests/antigravity-host

Target branch: windows-tests/short-tempdir

Head commit: 7b046a0dfa846a1c5519b00c38f1d9b7935db695

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/9574)

[Commits](https://git.cafe/pingdotgg/t3code/pull/9574/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/9574/diffs?format=markdown)

## Description

---

The harness defaulted every case to a linux platform mock while extracting
onto the real filesystem, so on Windows the install always ended 'incomplete':
the runtime checks POSIX exec bits unless the platform is win32, and NTFS
never sets them. Default the harness platform to the host and let the
release fixture (archive, executable and harness names) follow. The install
mechanics under test are platform-neutral; the two tests that pin a
platform explicitly still do.

Part of the Windows test-suite stack rooted at [#9564](https://github.com/pingdotgg/t3code/pull/9564); the manual Windows lane comes from [#9538](https://github.com/pingdotgg/t3code/pull/9538).

Model: Claude Fable 5 in Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Test-only fixture and default-platform changes; no production installation logic is modified.
> 
> **Overview**
> Fixes Antigravity installation tests on Windows by **defaulting the test harness to the host OS** (`win32` vs `linux`) instead of always mocking Linux while writing to the real filesystem.
> 
> The suite now picks the **Windows or Linux ZIP fixture**, and derives **`executableName` / `harnessName`** (`.exe` vs `.par`) for archives, `releaseAsset` defaults, `makeHarness`, and filesystem mocks (ENOSPC/cancel hooks). Callers that omit `platform` get host-aligned fixtures rather than Linux-only names.
> 
> Tests that **require POSIX exec bits and `:` PATH splitting** stay **`skipIf` on win32**; tests that explicitly set `platform: "win32"` (e.g. Windows rename behavior) are unchanged.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 7b046a0dfa846a1c5519b00c38f1d9b7935db695. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

<!-- Macroscope's pull request summary starts here -->
<!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. -->
<!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. -->
> [!NOTE]
> ### Run Antigravity install test harness for the host platform
> - Changes the Antigravity installation test fixtures from a hard-coded Linux setup to a host-derived platform (win32 on Windows, linux otherwise).
> - Updates archive selection, executable names, harness names, and release-asset defaults to follow the host platform unless options override them.
> - Path-resolution tests remain skipped on Windows because they rely on POSIX executable bits and Linux-style PATH handling.
> - Behavioral Change: tests now intercept and create Windows-named server files when running on win32; callers of `makeAntigravityInstallation` without an explicit platform get host-platform fixtures instead of Linux.
>
> <!-- Macroscope's review summary starts here -->
>
> <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 7b046a0.</sup>
> <!-- Macroscope's review summary ends here -->
>
<!-- Macroscope's pull request summary ends here -->

