Closed kyleam closed 1 year ago
@barrettk there's no rush on this, but when you have a moment, would you mind taking a look?
@seth127 Adding you too, if you happen to have a moment before @barrettk does.
I've pushed an update to make Drone also test against bbr's main to help catch issues like this.
If that commit is picked on top of this repo's current main, the build fails as expected: https://github-drone.metrumrg.com/metrumresearchgroup/bbr.bayes/388
I've pushed an update to make Drone also test against bbr's main to help catch issues like this.
Yeah I think this is a good idea. Does it make any sense to do this with nmrec
in bbr
as well you think? I imagine that package wont change as frequently (in general), so probably not worth the extra CI time, but just putting it out there.
@kyleam looks like my approval isn't worth much until im added as a collaborator:)
looks like my approval isn't worth much until im added as a collaborator:)
Don't listen to GitHub. It's still worth something to me :)
(added you)
Does it make any sense to do this with
nmrec
inbbr
as well you think? I imagine that package wont change as frequently (in general), so probably not worth the extra CI time, but just putting it out there.
I agree nmrec is probably less likely to break things (partly due to more focused domain, partly because bbr.bayes is reaching into the guts of bbr a lot more), so in my opinion it's not worth a dedicated pipeline for it. However, I wouldn't be against sneaking it into the cran-latest
pipeline (letting the latest release on MPN be tested by mpn:latest
).
(Similarly for testing nmrec's main here we could piggyback off the just-added bbr-main pipeline.)
Good discussion here. I'll defer to y'all on the details and just say that I'm glad we're thinking about these interdependencies.
copy_model_as_nmbayes() calls bbr::copy_model_from() underneath. copy_model_from() is supposed to overwrite the $PROBLEM record for the copied model, but it only handled upper cases record names until bbr's 13fb8e5f (copy_control_stream: use nmrec instead of regex, 2023-07-21).
A copy_model_as_nmbayes() test checks for lines that it expects to be in the parent model but not the new one. It uses "$prob" for the record name, and expects the old bbr behavior (i.e. the same problem line is in both the parent and child), leading to a failure with the unreleased bbr.
Use an upper case $PROB in the parent model so that copy_model_from() updates the record for bbr's versions before and after 13fb8e5f.
Re: https://github.com/metrumresearchgroup/bbr/pull/604
Test matrix
bbr.bayes main, bbr 1.7.0
bbr.bayes this PR, bbr 1.7.0
bbr.bayes main, bbr main
bbr.bayes PR, bbr main