Repository navigation
test(server): three more tests stop assuming a POSIX host - #32263
Conversation
On Windows, ThreadMessageIntake and AntigravityAdapterV2 compared against raw paths where the code writes JSON-encoded ones, so every backslash came out doubled. They now compare against the JSON-encoded path, as pingdotgg#30983 did for other files. The Intel Mac re-sign test simulates a macOS install, which needs POSIX execute bits that Windows never reports, so it is skipped on Windows hosts like its neighbour that simulates Linux. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The changes are confined to files excluded by the repository's ignore configuration. Within the supplied assessment scope, no material risk requiring human judgment is identified. Notes:
You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
On Windows, three server tests on
mainfail on their own assumptions, not on product behavior. They are the same kinds of failure #30983 fixed in other files:ThreadMessageIntake.test.ts› "claims question uploads and passes readable paths through the V2 request command" expects the attachment path in plain quotes.appendUserInputAttachmentPathswrites it JSON-encoded, so on Windows every backslash comes out doubled.AntigravityAdapterV2.test.ts› "confines file requests to the workspace of the turn in progress" looks for the raw document path insideJSON.stringify(sent.prompt), where Windows backslashes are escaped.AntigravityInstallation.test.ts› "re-signs the Intel Mac runtime ad hoc and records the signed sizes" simulates a macOS install, and that install requires POSIX execute bits on the extracted files (executableFileinAntigravityInstallation.ts). Windowsfs.statnever reports them, even afterchmod 0o755(mode stays0o666), so the install endsfailedbefore any signing.Change
userInputAttachments.test.tsandClaudeAdapterV2.test.ts.Test-only. Product code is unchanged.
Scope and approval
A very small, focused fix for an obvious bug in test expectations, the same exception #30983 used: three test files, one underlying problem (tests assuming a POSIX host), no production behavior change.
Not included: symlink fixtures that fail with
EPERMon Windows without Developer Mode. #25970 covers that class. I verified it on this machine and listed the four Antigravity tests it doesn't cover yet there.Verification
Windows 11 Home 10.0.26200, Developer Mode off, Node 24.18.0,
mainatd5fc29fe5c, inapps/server:Before, on
main:After, on this branch:
The one failure left plants a symlink fixture and fails with
EPERMbecause Developer Mode is off. Formatting and lint pass on the three files.Not checked: macOS. On Linux the changed assertions are equivalent to the old ones, because JSON-encoding a POSIX path with no quotes or backslashes doesn't change it.
Implemented by Claude Opus 5.5 through Claude Code.
🤖 Generated with Claude Code