-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
StanHeaders 2.26 revdep status #1034
Comments
Thanks @andrjohns! I've merged updated from the experimental branch into RStan v2.26 (currently, 2.26.15). Let's use the latest version in reverse dependency checks. |
Great! I'll re-run today and let you know EDIT: Only new failure was the |
And additional failures/breakages under RStan 2.26 & StanHeaders 2.26:
|
@bgoodri is there a particular state we want things to be in before a CRAN submission? Is it an option to submit to CRAN as-is and get a response on what else they would need done before a submission is accepted? |
@bgoodri Sorry to double-ping! But it would be great to have an idea of what the goalposts are for the submission process, especially if there's anything extra that I can do to help |
I’m not totally up to date on what the holdup is, so ignore this comment if not applicable. If the delay is just because some packages would break and haven’t been updated yet, then there is no need to wait until they are all fixed as long as they are notified in advance and given time to make necessary updates. If they choose not to update their package for whatever reason, you can still submit to CRAN even if it breaks their package (just tell CRAN you notified them in advance). This happens all the time. So if you’ve already made a good faith effort to help update packages that break, I would say just go ahead and submit to CRAN. But I might be misunderstanding the situation. |
Thanks for clarifying Jonah, that all makes sense to me! Hopefully this issue would be sufficient evidence for CRAN of notifying/patching packages as well. |
I agree we have nominally met CRAN's policy about notifying package maintainers weeks (if not months or years) in advance of changes that will break their packages, but breaking 10+ packages is different than breaking one or two. I would also agree that we can't continue to do what we have been doing in terms of trying to make rstan / StanHeaders backward compatible with every CRAN package, but no widely-used C++ library breaks downstream projects as wantonly as Stan does. I'm going to pester these maintainers once more and then we will have to do a StanHeaders release. |
Sounds good |
@hsbadr I've figured out the segfaults that you're seeing in the revdeps for If I'm not sure if this is something we'd have to resolve, or if it's a case of telling CRAN that |
This is a circular dependency. It can't be resolved without releasing both For |
@bgoodri I don't think any more packages will be submitting to CRAN any time soon (in my opinion), so I think the I also prompted the maintainers for the |
Today during the Stan meeting @bgoodri requested a version of stanc3js 2.26 with all the current deprecation warnings backported. I've prepared that branch here, based on the lexer-patch-v2.26.1 @andrjohns has already done some work on: See the diff with lexer-patch-v2.26.1: This ports all deprecation warnings from 2.31 back to 2.26, and also backports the improved error messaging where we include the code snippets and correct filenames. I did not backport the auto-update functionality from recent versions. That is probably too difficult of a task with the older compiler code base. However, it should be reasonable to also ship Does that sound good @andrjohns @bgoodri @hsbadr ? |
I uploaded a build |
Yes, that sounds good. If possible, can the parser warnings be made to say something to the effect of "call |
Yes, we can make the wording whatever you want. Right now the text always includes something along the lines of "This can be automatically changed using the canonicalize flag for stanc", so if you can tell me what the best RStan-specific message is to use there I can switch it out easily. |
OK, we'll come up with something once StanHeaders 2.26 is accepted by CRAN,
which hopefully will be soon because it breaks less than 2.21 does at the
moment.
…On Thu, Mar 23, 2023 at 3:31 PM Brian Ward ***@***.***> wrote:
Yes, we can make the wording whatever you want. Right now the text always
includes something along the lines of "This can be automatically changed
using the canonicalize flag for stanc", so if you can tell me what the best
RStan-specific message is to use there I can switch it out easily.
—
Reply to this email directly, view it on GitHub
<#1034 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZ2XKWMECSU7K6OR3EW3J3W5SQIHANCNFSM6AAAAAAUXRZGGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I think these backported deprecation warnings and auto-formatting from 2.31 would really only be needed if we thought there was going to be a long time between the 2.26 and 2.31 releases. At the moment there are only Just to say that these backports shouldn't be considered blocking for CRAN submission, imo |
It's great if we don't need them! I just wanted to make sure it was feasible if we did need them, and it turned out to not be too bad (just copy/pasting 3-4 files from the current stanc back in time was nearly enough on its own) so it isn't much wasted effort either way |
Obsoleted by #1053 |
@bgoodri @hsbadr FYI I re-ran the reverse-dependency checks for StanHeaders 2.26 on an (M1) Mac, and it flagged issues with some packages not having the
-D_REENTRANT
flag in their Makevars (and a couple of other smaller issues).I've opened PRs for most packages to properly handoff the installation to
rstantools
, but here's the current status:EDIT: Running the revdep checks under Windows identified a failure with
rxode2parse
The text was updated successfully, but these errors were encountered: