Skip to content

Enable running unittests safely in parallel by giving them independent workspaces #1025

Open

Description

@katrinabrock

(likely low priority)

Is your feature request related to a problem? Please describe.
Currently unit tests take ~1hr to run. Running in parallel is risky because multiple scripts recompile the same binary with different params and thus could potentially conflict.

Additionally, this risks previous tests polluting future tests.

Describe the solution you'd like
First idea that comes to mind is giving each script a separate directory where its stan files and binaries live.

Activity

  1. WardBrian commented on Aug 22, 2024

    @WardBrian
    Member

    Just as a warning, the cmdstan folder itself can also have issues if you are trying to compile the same file (usually main.o and its variants) multiple times in parallel.

  2. added
    internal-codeTests, code cleanup, refactoring, or other things not user facing
    and removed
    featureNew feature or request
    on Oct 10, 2026
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

    internal-codeTests, code cleanup, refactoring, or other things not user facing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions