Skip to content

Require the server case to validate its own generated process #580

Closed

Description

@LunaStev

Reproduced false pass

run_server_test launches the compiler, waits one second, connects to fixed port 8080, and accepts a fixed response substring. It never checks the launched compiler/process status or proves the response belongs to that test. This path is used by tests/cases/linux/amd64/test5.wave.

I called the actual helper with [python, "-c", "import sys; sys.exit(7)"] and an injected socket returning the expected welcome text. The helper returns (1, None) and prints PASS (server responded) even though the launched command fails. Socket injection makes this reproduction deterministic without taking over a local port.

A real pre-existing listener on 8080 can provide the same false success. Conversely, the fixed one-second wait includes compilation and can report connection refusal before a correct generated server is ready.

Acceptance

  • A compiler or launched-server failure cannot be accepted because another listener responds.
  • Use bounded readiness tied to this test's process and endpoint, keeping compilation and startup failure evidence.
  • Validate enough of the response/protocol to identify the intended test instance.
  • Retain process-tree cleanup and legitimate environment-based socket skips.
  • Test failed compiler plus unrelated response, delayed startup, and a healthy server.

This is a server-test validity/readiness defect found while auditing the CI harness. #507 concerns descendant cleanup, which does not establish response ownership; #455 concerns unavailable local sockets.

Activity

  1. added
    bug
    help wanted
    needs testing
    ci
    on Sep 11, 2026
  2. self-assigned this
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcihelp wantedneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions