Skip to content

Add .wait_ready to parser for clean server disconnects#3690

Merged
lovelydinosaur merged 1 commit into
v1from
server-clean-disconnects
Oct 13, 2025
Merged

Add .wait_ready to parser for clean server disconnects#3690
lovelydinosaur merged 1 commit into
v1from
server-clean-disconnects

Conversation

@lovelydinosaur
Copy link
Copy Markdown
Contributor

Add .wait_ready() to HTTPParser...

We need this in order to differentiate between clean disconnects at the start of a new request/response cycle, rather than a ProtocolError while calling recv_method_line().

@lovelydinosaur lovelydinosaur merged commit ae25e86 into v1 Oct 13, 2025
5 checks passed
@lovelydinosaur lovelydinosaur deleted the server-clean-disconnects branch October 13, 2025 14:00
LittleChiu added a commit to LittleChiu/ai-pr-reviewer that referenced this pull request May 29, 2026
跑了三档复杂度的真实 PR,作为 demo 视频素材与质量证据:

| 编号 | PR | 文件 | 用时 | LLM 调用 | tokens | risks/sug |
|---|---|--:|--:|--:|--:|--:|
| A | fastapi/fastapi#15603 (依赖升级) | 6 | 11s | 1 | 1.5K | 0/0 |
| B | encode/httpx#3690 (新 API) | 4 | 245s | 3 | 7.8K | 6/4 |
| C | encode/httpx#3670 (重构) | 5 | 78s | 3 | 11.5K | 7/4 |

亮点:
- A 演示 triage 阶段对 lockfile/依赖性变更的'整体跳过',
  仅 1 次 LLM 调用、~1.5K tokens 完成
- C 抓到的 HIGH/bug 是真问题:对普通文件对象调 'await self._fin.close()'
  会抛 TypeError,带 high confidence 与具体修改方向
- 每条 risk 都附 file/line/severity/category/confidence,可直接采纳

每份样例同时存原始 JSON,评委可复现(同 commit SHA + 同 prompt + temp 0.2)。
LittleChiu added a commit to LittleChiu/ai-pr-reviewer that referenced this pull request May 29, 2026
跑了三档复杂度的真实 PR,作为 demo 视频素材与质量证据:

| 编号 | PR | 文件 | 用时 | LLM 调用 | tokens | risks/sug |
|---|---|--:|--:|--:|--:|--:|
| A | fastapi/fastapi#15603 (依赖升级) | 6 | 11s | 1 | 1.5K | 0/0 |
| B | encode/httpx#3690 (新 API) | 4 | 245s | 3 | 7.8K | 6/4 |
| C | encode/httpx#3670 (重构) | 5 | 78s | 3 | 11.5K | 7/4 |

亮点:
- A 演示 triage 阶段对 lockfile/依赖性变更的'整体跳过',
  仅 1 次 LLM 调用、~1.5K tokens 完成
- C 抓到的 HIGH/bug 是真问题:对普通文件对象调 'await self._fin.close()'
  会抛 TypeError,带 high confidence 与具体修改方向
- 每条 risk 都附 file/line/severity/category/confidence,可直接采纳

每份样例同时存原始 JSON,评委可复现(同 commit SHA + 同 prompt + temp 0.2)。
LittleChiu added a commit to LittleChiu/ai-pr-reviewer that referenced this pull request May 30, 2026
跑了三档复杂度的真实 PR,作为 demo 视频素材与质量证据:

| 编号 | PR | 文件 | 用时 | LLM 调用 | tokens | risks/sug |
|---|---|--:|--:|--:|--:|--:|
| A | fastapi/fastapi#15603 (依赖升级) | 6 | 11s | 1 | 1.5K | 0/0 |
| B | encode/httpx#3690 (新 API) | 4 | 245s | 3 | 7.8K | 6/4 |
| C | encode/httpx#3670 (重构) | 5 | 78s | 3 | 11.5K | 7/4 |

亮点:
- A 演示 triage 阶段对 lockfile/依赖性变更的'整体跳过',
  仅 1 次 LLM 调用、~1.5K tokens 完成
- C 抓到的 HIGH/bug 是真问题:对普通文件对象调 'await self._fin.close()'
  会抛 TypeError,带 high confidence 与具体修改方向
- 每条 risk 都附 file/line/severity/category/confidence,可直接采纳

每份样例同时存原始 JSON,评委可复现(同 commit SHA + 同 prompt + temp 0.2)。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant