Repository navigation
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 |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
리뷰 · 우선순위 63 / 80이 PR은 한국어·일본어 Windows에서 서비스 래퍼가 Bun을 켜기 전에 죽어 버리는 버그를 고칩니다. 원인은 간단합니다. 라인 - 메인테이너의 판단이 필요한 지점 draft 체크리스트와 남은 CI를 이 상태로 받아들일지, 아니면 ready 표시와 shard 정리를 더 기다릴지. 또 이미 서비스가 죽어 있는 ko-KR/ja-JP 사용자에게 repair 안내를 릴리스 노트에 얼마나 강하게 넣을지. 너의 추천 방향은 머지해도 될 만큼 분명합니다. 원인·고침·Windows 재현 테스트가 한 줄로 맞춰 있고 #6290/#5093와 직접 연결됩니다. 다만 draft·체크리스트·CI 정리는 작성자 쪽에서 끝낸 뒤 ready로 올린 다음에 머지하는 쪽이 안전합니다. types/config 분할이나 preview deploy 이야기는 이 PR과 무관합니다. 무효·중복으로 닫을 이유는 없습니다. 이 댓글은 grok-bot이 작성했습니다 |
|
Thanks @hulkbig. The root cause and the fix are right, and the real |
…#6298) (#6391) fix(service): tolerate locale dates in Windows service wrappers (carry #6298) (#6391) On locales whose short date contains parentheses (ko-KR "2026-09-30(수)", ja-JP "2026/09/19 (土)"), cmd.exe expands %DATE% while parsing a parenthesized block, so the ")" closed the block early and the generated service wrapper aborted before it launched Bun, on every start. The timestamped log lines now sit at top-level labels (:bun_missing, :cli_missing, :backup_restored), outside any block. Exit code 3, the stay-out/restart contract, transactional-backup recovery and disabled delayed expansion are unchanged. Run "ocx service repair" after upgrading to regenerate an installed wrapper. Closes #6290; same defect as #5093. Carried from #6298. Co-authored-by: Hulk <happyhls@gmail.com>
Summary
Closes #6290. Also addresses the locale-date failure described in #5093.
cmd.exeregression cases covering ordinary, Korean and Japanese date values across healthy startup, missing Bun/CLI, successful recovery, unusable backup, and standalone shapes. Update the lifecycle repair guidance and wrapper contract notes.The test harness retains the generated loop, prelaunch guards and recovery code, supplies disposable paths, and uses a fake batch child with CALL so it returns like the real executable. It does not install or control an actual service. This proves the tested control flow; it is not an exhaustive Windows path-compatibility claim.
Verification
Based on current
dev6538001e2fdf54ef657f5057e8c3cbd3249d8e59. Current head:cb230f19232d464e8f35812d112e9388d4aa029a. Remote blob hashes for all four changed files match the locally checked candidate. Independent source review found no blocking issue.Actual Windows before/after evidence, using the repository's unchanged manual
ci.ymllaneallon the contributor fork, Bun 1.4.0:7d8a6745d5f6e3abc6308c9ded9adc558461ae82: all 8 ordinary-date controls passed; all 16 parenthesized-date cases failed with exit 255 instead of expected 0/3. Windows shard 7, batch 37/37provider outbound GET transport > proxy mode reaches one real proxy across outbound, connection-test, and model-discovery pathshit its 15-second timeout. Its fixture uses local loopback HTTP servers and synthetic destinations; the identical case passed in the baseline run in 1.9 seconds. This is an unrelated intermittent fixture timeout, not an established regression from this change. The baseline-only Cursor-auth failure passed in the fixed run. All other requested producer jobs, including both macOS shards, macOS control and desktop builds, passed. Aggregatecicorrectly remains failed. No jobs were retried. Fixed full runLocal Linux checks:
bun run scripts/test.ts tests/windows/windows-service-wrappers.test.ts tests/service/standalone-service.test.ts tests/service/service-multishell-path.test.ts tests/service/service.test.ts: 234 passed, 25 Windows-only skipped, 0 failedbun test tests/ci-workflows/file-size-ratchet.test.ts tests/test-layout.test.ts: 11 passedbun run typecheck,bun run structure:check,bun run privacy:scan,git diff --check: passedcd docs-site && ASTRO_TELEMETRY_DISABLED=1 bun run build: passed, 545 pages and 74,725 internal links checkedChecklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.