Skip to content

Weekly release schedule #84

Open
Open

Description

@mrocklin

Currently we release dask/dask and dask/distributed every two weeks on Friday by loose convention (we're happy skipping or adding a release based on need and availability).

I'd like for us to consider increasing this frequency to weekly, still on Fridays. I've chatted with @jrbourbeau (who seems to be doing most of the releasing these days) and he seems game.

I thought I'd list some concerns that might arise that we should be aware of:

  1. This is an increased burden on maintainers
  2. Changes will have less time to marinate in master in order to find issues with them

I'm personally ok with these. I thought I'd bring it up in case other folks had thoughts or concerns.

cc @TomAugspurger @jakirkham @quasiben

Activity

  1. martindurant commented on Aug 7, 2020

    @martindurant
    Member

    Whilst there is certainly some cost to having to explicitly decide to release, it also acts as a safeguard in times when we know there is instability.

    Can you enumerate the advantages of a strict weekly cadence?

  2. jakirkham commented on Aug 7, 2020

    @jakirkham
    Member

    I'm actually pretty happy with the 2 week cadence. Moving to 1 week makes it harder to do more complex changes.

  3. mrocklin commented on Aug 7, 2020

    @mrocklin
    MemberAuthor

    Whilst there is certainly some cost to having to explicitly decide to release, it also acts as a safeguard in times when we know there is instability.

    Can you enumerate the advantages of a strict weekly cadence?

    Ah, sorry, I didn't meant to imply strict at all. My intention was to suggest that we change the convention of "let's release roughly every couple of weeks on friday" to "let's release roughly every week on friday"

  4. mrocklin commented on Aug 7, 2020

    @mrocklin
    MemberAuthor

    I'm actually pretty happy with the 2 week cadence. Moving to 1 week makes it harder to do more complex changes.

    I'm not sure I follow. Presumably complex changes would live in a PR until they're ready to merge, and then they would be released the following Friday. I do agree that we lose out on the extra marinade time, which is valuable for complex changes, but in those cases (which I think show up every few months) we can skip a week as needed.

  5. jakirkham commented on Aug 7, 2020

    @jakirkham
    Member

    That can complicate testing and development when multiple people are involved and we need feedback from users. In particular I'm thinking about scheduler improvements, which will involved changes to Dask and Distributed.

  6. mrocklin commented on Aug 7, 2020

    @mrocklin
    MemberAuthor

    That can complicate testing and development when multiple people are involved and we need feedback from users. In particular I'm thinking about scheduler improvements, which will involved changes to Dask and Distributed.

    I'm still not sure I understand. Are there scheduler improvements recently where this has been an issue?

    And to be clear, I'm not at all proposing anything strict. Certainly if there was inconsistency then we wouldn't release. We're still able to exercise judgment when deciding whether or not to release.

  7. mrocklin commented on Aug 7, 2020

    @mrocklin
    MemberAuthor

    Can you enumerate the advantages of a strict weekly cadence?

    To be clear, I'm in no way advocating for a strict cadence of any sort, but to provide more transparency I've written up my current situation in this issue:

    #85

    As I work on Coiled, a managed Dask service, I'm trying to put as much into Dask as possible. Longer release cadences make co-development more awkward.

    However, I also think that Dask has historically benefitted from having a shorter release cycle. People see their results in a released version sooner, and things feel generally more responsive. We used to release weekly for a while and it worked out pretty well. I think that we shifted to bi-weekly around the time that I stopped managing releases myself.

  8. jakirkham commented on Aug 7, 2020

    @jakirkham
    Member

    I think there has been a lot of value gained from having a predictable release schedule from Dask (particularly as the project and community have matured). This has certainly made things easier engaging with stakeholders in and around RAPIDS. Would encourage that we keep some kind of schedule going forward (as opposed to going more ad-hoc or requesting last minute releases, which puts a lot of pressure on folks).

    From the development side, I would hope that things like nightlies ( #76 ) fill the gap between the regular release cycle and those needing the latest changes.

    Maybe it would beneficial to set aside some time next week to get a better handle on what the use case is here and how we can better fill it?

  9. mrocklin commented on Aug 7, 2020

    @mrocklin
    MemberAuthor

    I think there has been a lot of value gained from having a predictable release schedule from Dask (particularly as the project and community have matured).

    Agreed. I'm suggesting that we do what we're doing now, but with the convention moving from two weeks to one week. I think that we're in agreement here.

    Would encourage that we keep some kind of schedule going forward (as opposed to going more ad-hoc or requesting last minute releases, which puts a lot of pressure on folks).

    Yup. Same.

    Maybe it would beneficial to set aside some time next week to get a better handle on what the use case is here and how we can better fill it?

    I'm happy to chat about this, but I think that getting these thoughts down on Github is also useful. If you want to chat now for a few minutes I'm around. I'd be happy to meet up in whereby.com/dask-dev

  10. jacobtomlinson commented on Aug 10, 2020

    @jacobtomlinson
    Member

    Some general thoughts.

    This is an increased burden on maintainers

    This process can be automated a little further, as it is in many other projects. Currently releases involve pushing to PyPI manually from a clean git repo. We could add Travis or GHA config to do this automatically when tags are pushed.

    I've also had a pleasant experience with release drafter in other projects. It maintains a draft release for you with the tag automatically populated based on some rule (in Dask's case it would just be a minor bump most of the time). It also populates rich release notes from the PRs that have been merged since the last tag with links, author names and categories if PRs are tagged.

    Changes will have less time to marinate in master in order to find issues with them

    I'm always curious about how many folks are using master and updating regularly. We assume that if we merge a bad PR someone will raise a bug to alert us. But how confident are we about that?


    People see their results in a released version sooner, and things feel generally more responsive.

    I agree with this from a contributor/maintainer perspective. However in the past as a user in a restricted environment this has been very frustrating.

    Dask releases frequently and only maintains a master branch. One of the results of this is that bug fix releases are rare because we can be confident that they will be released in the next couple of weeks anyway along with everything else. We only do a bug fix release if something really broken gets tagged.

    In my experience of production workflows, dependencies are pinned to minor versions and updated infrequently. This is to help guarantee the stability and reproducibility of those workflows. An example might be a production system using a curated conda environment which gets major and minor updates every 6 months and only bug fixes in between.

    In those environments release notes may also be checked by a human, and frequent releases can result in patching fatigue (I have been that human).

    The result of this is that a bug can be introduced one week and fixed the next, but folks with less flexible environments may be stuck with that bug for a long time.

    From past survey results we've seen that folks are pretty happy with Dask's stability, so I don't think this happens often or affects a large number of people. I think the stability is down to the CI and testing that we have which catches many problems before they are merged. But I think the only way we could improve that metric would be to be more thoughtful with our adherence to SemVer, backward compatibility and bug fix releases.

    The counterpoint to that would be to move to CalVer. Moving to a weekly(ish) release cycle further reduces the usefulness of SemVer. Arguably is has little value today on our fortnightly cycle compared to projects with longer cycles and interim bugfix releases. However that switch would abandon the minority user group who care about pinning and bug fix releases.

  11. mrocklin commented on Aug 11, 2020

    @mrocklin
    MemberAuthor

    This is an increased burden on maintainers

    I agree that this is true in general, but in this case the people who are doing the releases (James and myself) are asking for it, so I don't think that this is an issue in the case of Dask.

    Regarding automation

    We've talked about automation in the past. Releasing Dask isn't really that onerous, and I don't think that automated tools are likely to handle it well. When I release about 80% of the time is spent writing up the changelog. But we're not really clean enough about commit messages / PR titles that this can be automated yet. Most of the time here is spent in applying human judgement. It's also only like a 40m job, and one that I find an educational way of keeping up with the project.

    One of the results of this is that bug fix releases are rare because we can be confident that they will be released in the next couple of weeks anyway along with everything else. We only do a bug fix release if something really broken gets tagged.

    Issuing releases is cheap. If there is a significant issue we can always release. I think that we see this rarely because significant issues are themselves relatively rare, at least in my experience with the project.

    In my experience of production workflows, dependencies are pinned to minor versions and updated infrequently. This is to help guarantee the stability and reproducibility of those workflows. An example might be a production system using a curated conda environment which gets major and minor updates every 6 months and only bug fixes in between.

    This is my experience as well, but typically I find that people don't just pick a release, they make sure that things work for them, and then cement that in. In that context it seems like frequent releases is advantageous to me.

    In those environments release notes may also be checked by a human, and frequent releases can result in patching fatigue (I have been that human).

    Totally understood. I want to make it completely clear here that I'm not asking any of you to do any work. I'm asking you if you object to me doing more work.

  12. mrocklin commented on Aug 11, 2020

    @mrocklin
    MemberAuthor

    My general sense of this conversation is that folks are engaging in a discussion about releasing procedures generally while I'm trying to talk about Dask in particular. In general I agree with all of your points about the potential costs and challenges of releasing. However, pragmatically, I don't think that those concerns apply in this specific case. I think that this is especially true given ...

    1. I or James tend to do the work here
    2. We haven't proposed any strict policies, or any strict requirements
    3. This is the way that we've done things for a long while without any issue arising

    So if possible I'd love to move the conversation about releasing generally elsewhere, and ask a more pragmatic question: "Does anyone have specific qualms about performing more frequent releases when everything seems like it's fine to release, assuming that they are not expected to do any work?"

  13. martindurant commented on Aug 11, 2020

    @martindurant
    Member

    You could have phrased this as "anyone objecting to a release this week?" a couple of times, followed by "hey, we've released weekly for the past three weeks, has this had any negative effect?"
    On that basis, I would say go ahead. If we run out of willing releasers, we can always reduce the frequency, since this isn't a public commitment.

  14. mrocklin commented on Aug 11, 2020

    @mrocklin
    MemberAuthor

    You could have phrased this as "anyone objecting to a release this week?" a couple of times, followed by "hey, we've released weekly for the past three weeks, has this had any negative effect?"

    Good thought. I tried that a bit here but didn't get any response: #85 . I probably should have assumed lazy consensus and gone ahead.

    On that basis, I would say go ahead. If we run out of willing releasers, we can always reduce the frequency, since this isn't a public commitment.

    That's good to hear. Thank you for the comment @martindurant

  15. datametrician commented on Aug 12, 2020

    @datametrician

    I don't see any clear benefits to moving to weekly, and this would make things more difficult for RAPIDS in particular.

    Also, given our cadence of testing, some bugs take 4-5 business days to realize as we have a few large-scale Dask tests that require 100+ GPU. Releasing weekly gives us less time to catch these errors.

  16. 25 remaining items

  17. mrocklin commented on Aug 12, 2020

    @mrocklin
    MemberAuthor

    At the end of the day 20% say Dask isn't stable enough, 10% have hard time upgrading,

    See response in #84 (comment)

    there seems to be general push back

    I'm only hearing response from the RAPIDS group so far.

    We had an issue not to recently @mrocklin where a release broke our scale testing that took nearly 2 weeks to debug.

    Was this caused by frequent releases? If we had released with three weeks rather than two would that have avoided this particular issue? Is there somewhere where I can see what happened?

    You have examples from Jacob and me

    So far the only evidence of fast releases causing issues I'm seeing is one from Jacob. Everything else here seems to be theoretical.

    ... but ultimately I don't think anecdotal evidence is going to push us to a decision

  18. mrocklin commented on Aug 12, 2020

    @mrocklin
    MemberAuthor

    I fundamentally believe a project as mature as dask shouldn't release weekly and have more standard conventions like RC and code freeze.

    Again, in general I agree, but we've done this for a long while and received no complaints, except for this conversation, all of which is coming from one group. RAPIDS is important, and I'm personally committed to make sure that things are smooth. So far though my impression is that there is a philosophical concern here, but without much actual history of issues. If there is a history of issues it would be good to surface details about those.

  19. mrocklin commented on Aug 12, 2020

    @mrocklin
    MemberAuthor

    In contrast, I'll point out that we often see bug reports for things that have already been fixed in master. This happens once every couple of weeks probably (more often if there is some tricky bug, but we can resolve that with ad-hoc releases). The evidence of value for frequent releases is decently high.

  20. jacobtomlinson commented on Aug 12, 2020

    @jacobtomlinson
    Member

    As my example is from my Met Office days it would be charitable to say there are two groups represented. But I appreciate I now wear a RAPIDS hat and that group shares this concern.

    I would also point out that users from my example are unlikely to raise issues or communicate their problem to us. They know the problem is their long cycle but are powerless to change it for legal or governance reasons.

  21. mrocklin commented on Aug 12, 2020

    @mrocklin
    MemberAuthor

    Good point

  22. martindurant commented on Aug 12, 2020

    @martindurant
    Member

    The perhaps surprising amount of conversation here suggests to me that, whatever happens in the immediate next few releases, we should discuss this at the monthly meeting. Indeed, if the other open source projects (numba, etc) are doing RC releases and long cycles, we might want to think about why there is a difference. Are there well-known examples in the pydata sphere that have one- or two-week cycles? Not to be answered in this thread, perhaps :)

  23. mrocklin commented on Aug 12, 2020

    @mrocklin
    MemberAuthor

    I reset/deleted the poll to include a "no perference" option. For transparency here were the results from before:

    release-frequency

  24. datametrician commented on Aug 14, 2020

    @datametrician

    Any next steps on this, or is it something we will talk about in the monthly community meeting?

  25. martindurant commented on Aug 14, 2020

    @martindurant
    Member

    I would suggest that, for the meeting, we have handy the survey results from Matt, and examples from the community around release cycles.

  26. datametrician commented on Aug 14, 2020

    @datametrician

    Screen Shot 2020-08-14 at 11 04 54 AM
    Agreed, seems the community is split evenly.

  27. mmccarty commented on Aug 17, 2020

    @mmccarty
    Member

    Late chiming in here, but I'm getting a sense from the survey and discussions that some folks would like more stability and some want more frequent releases. The existence of stability needs indicate that time should be taken to understand those concerns and improve the release verification process. Once the quality of each release is measured and controlled with minimal impact to the maintainers, an increase in the release cadence can be considered.

    Faster releases do help address issues quickly, but what can be done to prevent them in the first place?

  28. datametrician commented on Sep 12, 2020

    @datametrician

    Maybe another reason for weekly releases being too often #93 (comment)

  29. eric-czech commented on Sep 15, 2020

    @eric-czech

    For what it's worth, a weekly release would be helpful for us in our current OSS project (https://pystatgen.github.io/sgkit/). We are trying to avoid vendoring in code as much as possible and the faster releases would certainly help make sure the delay is manageable. These issues are a few we ran into recently with somewhat less common SVD use cases and the faster we can get the fixes upstream, the less likely we are to maintain our own implementations instead. Presumably this won't be common, but it would be nice to know that the upstream release path has little friction when it happens.

  30. kkraus14 commented on Oct 2, 2020

    @kkraus14
    Member

    Proof point for a struggle with weekly releases:

    We recently merged in some non-trivial changes to how graph culling is implemented dask/dask#6510. After merging a weekly release was cut, 2.28.0, and subsequently a user found a performance issue caused by it dask/dask#6694.

    We're in a lucky situation now where nothing has been built on top of dask/dask#6510 yet, so we're able to easily and cleanly revert it to cut a new release to fix the reported performance problem.

    Moving forward, presumably we can fix the performance issue and re-merge dask/dask#6510 and start building things on top of it. Now, say a new bug or performance regression is found due to this work:

    • Would we revert all of the dependent PRs in order to cut a weekly release?
    • Would we cut a weekly release knowingly having performance issues in order to continue moving forward with the HLG work?
    • Would we delay a new release until the performance issues are resolved?
  31. mrocklin commented on Oct 2, 2020

    @mrocklin
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions