<div dir="ltr">I like this idea, but I have a few comments.<div><br></div><div>It seems like the boundary between a bugfix and new functionality is pretty blurred in most instances.  Few are the bugfixes which are just correcting typos or a single line of code, and oftentimes in order to fix a bug fully, a significant amount of new code needs to go in.  So I have my concerns about how to deal with making the decision when something should go in stable or in yt branches.</div><div><br></div><div>Also, who will be responsible for applying code from stable to the yt branch after a PR has been merged with stable?  Is this to be the original PR author, or instead someone dedicated to doing this within the yt community (perhaps for a month at a time)?  Either way, this is potentially a considerable onus for someone, particularly (as you note) in cases where the bugfix code works differently between stable and dev branches.  We already have a relatively moderate learning curve associated with new users trying to contribute code (learning BB, merging to the correct branch, correcting code after comments, etc.), and my concern is that this additional task may be just one more hurdle that keeps new devs away from contributing.  But perhaps I'm wrong.  At least for veteran developers, I don't think the additional work will be that much of a challenge.</div><div><br></div><div>So in general, I am for the suggested change, but I think we need to think about how best to address some of these concerns moving forward.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 3:02 AM, Suoqing JI <span dir="ltr"><<a href="mailto:suoqing@physics.ucsb.edu" target="_blank">suoqing@physics.ucsb.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>I agree to the suggestion that the bugfix should also go into the stable branch.</div><span class=""><div><br></div><div><blockquote type="cite"><div dir="ltr"><div>as soon as a bugfix pull request to stable goes in, there should be an accompanying merge from the stable branch into the yt branch to ensure that both branches get bug fixes.</div></div></blockquote><br></div></span><div>This is one possible way of doing it, so we can avoid the potential “mixing” of the new features in yt branch into the stable branch: <a href="http://stackoverflow.com/questions/7165989/mercurial-apply-a-bugfix-change-from-stable-named-branch-to-dev-branch" target="_blank">http://stackoverflow.com/questions/7165989/mercurial-apply-a-bugfix-change-from-stable-named-branch-to-dev-branch</a></div><div><br></div><div><br></div><div>Best wishes,</div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>--</div><div>Suoqing JI</div><div>Ph.D Student</div><div>Department of Physics</div><div>University of California, Santa Barbara</div><div>CA 93106, USA</div></div></div></div></div>
</div>
<br><div><blockquote type="cite"><div><div class="h5"><div>On Jan 13, 2015, at 3:44 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>Now that yt 3.1 is making its way out the door, I'd like to come back to a discussion we had last year about bugfixes.</div><div><br></div><div>I've made a pull request to the YTEP repository that summarized the change I'm proposing:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/ytep/pull-request/48/modify-ytep-1776-to-require-that-bugfixes/diff" target="_blank">https://bitbucket.org/yt_analysis/ytep/pull-request/48/modify-ytep-1776-to-require-that-bugfixes/diff</a><br></div><div><br></div><div>Basically, I think bugfixes need to go to the stable branch rather than the yt branch.  Currently, all new changes go to the yt branch.  While this does simplify our development practices, this makes it difficult for us to release new versions that only include fixes for bugs.  Instead, even minor version releases that are cut from the yt branch include new features and API breakages.</div><div><br></div><div>I think this approach violates the principle of least surprise for users who have download a bugfix release.</div><div><br></div><div>The solution, I think, is to ensure bugfixes are only applied to the stable branch.  This will ensure that we can straightforwardly do bugfix releases that inlude only bugfixes and that new features and API changes are isolated to the more "experimental" yt branch.</div><div><br></div><div>This does come with some possible down sides.  In particular, there will likely be some confusion as we switch our development practices.  In addition, new contributors may find it difficult to split pull requests into new features that should go to the yt branch and bugfixes that should go to the stable branch.  It also adds a new maintenance burden: as soon as a bugfix pull request to stable goes in, there should be an accompanying merge from the stable branch into the yt branch to ensure that both branches get bugfixes.  This gets more complicated if the bugfix looks different in the yt branch and the stable branch.</div><div><br></div><div>All that said, I think these new maintenance burdens can be overcome with a bit of vigilance and maybe some new tooling.</div><div><br></div><div>I've probably said enough about this.  What do you all think?  Comments and concerns are very welcome.</div><div><br></div><div>Best,</div><div><br></div><div>Nathan Goldbaum</div></div></div></div>
_______________________________________________<br>yt-dev mailing list<br><a href="mailto:yt-dev@lists.spacepope.org" target="_blank">yt-dev@lists.spacepope.org</a><br><a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br></div></blockquote></div><br></div></div><br>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cameron Hummels<div>Postdoctoral Researcher</div><div>Steward Observatory</div><div>University of Arizona</div><div><a href="http://chummels.org" target="_blank">http://chummels.org</a></div></div>
</div>