Repository navigation
test(http): stop the allow_html test waiting out the https retry - #14285
Conversation
The second half of test_text_request_allow_html_returns_the_page sent the https retry's TLS hello to a canned server that drains until a blank line, so it hung until the 2s client timeout and tripped nextest's 1s ceiling. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Entire-Checkpoint: 01M4KYPBEDPXES6Z76ADJ5B135
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The test now closes the HTTPS retry promptly after serving the expected HTML response, avoiding the timeout pattern. No actionable merge-blocking risk is evident. Pre-merge checks |
|
Instruction counts
No instruction-count regression above 1%. Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run. Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.
|
<!-- entire-trail-link-start --> https://entire.io/gh/jdx/mise/trails/628 <!-- entire-trail-link-end --> ### 🚀 Features - **(runtime-symlinks)** add a global link to the version global config selects by @jdx in [#14271](#14271) ### 🐛 Bug Fixes - **(history)** skip rewriting unchanged checkpoint metadata on index rebuild by @jdx in [#14249](#14249) - **(http)** retry when a response body drops mid-stream by @JamBalaya56562 in [#14253](#14253) - **(lock)** decode percent-encoded release tags when checking a locked URL by @jdx in [#14252](#14252) - **(schema)** accept outputs = { auto = false } on tasks by @JamBalaya56562 in [#14265](#14265) ### 📚 Documentation - **(dotfiles)** add a recommended setup and a readable modes-and-keys table by @jdx in [#14267](#14267) ### 🧪 Testing - **(http)** stop the allow_html test waiting out the https retry by @jdx in [#14285](#14285) ### 📦 Registry - test ansible, azure and dvc against python 3.14 by @jdx in [#14268](#14268) ## 📦 Aqua Registry Updates ### New Packages (2) - [`runxhq/runx`](https://github.com/runxhq/runx) - [`takumin/passt-bin`](https://github.com/takumin/passt-bin)
https://entire.io/gh/jdx/mise/trails/637
test_text_request_allow_html_returns_the_page(added in #14253) times out on every run, which failsunit-macoson main (run 38058688044) and reproduces locally on Linux.Its second half checks that an HTML page is still rejected without
allow_html(). For anhttp://URL,TextRequest::sendretries ashttps://first. That retry sends a TLS hello to the plain-HTTP canned server, which drains until\r\n\r\nand so blocks until the 2s client timeout. nextest's CI ceiling is 1s, so both attempts are killed.The test now uses a small inline listener for that half: it answers the first connection with the HTML and drops the second, so the https retry fails immediately. The test goes from timing out to 0.03s, and all 34
http::tests::retrytests pass. No production code changes.AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: 2.1.293.
🤖 Generated with Claude Code
Note
Low Risk
Test-only change in retry.rs; no runtime HTTP behavior is modified.
Overview
Fixes a flaky/timeout failure in
test_text_request_allow_html_returns_the_pageon the assertion that HTML is rejected withoutallow_html().The second request still uses an
http://URL (so the client’s https retry runs), but the test no longer usesspawn_canned_serverwith two canned responses. It binds a one-offTcpListenerthat serves HTML on the first connection and leaves the second connection hanging without blocking until the client timeout—matching how a TLS hello on plain HTTP used to stall the canned server under nextest’s short CI deadline.Comments in the test document that behavior. No production HTTP code changes.
Reviewed by Cursor Bugbot for commit a59cf87. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit