You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Require the server case to validate its own generated process #580
bugA problem that causes incorrect behavior or crashes.ciGitHub CI or CIhelp wantedThe issue requires extra attention or help from others.needs testingIssues that require additional testing or verification.
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.
bugA problem that causes incorrect behavior or crashes.ciGitHub CI or CIhelp wantedThe issue requires extra attention or help from others.needs testingIssues that require additional testing or verification.
Activity