-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Branches and releases
We have a rather simple branch setup for the dart project. Normally, everything is developed on the master branch. Features that are not yet ready for prime time are hidden under a flag, and enabled when sufficient stability has been proven. We occasionally create feature branches for landing big and disruptive changes. In addition to that, we have our dev, beta, and stable branches used for releasing the sdk.
In summary, we have in four main branches:
-
master: Used for "everyday" development; land your CLs here.
-
dev: Populated from the master branch via full pushes, usually twice a week. Only in emergencies are cherry picks landed on the dev channel. Don't land CLs here. Released via dev channel builds.
-
beta: Populated from the dev branch via full pushes, usually once a month, or via cherry picks. Don't land CLs here. Released via beta channel builds.
-
stable: Our main release branch, populated from the beta branch via full pushes when a release is ready, or via cherry picks. Don't land CLs here. Released via stable channel builds.
Our normal release cycle is roughly 2 months long, but we don't make any guarantees, i.e., we may ship early if we feel that the stability is good or we may ship late if it is not. We don't normally follow a feature driven release cycle, but in some cases for larger changes to the language we may postpone a release to get all tools in sync.
During the entire cycle we do full merges of master to dev, basically releasing a green build from master on dev roughly twice a week. In case of bugs found quickly we do another full push.
We spend the last ~2 weeks of the cycle stabilizing the beta channel, starting with a full push of the latest dev release to beta. We only cherry picking critical fixes to the beta channel. People continue working on the master branch and dev releases will continue to be released. In this 2 week period we do multiple batches of cherry picks a week, and release those on the beta channel. We call this cherry-pick season.
Once we have something that looks good we merge it to stable and release it there. During the 2 months we do patch security, crash and critical bug releases on stable based on the latest stable version.
See the cherry pick to beta page for all the details on how to get a change cherry picked.
Important
The wiki has moved to https://github.com/dart-lang/sdk/tree/main/docs; please don't edit the pages here.