Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
18) Keep Wikibase master compatible with last stable MediaWiki Core

Date: 2021-04-28

Status

rejected

Context

Wikibase is currently only tested to be compatible with MediaWiki core and other MediaWiki extensions for:

  • sets of commits that are the HEAD of the master branch at one point in time
  • cut releases: either for the alpha, weekly train releases (i.e. releases delivered on WMF wikis), or the twice-yearly(ish) official MediaWiki releases

We want to give 3rd party Wikibase users regular 6 monthly releases.

MediaWiki release are currently not that regular; in part due to delays caused by the Covid-19 pandemic.

We intend to produce new Wikibase features on a more regular basis than 6 monthly and we want these to be available to users as soon as possible. Both for users to benefit from new features but also to shorten our development feedback cycles.

To be able to release Wikibase at any point in time such that it remains possible to apply security patches to MediaWiki core and to any extensions that are not maintained by WMDE these releases need to be compatible with a "cut release" of MediaWiki.

To ensure this compatibility there are two options:

  • Backport Wikibase features, and any dependent patches to the last stable release of MediaWiki before releasing. This was performed for the upcoming wmde1 release of Wikibase where patches made against master (i.e. 1.36 alpha releases) were backported to the Wikibase 1.35 branch
  • Keep Wikibase master compatible with the last stable release of MediaWiki

Doing the backporting results in leaving a possibly unknown amount of work for whoever is to make the release and adds lots of uncertainty. The additional backporting effort will need to be repeated for all upcoming Wikibase releases. This approach also means maintaining two different (even if only in the sense of git history) versions of the same functionality.

Keeping Wikibase compatible with last stable MediaWiki adds to every developer's workload. It may result in having to delay using new features in MediaWiki or having to write a compatibility layer in order to use them. It may result in developers inadvertently using a new feature and then discovering they need to either write some backwards compatibility layer for it or put that new feature behind a flag.

Doing so may result in being more decoupled from MediaWiki in the long run.

The overhead of the additional development effort will possibly be increasingly lower the more code has been written that way, and the more Wikibase releases have been published following this approach.

Keeping Wikibase compatible with last stable MediaWiki would likely mean avoiding the "double work" effort of developing the feature against the master branch, and "backporting" it to be compatible with the last stable version of MediaWiki needed for the Wikibase release for non-WMF users.

Decision

Ensure that Wikibase master maintains compatibility with the last stable release of MediaWiki core.

Consequences

  • Tooling will be required to help developers not break compatibility.
    • There should be automated tests to ensure that compatibility isn't broken.
    • Developers' local workflows will have to be adapted to make it easier to check compatibility.
  • When features of MediaWiki core are used that are newer than the latest stable release some compatibility layer must be used
  • When we cut the next Wikibase release in Fall 2021 we should have to do no extra work to ensure compatibility.