Repository navigation
chore: let agents start their own dev environment with mwenv - #104
Merged
Merged
Conversation
AGENTS.md assumed the checkout sits inside a MediaWiki-Docker install and told agents to ask the user otherwise. Such an install only serves the checkout inside it, never a worktree elsewhere, so an agent working in a worktree could test the wrong code. List the environments in order of preference: one the user has named, a disposable mwenv wiki for the current worktree (no MediaWiki installation needed), then a MediaWiki installation that contains this checkout. Point at CI's extra-extensions and extra-composer-packages for what the environment needs instead of listing them, and make the commands that hardcoded `docker compose exec` environment-neutral. Correct the Phan section: .phan/config.php also resolves Semantic MediaWiki, and without it Phan fails on includes/DataSource/Smw/ and stops preflight before PHPUnit. Note which PHPUnit tests skip without SMW and Bucket, and that Scribunto needs LuaSandbox on arm64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTS.md assumed the checkout sits inside a MediaWiki-Docker install, and told agents to ask the user otherwise. Such an install only serves the checkout inside it, never a worktree elsewhere, so an agent working in a worktree could end up testing the wrong code.
extra-extensions/extra-composer-packagesinstead of listing them, so it stays in sync with CI.docker compose exec …are now environment-neutral. mwenv usage is left to its own docs..phan/config.phpalso resolves Semantic MediaWiki. Without SMW, Phan reports 143 undeclared-class errors inincludes/DataSource/Smw/and preflight stops before PHPUnit.The same Dev environment block goes to every StarCitizenTools repo that uses
mediawiki-ci-workflows. It was piloted in AGGrid first.Test plan
docker composeor "from within a MediaWiki installation" references remaincomposer preflightto a pass (480 tests, 141 expected skips) and rendered a grid viamw.ext.aggrid.render. Its friction report produced the Phan, PHPUnit and arm64 notes.🤖 Generated with Claude Code