-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 385: GitHub Action to check compilation and correctness of cmdstan
syntax.
#386
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #386 +/- ##
=======================================
Coverage 96.84% 96.84%
=======================================
Files 15 15
Lines 1873 1873
=======================================
Hits 1814 1814
Misses 59 59 ☔ View full report in Codecov by Sentry. |
|
Yes good idea.
It comes down to how invalid it is. Sometimes there are depreciation warnings that don't fail but yes in the case where this isn't the case it should error on compilation.
I agree and I was also excited about this. Unfortunately, it currently throws a whole bunch of false positives due to our use of functions. Potentially we could get around this if we use snapshot tests (i.e accept the current false postivites) or in some other better way. |
Thanks for the explanation! This does sound useful once it has been confirmed that deprecation warnings are indeed caught while they wouldn't be with R CMD check. Could you add comments for the points you mentioned please?
It would be great to have a note about this in the workflow file, next to the
This could also be a comment in the workflow file, or part of a |
We don't currently have one of these but we could and should. In 57d9855 I added comments expanding on my replies here. |
Just working up a failing example. |
See #394 for a test PR that should capture soft depreciations. Currently testing locally using |
Another test PR that should pass #396 |
…stan` syntax. (#386) * first draft action that installs cmdstan * use the correct approach to checking for stan changes * add check for cmdstanr compilation and syntax correctness * add skeleton news item * update PR number * use pull request not PR * Automatic readme update [ci skip] * make sure to install epinowcast * missing testthat call * Automatic readme update [ci skip] * remove spurious readme figures * add comments for cmdstan workflow * make the refex match exactly only * try a simpler approach to error catching * fail around more --------- Co-authored-by: GitHub Action <action@github.com>
…stan` syntax. (#386) * first draft action that installs cmdstan * use the correct approach to checking for stan changes * add check for cmdstanr compilation and syntax correctness * add skeleton news item * update PR number * use pull request not PR * Automatic readme update [ci skip] * make sure to install epinowcast * missing testthat call * Automatic readme update [ci skip] * remove spurious readme figures * add comments for cmdstan workflow * make the refex match exactly only * try a simpler approach to error catching * fail around more --------- Co-authored-by: GitHub Action <action@github.com>
Description
This PR closes #385.
As discussed in #385 this PR adds an action to check the correctness of
cmdstan
code onmain
against the latest version ofcmdstan
. It is setup to run on a weekly schedule and to also run ifstan
code is updated onmain
or on a PR tomain
ordevelop
. I've tested this locally interactively and am just running viaact
to test the GitHub Action components.@Bisaloo or @sbfnk would likely be good fits to review this PR.
Note: I think this add something on top of compiling the model in the Rmd check but I could be mistaken.
Checklist
NEWS.md
and theDESCRIPTION
.