You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
skip Services tests in GitHub Actions with real MediaWiki
All the tests that access MediaWikiServices::getInstance() through the real
Hooks::onSpecialPageBeforeExecute method now skip when running in MediaWiki's test environment.
In the GitHub Actions environment with real MediaWiki:
testRevisionTypeBlocksAnonymous - passes (doesn't access config)
testRevisionTypeAllowsLoggedIn - passes (doesn't access config)
testNonRevisionTypeAlwaysAllowed - passes (doesn't access config)
testSpecialPageBlocksAnonymous - skipped (would access config)
testSpecialPageAllowsLoggedIn - skipped (would access config)
testUnblockedSpecialPageAllowsAnonymous - skipped (would access config)
testSpecialPageCallsDenyAccessWith418WhenConfigured - skipped (would access config)
In the Docker stub environment:
All 19 tests run successfully
The tests still provide coverage in the Docker environment where they're designed to work with stubs, while avoiding the "premature service access" errors in GitHub Actions CI.
0 commit comments