Skip to content

test(server): three more tests stop assuming a POSIX host - #32263

Merged
Yash-Singh1 merged 1 commit into
pingdotgg:mainfrom
MikaMcFlurry:fix/windows-test-assertions
Nov 7, 2026
Merged

Yash-Singh1 merged 1 commit into
pingdotgg:mainfrom
MikaMcFlurry:fix/windows-test-assertions

Conversation

@MikaMcFlurry

Copy link
Copy Markdown
Contributor

Problem

On Windows, three server tests on main fail 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. appendUserInputAttachmentPaths writes 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 inside JSON.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 (executableFile in AntigravityInstallation.ts). Windows fs.stat never reports them, even after chmod 0o755 (mode stays 0o666), so the install ends failed before any signing.

Change

  • The first two tests compare against the JSON-encoded path, as test(server): correct Windows path and settings assertions #30983 did for userInputAttachments.test.ts and ClaudeAdapterV2.test.ts.
  • The macOS re-sign test is skipped on Windows hosts, with a comment, like the neighboring "honors explicit paths…" test, which also simulates another OS. It still runs on macOS and Linux.

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 EPERM on 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, main at d5fc29fe5c, in apps/server:

vp test run src/orchestration-v2/ThreadMessageIntake.test.ts src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts src/provider/AntigravityInstallation.test.ts

Before, on main:

 ❯ ThreadMessageIntake.test.ts (6 tests | 1 failed)
 ❯ AntigravityAdapterV2.test.ts (14 tests | 2 failed)
     × serves confined reads and leaves edits to the agent's diff tools   (symlink EPERM, see below)
     × confines file requests to the workspace of the turn in progress
 ❯ AntigravityInstallation.test.ts (28 tests | 1 failed | 1 skipped)
     × re-signs the Intel Mac runtime ad hoc and records the signed sizes
      Tests  4 failed | 43 passed | 1 skipped (48)

After, on this branch:

 ❯ AntigravityAdapterV2.test.ts (14 tests | 1 failed)
     × serves confined reads and leaves edits to the agent's diff tools   (symlink EPERM, see below)
      Tests  1 failed | 45 passed | 2 skipped (48)

The one failure left plants a symlink fixture and fails with EPERM because 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

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>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 7, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 1fdc13f

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:

  • No code objects were reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes update two orchestration test expectations for JSON-serialized paths and skip the Intel Mac re-signing test on Windows hosts.

Changes: Server Test Portability

Layer / File(s) Summary
Serialized path assertions
apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts, apps/server/src/orchestration-v2/ThreadMessageIntake.test.ts
The tests check paths using JSON-serialized representations.
Windows signing test skip
apps/server/src/provider/AntigravityInstallation.test.ts
The Intel Mac re-signing test skips on Windows; its mocked signing behavior and success assertions remain.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

  • pingdotgg/t3code#30950 — The issue describes Windows test failures from expectations that do not account for JSON-quoted attachment paths.
  • pingdotgg/t3code#19681 — The issue describes Windows symlink fixture failures, which this PR does not address.

Possibly related PRs

  • pingdotgg/t3code#28629 — This PR changes attachment-path resolution and an assertion for the resolved path in the Antigravity prompt.

Suggested reviewers: t3dotgg

Merge Risk: Minimal · up to 1fdc1

The changes adjust test expectations and skip a platform-specific test on Windows. No merge-blocking risk is established.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly describes the three test changes that address POSIX host assumptions.
Description check Passed The description covers the problem, changes, scope, and verification. It also identifies the remaining Windows failure and the untested macOS environment.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 240446e and 1fdc13f.

Files selected for processing: 3

  • apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts
  • apps/server/src/orchestration-v2/ThreadMessageIntake.test.ts
  • apps/server/src/provider/AntigravityInstallation.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants