Page MenuHomePhabricator

MLEB bundle creates an empty INSTALL file
Closed, ResolvedPublic1 Estimated Story Points

Description

While creating an MLEB bundle, melange.php create-archive fetches the installation instructions from mediawiki.org for inclusion in the INSTALL file.

The request currently fails with 403 Forbidden, which results in an empty INSTALL file and PHP warnings:

text
$ php melange.php create-archive
PHP Warning: file_get_contents(https://www.mediawiki.org/w/api.php?action=query&titles=MediaWiki%20Language%20Extension%20Bundle/installation&prop=revisions&rvprop=content&format=json&formatversion=2): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
...

This blocks creating a complete MLEB release archive. T435318 tracks the MLEB 1.46 release.

Acceptance criteria

  • melange.php create-archive can fetch the MLEB installation instructions from mediawiki.org without receiving a 403 response.
  • The generated INSTALL file is non-empty and contains the expected installation instructions.
  • Creating the archive no longer produces the PHP warnings shown above.

QA plan

Run:

php melange.php create-archive

Verify that:

  1. the command completes without the reported HTTP/PHP warnings;
  2. the generated INSTALL file is non-empty;
  3. the file contains the expected installation documentation.

No additional automated test is required for this small external-request compatibility fix.

Details

Related Objects

Event Timeline

Change #1337813 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[translatewiki@master] melange: add user-agent for mediawiki.org request

https://gerrit.wikimedia.org/r/1337813

abi_ triaged this task as High priority.
abi_ added a parent task: T435318: Release MLEB for 1.46.
abi_ edited projects, added: LPL sprints (S3 2026 September); removed: LPL sprints.
abi_ set the point value for this task to 1.
abi_ moved this task from Ready for dev to In progress on the LPL sprints (S3 2026 September) board.

Change #1337813 merged by jenkins-bot:

[translatewiki@master] melange: add user-agent for mediawiki.org request

https://gerrit.wikimedia.org/r/1337813