When a new page is created, the rc_old_len value (previous revision size) for the creation is set to zero. To be consistent, the rebuildrecentchanges.php script should also set the rc_old_len value for page creations to zero, rather than null. Otherwise, the Main Page (by default 735 bytes) and other new pages will not show the size on Special:RecentChanges.
Customize query in gerrit
|mediawiki/core||master||+1 -1||Set the previous size for page creations to zero in rebuildrecentchanges.php|
We should have an integration test that makes a few contributors, checks the recent changes table, and then checks again after rebuilding the table. Right now it’s all manually checked.