-
Notifications
You must be signed in to change notification settings - Fork 6
Proposal for Backwards Compatibility & Releases #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 9 commits
bb1c0ad
b89f481
74950fb
8249b01
3e42e55
8e056a4
e56015f
420e233
21ca4a9
1396b15
b03b8b2
3a6b995
7d6fd9e
8074cdc
3c3dcbd
ef669fc
a7680f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| # Releases & Compatibility | ||
|
|
||
| To date, we have been somewhat cavalier about making breaking | ||
| changes in Fairlearn. | ||
| Although we are currently pre-`v1.0.0` and hence without particular | ||
| commitments to compatibility (as generally understood - see e.g. | ||
| the [Semantic Versioning Scheme](https://semver.org/)), we should | ||
| work to reduce the number of breaking changes we make. | ||
|
|
||
| ## The Problem | ||
|
|
||
| At the time of writing, we have just released `v0.4.6`, which has | ||
| some substantial breaking changes in the Metrics area of Fairlearn. | ||
| Before it, `v0.4.5` reworked a smaller subset of this functionality, | ||
| caused smaller breakages. | ||
| There are also further changes to Metrics planned, which may well | ||
| cause further breaks (although these should be more minor). | ||
| All this is obviously undesirable from a user standpoint - these look | ||
| like 'patch' level releases, but are actually breaking their code. | ||
| Concretely, we've had users install Fairlearn with `pip`, and then | ||
| find themselves unable to run Notebooks from our GitHub project - not | ||
| because the functionality was missing, but because it had been | ||
| renamed. | ||
| Moving our notebooks to being generated as part of the documentation | ||
| [in our examples directory](https://github.com/fairlearn/fairlearn/tree/master/examples) | ||
| will help with this, since this will result in the notebooks being | ||
| versioned. | ||
| However, improved backwards compatibility is still desirable. | ||
|
|
||
| We do not need deprecation policies as elaborate of those of | ||
| [SciKit-Learn](https://numpy.org/neps/nep-0023-backwards-compatibility.html) | ||
| or [NumPy](https://numpy.org/neps/nep-0023-backwards-compatibility.html) - indeed, | ||
| policies such as those would be excessive for Fairlearn, given the | ||
| size of our code and user bases. | ||
| However, we do need to start to move in that direction, or we will | ||
| not be able to grow our user base due to chaos in the code. | ||
|
|
||
| ## Support Policy | ||
|
|
||
| Starting with `v0.5.0` we should make a commitment that anything which works at `v0.n.m_0` will also work for `v0.n.m` so long as `m >= m_0`. | ||
| However, we do *not* guarantee compatibility between `n` and `n+1` in this scheme (although we would seek to minimise breakage). | ||
|
Comment on lines
+42
to
+43
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is what we have in sklearn as well. |
||
| If we have to do `v.n.m.post[i]` releases, we will only support the final `post` release in the chain. | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is very reasonable. I like this.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps something I should highlight in the text is that I'm not saying anything about |
||
| In order to support less mature functionality, we should also add | ||
| a `fairlearn.experimental` package (see [a similar namespace in | ||
| SciKit-Learn](https://scikit-learn.org/stable/modules/classes.html#module-sklearn.experimental)). | ||
| Anything in there will be subject to breaking at any time. | ||
| Using an `experimental` namespace would not have helped with our | ||
| current set of breaks, since the changes were being made to core | ||
| functionality. | ||
| Rather, this is to give future developers a space where they can | ||
| get feedback on new functionality without immediately being | ||
| committed to supporting their speculative design decisions. | ||
|
|
||
| At the time of writing, it appears that the dashboard code does | ||
| not use namespaces. | ||
| However, namespaces are supported in TypeScript, and as we develop | ||
| the UX code, we should introduce a similar distinction. | ||
|
|
||
| To monitor the required backwards compatibility, each new release | ||
|
riedgar-ms marked this conversation as resolved.
|
||
| will have a build pipeline associated with it. | ||
| This pipeline will run the *tests associated with the release tag* | ||
| against the version of Fairlearn in `master`. | ||
| In keeping with the note about `post[i]` releases above, the build will only run against the last release in each release branch. | ||
|
riedgar-ms marked this conversation as resolved.
Outdated
|
||
| The build will become part of the PR Gate for `master`, except when | ||
| we are moving from `v0.n` to `v0.n+1`. | ||
|
|
||
| ## Revised Branching and Release Policy | ||
|
|
||
| Our recent releases have been made from `master`, without | ||
| making a release branch. | ||
| While this approach has desirable properties, using release branches | ||
| will work better with the more robust support policy described above. | ||
|
|
||
| For all the `master` and `release` branches, we will require a linear | ||
| history in GitHub. | ||
| This forbids plain `merge` commits, and we will prefer squash merges | ||
| to rebases. | ||
|
|
||
| We will keep the `master` branch at `v0.m.n.dev0` at all times, | ||
| indicating that `master` is under active development (although we will | ||
| always seek to keep `master` in a shippable condition). | ||
| Releases will occur from branches. | ||
|
|
||
| To create a new release: | ||
|
riedgar-ms marked this conversation as resolved.
|
||
| 1. Create a branch `release/v.0.n.m` | ||
| 1. Remove the `dev0` suffix from the version on the release branch | ||
| - Bump `master` to `v0.n.m+1.dev0` | ||
| 1. Run the release pipeline on the new release branch | ||
| 1. Create a GitHub Release corresponding to the new package | ||
| (hopefully this can be automated) | ||
| 1. Create the new build pipeline to monitor backwards compatibility | ||
|
|
||
| ### Post Releases | ||
|
|
||
| We should only put out `post[i]` releases for essential fixes (either | ||
| to algorithms or code) - no new features are allowed. | ||
| In general, fixes should be made in `master` and individually moved | ||
| to the appropriate release branch as required. | ||
| The move will probably best be done with `git rebase -i`, in order to | ||
|
riedgar-ms marked this conversation as resolved.
Outdated
|
||
| preserve a linear history on each branch. | ||
| After the release, create an appropriate GitHub release, and update | ||
| the corresponding backwards compatibility build. | ||
Uh oh!
There was an error while loading. Please reload this page.