Repository navigation
Conversation
Owner
|
Thanks for making the first failure visible, @anhnt256. Could you cover the remaining part of #722 before we merge?
If the Windows measurements need to land separately, please change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Change Scope
📝 What Does This PR Do?
Fixes #722
startLocalWorkerInternalretried a failed first Worker spawn without ever logging why the first attempt failed, so the Windows CI failure behind #717 left no line in the log. This change:Local worker first spawn failed after <N>ms (<reason>); retrying once.Local worker started in <N>ms.The logging is unconditional
console.warn/console.info(same pattern as the drain diagnostic inmanagedClaudeClearRuntime.ts), not the env-gated agent-launch diagnostics helper, so the line is present exactly in the no-diagnostics-flag situation that motivated #722. Retry behaviour and which error reaches the caller are unchanged.🏗️ Large Change Spec (Required if "Large Change" is checked)
N/A (Small Change)
🔗 Co-change partners left untouched
src/app/worker/index.ts(withsrc/app/main/worker/localWorkerManager.ts, 7/9): the worker entry point only re-exports the spawn wiring; this change adds logging insidelocalWorkerManager.tsand does not alter the spawn contract, so no change is needed there.✅ Delivery & Compliance Checklist
pnpm verify:quick/pnpm pre-commitis green; any additional focused tests are reported above.Verification (local, targeted): New
tests/unit/app/localWorkerManager.firstSpawnFailure.spec.ts(3 tests): first failure is logged with reason + elapsed ms and the retry still runs; first failure is still logged when the retry also fails, and the retry's error is the one thrown; a successful first start logs its elapsed time. The new tests fail at base (3 failed) and pass with the fix (3 passed). Neighbouring worker-manager specs: 7 files, 33 passed; real-spawn integration speclocalWorkerManager.stdout.spec.tspasses.tsc -b tsconfig.node.json tsconfig.web.json --noEmit,oxlint --max-warnings=0, andprettier --checkon the changed files all pass.pnpm verify:quickwas not run locally, so please rely on PR CI for the full gate.