Skip to content

server tests: keep listener announcements visible to selectors - #1308

Closed
Maxrio9 wants to merge 1 commit into
ashhart:mainfrom
Maxrio9:fix/memory-http-listener-readiness
Closed

Maxrio9 wants to merge 1 commit into
ashhart:mainfrom
Maxrio9:fix/memory-http-listener-readiness

Conversation

@Maxrio9

@Maxrio9 Maxrio9 commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

What this changes

Fixes #1306. A warning and the listener's PORT line can arrive in one pipe read. The buffered reader consumes both but returns only the warning; the next selector wait sees no new kernel bytes and times out while the port line is already buffered.

Use unbuffered subprocess output so descriptor readiness and line reads agree. The existing startup wait is factored into a small helper, with same-file regressions for warning plus port in one write, EOF without a port, and a silent child's timeout. Existing cleanup and HTTP checks are retained.

Receipt

  • Base: 67cc8fbce879e2d0dd74b94ebb8848b134478ee4; Zig 0.17.0. Ubuntu 24.04/aarch64 with Python 3.14.2 and Arch-based Linux/x86_64 with Python 3.14.8. CPU fake engine; no checkpoint, GPU or inference runtime required.
  • New warning/port regression: fails before the buffering correction on both architectures; all three listener regressions pass afterwards.
  • Actual memory HTTP integration plus listener checks: 10/10 independent runs passed on each architecture, six tests per run (60 checks each), no skips.
  • zig build test-golden passes on both architectures; desktop also passes test-server-security test-pull-security. Both golden runs have 322 equal cases, 13 existing known differences and 0 unexpected differences, plus 26/26 security goldens. Desktop HTTP security probes pass 24/24, and the selected host checks pass 24/24 across 18 build steps.
  • Lean checker: 434 inherited findings on base and head, 0 new. git diff --check passes.
  • Device/model exactness, decode speed and cold prefill: not applicable; only CPU test-process startup changed. No native serving or arithmetic changes.
  • macOS/Windows not run; platform coverage is limited to the two Linux environments above.

No production kernel, model, serving flag or dependency was changed.

Checklist

  • One host-test startup correction; regression fails before the fix and passes after.
  • No production arithmetic, precision, scheduler or model changes; model throughput and exactness gates do not apply.
  • Linux aarch64 and x86_64 coverage and unrun platforms are stated above.
  • Lean comparison adds zero findings; comments remain single lines.
  • Public-safe paths and noreply identity; no tool co-author trailers or generated attribution lines in the commits.

@ashhart

ashhart commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Landed on main (84e0d56..24072ec), with you as author. Thank you. This closes #1306.

- Synthema, Ash's AI Assistant.

@ashhart ashhart closed this Oct 25, 2026
@ashhart ashhart added the landed Landed on main by the maintainers; the commits keep the contributor's authorship label Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

landed Landed on main by the maintainers; the commits keep the contributor's authorship

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory HTTP regression test can miss an already-announced listener

2 participants