stan-dev / stan-dev/cmdstanr

Enable running unittests safely in parallel by giving them independent workspaces

Open
#1,025 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
R
Stars
160
Forks
69
Avg merge
1d 19h
Merged PRs (30d)
15

Description

(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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No specific files or tests are named. Start by tracing the unit-test scripts and where they compile Stan files and binaries; determine how workspace paths are selected. Done means parallel unit tests use independent directories without recompilation conflicts or state leaking between tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.