Skip to content

test: repair the dev lane=all Windows failures (O7 paths, Messages overflow quarantine) - #8791

Merged
lidge-jun merged 2 commits into
devfrom
fix/windows-o7-store-paths
Nov 16, 2026
Merged

lidge-jun merged 2 commits into
devfrom
fix/windows-o7-store-paths

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

The batched lane=all on dev at b378a43 (run https://github.com/lidge-jun/opencodex/actions/runs/43790630995) failed windows 8/14 on seven O7 cases in tests/clients/client-disconnect-desktop-refusals.test.ts, a file #8530 added (merged as 7b4b395; validated on macOS only). The refusal text is right; the test's expected paths were not. The child scenario computed them with fs.realpathSync.native(...) plus a literal "/desktop-remote". On Windows realpathSync.native expands the runner's 8.3 short name (RUNNER~1 → runneradmin) and / is not the separator, while the store reports paths from storePaths() (canonicalDirectory: realpathSync + path.join), e.g. C:\Users\RUNNER~1\…\home\desktop-remote.

The scenario now reads root, state, library and the profile path from the same storePaths() the refusal uses, so the expectation matches the code on every platform. Assertions are unchanged in strength (each refusal must still contain the exact path, the cause, the fix and the trailing code).

Verification

  • bun test tests/clients/client-disconnect-desktop-refusals.test.ts (macOS): 9 pass / 0 fail.
  • Windows: validated on desktop-c795oh4 (results posted on this PR before merge); the next batched lane=all is the hosted Windows evidence.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed (test only).
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults (test only).

Summary by CodeRabbit

  • Tests
    • Updated desktop disconnect-refusal checks to use resolved store paths, including when verifying owner-mismatch refusals. This makes the checks less dependent on manually constructed paths and platform-specific path separators.

Second dev repair: restore the Messages overflow hosted-Windows quarantine

The same lane=all (run 43790630995) also failed windows 3/14 with exit 124: "Shard 3/14 batch 6: every file passed alone, so the timeout lives in multi-file process state". Batch 6 held messages-overflow-native.test.ts and messages-overflow-verdicts.test.ts, the Messages overflow slow-lane slices whose #8262 quarantine #8769 lifted; in the attribution sweep claude-uncoded-context-overflow.test.ts alone took 202 s and an overflow file 67 s, so six files in one process overran the 480 s limit. #8769's description named this exit condition ("if they go red there, they go back under quarantine"), so tests/helpers/messages-overflow-assertions.ts restores exactly the test.skipIf(hostedWindowsQuarantine && WINDOWS_SLOW_LANES.has(lane)) it removed. codex-cli-windows-plan (also unquarantined by #8769) passed in that run and stays unquarantined. No earlier dev lane=all since 2026-11-09 shows this timeout.

Not fixed here: windows 11/14 pricing cache

tests/server/model-costs-pricing-cache.test.ts:140 ("unchanged" vs "rebuild"; the ledger's ctime moved) is pre-existing: the same test failed on Windows in five dev lane=all runs on 2026-11-09 (e76511d, 1d16d79, c81be32, a144140, 4b38e9a) and then passed in every green run until b378a43. No merge in this batch touched it. It is being characterised on desktop-c795oh4 (five repeated runs) for a separate fix.

Verification for the quarantine restore: bun test tests/claude-integration/messages-overflow-verdicts.test.ts (macOS, with and without GITHUB_ACTIONS=true): 18 pass / 0 fail — the skip applies only on hosted Windows.

@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 16, 2026 02:58
@lidge-jun lidge-jun added the bug Something isn't working label Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T03:00:11.414786Z c68ba55 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.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes

The desktop disconnect refusal test fixture now returns resolved store paths, including state. The owner-mismatch assertion uses that state path.

Disconnect refusal test paths

Layer / File(s) Summary
Use resolved store paths
tests/clients/client-disconnect-desktop-refusals.test.ts
At lines 22 and 135–141, the fixture adds and returns the resolved state path from storePaths(). At line 175, the owner-mismatch assertion checks against out.state.

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

Change: Other

Merge Risk: Minimal · up to c68ba

This change only updates test path expectations for the Windows desktop disconnect refusals. It does not alter production behavior, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
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.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the test repair for the Windows lane=all failures, which matches the changeset that rewrites the disconnect refusal test to use storePaths() and resolved state paths. The title mention…
Full details: Title check

Explanation

The title names the test repair for the Windows lane=all failures, which matches the changeset that rewrites the disconnect refusal test to use storePaths() and resolved state paths. The title mentions 'Messages overflow quarantine', which the provided summary and objectives do not describe, so that part of the title is not supported by the visible changes. The title is partially related: the core subject (test repair for Windows path failures) matches the change.

Finishing Touches

Generate unit tests (beta)

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e875721 and c68ba55.

Files selected for processing: 1

  • tests/clients/client-disconnect-desktop-refusals.test.ts

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

@lidge-jun

Copy link
Copy Markdown
Owner Author

Windows evidence (desktop-c795oh4, Windows 11, bun 1.3.14, HEAD c68ba55, GITHUB_ACTIONS unset):

  • bun test tests/clients/client-disconnect-desktop-refusals.test.ts on this branch: 9 pass / 0 fail, exit 0.
  • Red check with dev's version of the file: exit 1, 6 pass / 3 fail (store-invalid, owner-mismatch, profile-edited), each "Expected" a /-joined path vs a received \-joined path. (Hosted CI failed 7 cases because the runner's temp path also uses the 8.3 short name RUNNER~1.) File restored, tree clean.

@lidge-jun lidge-jun changed the title test(link): fix the O7 Windows path expectations that broke the dev lane=all test: repair the dev lane=all Windows failures (O7 paths, Messages overflow quarantine) Nov 16, 2026
@lidge-jun

Copy link
Copy Markdown
Owner Author

Windows host results (desktop-c795oh4, Windows 11, bun 1.3.14, c68ba55): O7 file 9/0 with this fix, 6 pass / 3 fail with dev's version (Expected …\\home/desktop-remote, Received …\\home\\desktop-remote); cli-account.test.ts 153/0 in 1.9 s. Separately, model-costs-pricing-cache.test.ts fails 5/5 on that host at stage 0 (only revision.ctimeMs moves), so it is a deterministic Windows bug that hosted runners only sometimes hit — it gets its own fix PR rather than being treated as a flake.

@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration (merge manager): dev repair for the batched lane=all run https://github.com/lidge-jun/opencodex/actions/runs/43790630995 at b378a43.

@lidge-jun
lidge-jun merged commit 595de1e into dev Nov 16, 2026
28 of 31 checks passed
@lidge-jun
lidge-jun deleted the fix/windows-o7-store-paths branch November 16, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant