You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
This is an increased burden on maintainers
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.
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"
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.
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.
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.
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:
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.
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?
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
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.
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.
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 ...
I or James tend to do the work here
We haven't proposed any strict policies, or any strict requirements
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?"
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.
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
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.
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
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.
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.
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.
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 :)
Reacted by Matthew Rocklin, Jacob Tomlinson, Joshua Patterson, jakirkham and Keith Kraus
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?
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.
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?
Our release schedule has always been by convention, so delaying a release
is an easy thing to do. As an example, there are some non-trivial changes
happening to both dask/dask and dask/distributed right now. We might
choose to delay merging them until 2.29 gets out, then merge them all, and
then wait a couple of weeks in this case to let them marinate. This isn't
a regular thing, but flexibility in conventions can be helpful.
On Fri, Oct 2, 2020 at 12:00 AM Keith Kraus ***@***.***> wrote:
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 <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
<dask/dask#6694>.
We're in a lucky situation now where nothing has been built on top of
dask/dask#6510 <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 <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?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#84 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKZTE64SB657KGJ4HWGW3SIV3BTANCNFSM4PXZOAPA>
.
Activity
martindurant commentedon Aug 7, 2020
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?
jakirkham commentedon Aug 7, 2020
I'm actually pretty happy with the 2 week cadence. Moving to 1 week makes it harder to do more complex changes.
mrocklin commentedon Aug 7, 2020
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"
mrocklin commentedon Aug 7, 2020
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.
jakirkham commentedon Aug 7, 2020
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.
mrocklin commentedon Aug 7, 2020
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.
mrocklin commentedon Aug 7, 2020
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.
jakirkham commentedon Aug 7, 2020
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?
mrocklin commentedon Aug 7, 2020
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.
Yup. Same.
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
jacobtomlinson commentedon Aug 10, 2020
Some general thoughts.
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.
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?
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.
mrocklin commentedon Aug 11, 2020
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.
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.
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.
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.
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.
mrocklin commentedon Aug 11, 2020
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 ...
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?"
martindurant commentedon Aug 11, 2020
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.
mrocklin commentedon Aug 11, 2020
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.
That's good to hear. Thank you for the comment @martindurant
datametrician commentedon Aug 12, 2020
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.
25 remaining items
mrocklin commentedon Aug 12, 2020
See response in #84 (comment)
I'm only hearing response from the RAPIDS group so far.
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?
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
mrocklin commentedon Aug 12, 2020
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.
mrocklin commentedon Aug 12, 2020
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.
jacobtomlinson commentedon Aug 12, 2020
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.
mrocklin commentedon Aug 12, 2020
Good point
martindurant commentedon Aug 12, 2020
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 :)
mrocklin commentedon Aug 12, 2020
I reset/deleted the poll to include a "no perference" option. For transparency here were the results from before:
datametrician commentedon Aug 14, 2020
Any next steps on this, or is it something we will talk about in the monthly community meeting?
martindurant commentedon Aug 14, 2020
I would suggest that, for the meeting, we have handy the survey results from Matt, and examples from the community around release cycles.
datametrician commentedon Aug 14, 2020
Agreed, seems the community is split evenly.
mmccarty commentedon Aug 17, 2020
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?
datametrician commentedon Sep 12, 2020
Maybe another reason for weekly releases being too often #93 (comment)
eric-czech commentedon Sep 15, 2020
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.
kkraus14 commentedon Oct 2, 2020
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:
mrocklin commentedon Oct 2, 2020