Patch demo

Patch demo is a web site that lets you spin up short-lived MediaWiki instances for testing changes from Wikimedia's Gerrit code review. You can create wikis with unmerged, work-in-process changes.
Create temporary, public wikis to test:
- MediaWiki core
- Extensions and skins
- Multiple patches together
- Different MediaWiki versions
- Wiki farms – Multiple wikis which share a CentralAuth (limited)
You can also edit each wiki's MediaWiki code from your browser using code server.
Public instance: https://patchdemo.wmcloud.org/
Quickstart
[edit]Requirements
[edit]- Wikimedia global account. It must be linked to a Phabricator account member of Trusted-Contributors
- (optional) Get added to the allow list
Create a wiki
[edit]- Go to https://patchdemo.wmcloud.org/
- Sign in to your Wikimedia global account
- When prompted click "Allow" to let Patch demo see your account info
- Choose a MediaWiki version (defaults to
master) - (optional) Paste the URL to any Gerrit changes
- (optional) Give your wiki a custom name. The name will be used to create a stable URL name for the wiki
- (optional) Use "Create Wikifarm" to generate a set of wikis with a shared Central Authentication.
- Select an extension bundle or choose which extension to install – Defaults to
Wikimedia - Click "Create demo"
Your wiki will be ready in a few minutes. The wiki will expire by default in 30 days; you can change the date by clicking on the Change link in the Expires column on Patchdemo's landing page.
Use your wiki
[edit]After your wiki is ready, you'll be able to:
- Link – each wiki is a public, sharable link where you can access your wiki (e.g.,
https://deadbeef.catalyst.wmcloud.org) - Edit – You may edit your wiki(s) to:
- Use the latest version of updated Gerrit patches.
- Change MediaWiki versions.
- Change extensions.
- Change other configurations like the wiki landing page, language code, core documentation, image loading method, proxying articles from Wikipedia.org or IP Masking.
- Delete – Once you're done testing, delete your wiki.
Tips
[edit]- Deletion: Click the Delete link in the wiki table on the Patch demo homepage when you're finished testing.
- Wikis come with a default expiry period and will be removed automatically once that time frame is up and will handle deletion if not done proactively.
- Users have the ability to extend the expiry date but we reserve the right to modify/override this whenever necessary for space or other purposes.
- Phabricator announcement: If you include a
Bug: TXXXtrailer in your Gerrit git commit message,PatchDemoBotwill comment on Phabricator with a link to your wiki. Toggle the "Announce wiki on Phabricator" checkbox to disable. - Gerrit links: Gerrit will show a link on your change to your Patch demo instance
- V+2 required: Patches must have Verified +2 review before you can create a Demo. This should happen automatically when your change passes its test if you're a member of Continuous integration/Allow list. Otherwise, ask another contributor to "recheck" your change.
Limitations
[edit]- Not suitable for security-sensitive testing
- MediaWiki only – no other services
- Wiki farms support is basic – As of early 2026, each wiki in a wiki farm will share all enabled extensions, languages, and a subdomain (i.e.,
https://abcd1234.catalyst.wmcloud.org/wiki1andhttps://abcd1234.catalyst.wmcloud.org/wiki2) - No dependency checking – While choosing an extension bundle should work fine, hand-selecting dependencies means wiki creation might fail if you're missing a dependency.
Report Issues or Request Features
[edit]File a task for the Phabricator project Catalyst (PatchDemo)
Add an Extension
[edit]See ADDING_EXTENSIONS.md for instructions on adding new extensions.
Project components/code
[edit]
Patch demo is a project that spans a handful of code repositories:
| Component | Description |
|---|---|
| patchdemo | Web frontend (PHP) |
| catalyst-api | Backend API (Go) |
| catalyst-tofu | Cloud VPS Infrastructure management (OpenTofu) |
| ci-charts | Helm charts that make MediaWiki instances |
Other links
[edit]- Catalyst documentation: https://wikitech.wikimedia.org/wiki/Catalyst
- Catalyst GitLab group: https://gitlab.wikimedia.org/repos/test-platform/catalyst
- Phabricator workboard: https://phabricator.wikimedia.org/project/view/7367/
- Toolhub: toolhub:tools/patchdemo