Skip to content

Drop pre-2.37 CmdStan support for v1.0 - #1290

Merged
jgabry merged 2 commits into
v1.0from
cmdstan-2.37
Sep 25, 2026
Merged

jgabry merged 2 commits into
v1.0from
cmdstan-2.37

Conversation

@jgabry

@jgabry jgabry commented Sep 25, 2026

Copy link
Copy Markdown
Member

Submission Checklist

  • Run unit tests
  • Declare copyright holder and agree to license (see below)

Summary

Why 2.37:

  • CmdStan 2.36 runs HMC for a model with no parameters instead of switching to fixed_param on its own. That means we don't need the version gate in $sample() that required fixed_param = TRUE below 2.36, the roxygen sentence about it, and the two test helpers that existed only to fake a 2.35 version for that gate's test. Everything else about fixed_param stays, since it's still the way to hold parameters fixed or to run a model with no parameters without HMC.
  • CmdStan 2.37 is the first that takes one output file per chain on a single num_chains run, which [FR] Use new num_chains arg in cmdstan for hmc, fixed params, and generated quantities #534 needs, and we expect to do that soon after v1.0 if not in it.

Part of #1258.

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Jonah Gabry

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

v1.0 raised the floor to 2.35, which never shipped, so this moves the
same floor to 2.37 and edits the same NEWS bullet.

CmdStan 2.36 runs HMC for a model with no parameters instead of
switching to fixed_param on its own, so the CSV always has the sampler
diagnostics we read. That retires the version gate in $sample() that
demanded fixed_param = TRUE below 2.36, the roxygen sentence about it,
and the two test helpers whose only job was faking a 2.35 version for
that gate's test.

2.37 is the first CmdStan that takes one output file per chain on a
single num_chains run, which #534 will need, and we expect to do that
soon after v1.0 if not in it.

man/model-method-format.Rd picks up the bare "stanc" from #1289, which
edited the roxygen without regenerating this file.

Part of #1258.
Three tests in test-install.R request CmdStan 2.35.0, 2.35.5 or 2.36.0
to exercise the "installation already exists" warning, the failed
download errors and the make/local prompt. Now that the floor is
2.37.0, the version check rejects each request before the code under
test runs, which failed every CI job on the previous commit. The tests
request 2.37.0 and 2.37.5 instead; 2.37.5 is not a release, so the
download still fails as the test expects.

Part of #1258.
@codecov-commenter

codecov-commenter commented Sep 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.98236% with 82 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.04%. Comparing base (aef0866) to head (4f31182).

Files with missing lines Patch % Lines
R/build.R 93.44% 30 Missing ⚠️
R/expose.R 94.25% 12 Missing ⚠️
R/build_record.R 97.91% 8 Missing ⚠️
R/utils.R 60.00% 8 Missing ⚠️
R/install.R 63.15% 7 Missing ⚠️
R/model.R 98.43% 6 Missing ⚠️
R/path.R 88.57% 4 Missing ⚠️
R/run.R 97.29% 3 Missing ⚠️
R/zzz.R 81.81% 2 Missing ⚠️
R/args.R 94.73% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1290      +/-   ##
==========================================
+ Coverage   92.08%   93.04%   +0.96%     
==========================================
  Files          15       19       +4     
  Lines        6570     7309     +739     
==========================================
+ Hits         6050     6801     +751     
+ Misses        520      508      -12     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jgabry
jgabry marked this pull request as ready for review September 25, 2026 21:38
@jgabry
jgabry changed the base branch from master to v1.0 September 25, 2026 21:38
@jgabry
jgabry merged commit f4bb79c into v1.0 Sep 25, 2026
16 checks passed
@jgabry
jgabry deleted the cmdstan-2.37 branch September 25, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants