test(devin-cli): anchor the empty-data-dir fallback at the host home - #4384
test(devin-cli): anchor the empty-data-dir fallback at the host home#4384luvs01 wants to merge 1 commit into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
리뷰 · 우선순위 54 / 80설명 이 PR은 Windows에서 깨지는 테스트 픽스처만 고칩니다. 프로덕션 코드는 건드리지 않고 무엇이 깨졌냐면, Devin 경로 기대값이 리눅스식 슬래시 문자열( 같은 날 열린 라인 - 이게 무슨 문제다
본문 Verification - 로컬에서 Devin/pnpm 55 passed를 적었지만 hosted Cross-platform CI는 pending입니다. draft 체크리스트도 아직 ready가 아닙니다. 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
75c7c16 to
4283b95
Compare
|
✅ Deterministic PR hygiene checks passed. |
|
Exact-head CI for 4283b95 completed with failure: https://github.com/luvs01/opencodex/actions/runs/34681186783 The three Devin fixture failures are absent from this run; both retained files also passed locally (29 tests, 95 assertions). Remaining recurring assertion groups correspond to Cline inventories (#4386), injection/journal fixtures (#4380), and pnpm shim fixtures (#4379). One additional failure is explicitly unresolved: cli-start-journal-order.test.ts, |
⏳ DRAFT
What to do
Review readiness checklist
2/4 boxes ticked. This PR stays in draft until every box above is ticked. |
4283b95 to
3314465
Compare
The fallback resolves against the real home directory, so asserting a leading slash only held on a POSIX host and failed the Windows lane. Anchor both branches at homedir(), which is what proves the path is not cwd-relative on either host.
3314465 to
cba37f3
Compare
|
This PR was rebuilt on
What remains is one real Windows failure on current This is worth knowing beyond this PR: the same failure is currently red on the Windows lane of every head rebased onto Verification on this head: reproduced 17 pass / 1 fail on |
Summary
The Windows lane fails
tests/providers/devin-cli-login.test.tson currentdev. The empty-XDG_DATA_HOMEcase added with #4418 asserts that the resolved credential path starts with/, but the fallback deliberately resolves against the real home directory, andhomedir()returnsC:\Users\<name>regardless of which platform the resolver is asked about. The assertion therefore only holds when the host is POSIX.Anchor both branches at
homedir()instead. That is the property the test exists to prove — the path is not cwd-relative — and it holds on either host. Thewin32branch gains the same anchor assertion, which it previously left implicit. Production behavior is unchanged.Scope change from the original PR
This PR originally carried the Devin path-separator fixture repair plus a pnpm shim fixture repair. Both are now obsolete:
293c37d68(fix(devin-cli): resolve credential paths for the selected platform), which made the POSIX expectations correct.tests/providers/devin-cli-adapter.test.tsno longer exists;213065e30retired the ACP adapter.Rather than close this and open a third PR for the same file, I rebuilt the branch on
dev@dcd13b435with only the one remaining Windows failure fixed. The head is a single commit; the previous two-commit series is gone.Verification
dev: 17 pass, 1 fail —an empty XDG_DATA_HOME or APPDATA does not become a cwd-relative pathattests/providers/devin-cli-login.test.ts:155, expectedtrue, receivedfalse.bun test ./tests/providers/devin-cli-login.test.ts— 18 pass, 0 fail, 34 assertions, Bun 1.4.2 on Windows.bun run typecheck,bun run structure:check,bun run privacy:scan,git diff --check— all passed.homedir()is/home/<name>, so the anchor assertion holds for both the POSIX and thewin32branch.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Rebase onto dev@dcd13b435 (2026-09-13)
Current head
cba37f348ef4d85295bd2f4dbdcc96e5d7b4eda7. The shared baseline failures that kept every authored head red have now landed ondev: Cline inventories via #4390, pnpm shim fixtures via #4379, and the native restore fixtures via #4380. This head is rebased past all three, so its cross-platform result is finally about this change alone.Fresh checks on this exact head:
bun run typecheck— passed.bun run structure:check— passed.bun run privacy:scan— passed.bun test --isolate --timeout 60000 ./tests/providers/devin-cli-login.test.ts— passed.A full cross-platform matrix is running for this head at run 34724811731. The readiness boxes below are ticked only against its actual conclusion, so they are updated after it finishes rather than from these focused passes.