Skip to content

[CI][Test-infra] dev-up test stub server can outlive TERM on Linux/macOS: server.close never completes with open connections #2135

Description

@Chris0Jeky

Follow-up from PR #2112's EBUSY teardown fix (deliberately left out of that PR because it changes behavior only on lanes that are currently green and could not be verified from the Windows box).

stopWithServer in scripts/ci/dev-up.test.mjs's helperSource calls server.close(cb), whose callback never fires while a connection is open. On Windows this is inert (the SIGTERM handler does not run — measured under Git Bash in the #2112 investigation), but on the Linux/macOS lanes a stub can outlive TERM indefinitely. Fix direction: server.closeAllConnections() before/with close.

Acceptance: stub exits promptly on TERM on all three platforms; the dev-up test file stays green on every lane.

Refs #2111 #2112

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority IVLater maturity/deepening; revisited at horizon planning.ciCI/CD pipeline, workflow, and build infrastructure changes.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions