Skip to content

Flaky: OpenStudioCLI.test_measure_manager and its Classic variant race for the same port #5701

Open

Description

@anchapin

OpenStudioCLI.test_measure_manager and OpenStudioCLI.Classic.test_measure_manager (src/cli/CMakeLists.txt) each start a measure-manager server. get_open_port_for_serving() in src/cli/test/test_measure_manager.py checks that a port is free, closes the socket, then launches the server. When CTest runs both tests in parallel, both can pick the same port, and one test then talks to the other's server.

Seen in Full Build run 42922295432 (Ubuntu 24.04 x64, PR #5700): both tests failed, the log shows port=8090 is already in use, and the assertions got the other CLI's responses (a 200 where the C++ CLI returns 400, and a different error body).

Fix: give both tests a shared RESOURCE_LOCK so CTest never runs them at the same time, the same way the file already locks the compact_osw tests.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions