I saw a weird test failure today:
15:36:11 1) MediaWiki\Extension\DiscussionTools\Tests\ThreadItemStoreTest::testInsertThreadItems with data set #0 ('cases/ThreadItemStore/1simple-example') 15:36:11 Failed asserting that two arrays are equal. 15:36:11 --- Expected 15:36:11 +++ Actual 15:36:11 @@ @@ 15:36:11 'discussiontools_items' => Array ( 15:36:11 0 => Array ( 15:36:11 'it_id' => '1' 15:36:11 - 'it_itemname' => 'h-X-20220720010100' 15:36:11 + 'it_itemname' => 'h-X?action=edit&redlink=1-20220720010100' 15:36:11 'it_timestamp' => null 15:36:11 'it_actor' => null 15:36:11 ) 15:36:11 1 => Array ( 15:36:11 'it_id' => '2' 15:36:11 - 'it_itemname' => 'c-X-20220720010100' 15:36:11 + 'it_itemname' => 'c-X?action=edit&redlink=1-20220720010100' 15:36:11 'it_timestamp' => '20220720010100' 15:36:11 - 'it_actor' => '2' 15:36:11 + 'it_actor' => null 15:36:11 ) ...
This indicates that we're storing bogus data for permalinks. It looks like Parsoid HTML now has red links, and we don't handle that.
As a result of this, it's also impossible to reply to comments where the user and talk page are red links.