Repository navigation
fix: log fetch timeout aborts - #73692
Conversation
Greptile SummaryThis PR adds structured logging to Confidence Score: 5/5Safe to merge — no correctness, security, or behavioral regressions found. The abort-guard check (controller.signal.aborted) correctly prevents double-logging when a parent signal fires before the timer. URL sanitization logic is sound and well-tested. The extra Math.max(1, Math.floor(...)) normalization in buildTimeoutAbortSignal is consistent with the existing Math.max(1, timeoutMs) in fetchWithTimeout. setTimeout varargs forwarding is used correctly. Tests cover both key paths. No P0/P1 findings. No files require special attention. Reviews (1): Last reviewed commit: "fix: log fetch timeout aborts" | Re-trigger Greptile |
|
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Keep open. This PR is maintainer-authored and protected by the Best possible solution: Keep this PR open for maintainer review. If maintainers accept the logging and redaction approach, land it after the targeted fetch-timeout regression test and the appropriate changed gate pass; otherwise request focused changes around timeout metadata or URL sanitization. What I checked:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against cd2e13be8ad6. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33e8c2ab9f
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9971874 to
d915fa2
Compare
d915fa2 to
480c7cc
Compare
* fix: log fetch timeout aborts * fix: redact relative timeout urls
* fix: log fetch timeout aborts * fix: redact relative timeout urls
* fix: log fetch timeout aborts * fix: redact relative timeout urls
* fix: log fetch timeout aborts * fix: redact relative timeout urls
Context
buildTimeoutAbortSignalaborts due to its own timeout.fetchWithTimeoutandfetchWithSsrFGuard.Testing
pnpm exec vitest run --config test/vitest/vitest.config.ts src/utils/fetch-timeout.test.tspnpm exec vitest run --config test/vitest/vitest.agents-tools.config.ts src/utils/fetch-timeout.test.ts(No test files found; test is outside that config include.)