T407131: CVE-2025-67479: Magic word replacement in legacy parser allows using reserved data attributes through wikitext seems to have caused failures in REL1_XX branches of parsoid
Seen doing backports for T412194: Deprecated: The predefined locally scoped $http_response_header variable is deprecated, call http_get_last_response_headers() instead in …/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php on line 55 on https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/1219224 https://integration.wikimedia.org/ci/job/quibble-composer-mysql-php81/20780/console
21:59:17 1) ParserIntegrationTest::testParse with data set "headings.txt: Fuzz testing: Parser14-table" ('legacy')
21:59:17 Failed asserting that two strings are equal.
21:59:17 --- Expected
21:59:17 +++ Actual
21:59:17 @@ @@
21:59:17 '<div class="mw-heading mw-heading2"><h2 id="a">a</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a><span class="mw-editsection-bracket">]</span></span></div>\n
21:59:17 -<table style="__TOC__">\n
21:59:17 +<table style="__TOC__">\n
21:59:17 <tbody><tr><td></td></tr>\n
21:59:17 </tbody></table>'
21:59:17
21:59:17 /workspace/src/tests/phpunit/suites/ParserIntegrationTest.php:72
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17
21:59:17 2) ParserIntegrationTest::testParse with data set "legacyHeadings.txt: Fuzz testing: Parser14-table" ('legacy')
21:59:17 Failed asserting that two strings are equal.
21:59:17 --- Expected
21:59:17 +++ Actual
21:59:17 @@ @@
21:59:17 '<h2><span class="mw-headline" id="a">a</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a><span class="mw-editsection-bracket">]</span></span></h2>\n
21:59:17 -<table style="__TOC__">\n
21:59:17 +<table style="__TOC__">\n
21:59:17 <tbody><tr><td></td></tr>\n
21:59:17 </tbody></table>'
21:59:17
21:59:17 /workspace/src/tests/phpunit/suites/ParserIntegrationTest.php:72
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17
21:59:17 3) ParserIntegrationTest::testParse with data set "parserTests.txt: Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""" ('legacy')
21:59:17 Failed asserting that two strings are equal.
21:59:17 --- Expected
21:59:17 +++ Actual
21:59:17 @@ @@
21:59:17 -'<p><span id="æ:_v">byte</span><a href="#æ:_v">backlink</a>\n
21:59:17 +'<p><span id="æ:_v">byte</span><a href="#æ:_v">backlink</a>\n
21:59:17 </p>'
21:59:17
21:59:17 /workspace/src/tests/phpunit/suites/ParserIntegrationTest.php:72
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17
21:59:17 4) ParserIntegrationTest::testParse with data set "parserTests.txt: Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id="" (legacy)" ('legacy')
21:59:17 Failed asserting that two strings are equal.
21:59:17 --- Expected
21:59:17 +++ Actual
21:59:17 @@ @@
21:59:17 -'<p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>\n
21:59:17 +'<p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>\n
21:59:17 </p>'
21:59:17
21:59:17 /workspace/src/tests/phpunit/suites/ParserIntegrationTest.php:72
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17
21:59:17 5) ParserIntegrationTest::testParse with data set "parserTests.txt: Sanitizer: Validating the contents of the id attribute (T6515)" ('legacy')
21:59:17 Failed asserting that two strings are equal.
21:59:17 --- Expected
21:59:17 +++ Actual
21:59:17 @@ @@
21:59:17 -'<p><br /><br id="a_space" />\n
21:59:17 +'<p><br /><br id="a_space" />\n
21:59:17 </p>'
21:59:17
21:59:17 /workspace/src/tests/phpunit/suites/ParserIntegrationTest.php:72
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17
21:59:17 6) ParserIntegrationTest::testParse with data set "parserTests.txt: Edit comment with section link that has a link in it" ('legacy')
21:59:17 Failed asserting that two strings are equal.
21:59:17 --- Expected
21:59:17 +++ Actual
21:59:17 @@ @@
21:59:17 -'<span class="autocomment"><a href="#A_link">→<bdi dir="ltr">[[A link]]</bdi></a></span>'
21:59:17 +'<span class="autocomment"><a href="#A_link">→<bdi dir="ltr">[[A link]]</bdi></a></span>'
21:59:17
21:59:17 /workspace/src/tests/phpunit/suites/ParserIntegrationTest.php:72
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17
21:59:17 7) ParserIntegrationTest::testParse with data set "parserTests.txt: Id starting with underscore" ('legacy')
21:59:17 Failed asserting that two strings are equal.
21:59:17 --- Expected
21:59:17 +++ Actual
21:59:17 @@ @@
21:59:17 -'<div id="_ref"></div>'
21:59:17 +'<div id="_ref"></div>'
21:59:17
21:59:17 /workspace/src/tests/phpunit/suites/ParserIntegrationTest.php:72
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17
21:59:17 8) ParserIntegrationTest::testParse with data set "parserTests.txt: HTML5 data attributes" ('legacy')
21:59:17 Failed asserting that two strings are equal.
21:59:17 --- Expected
21:59:17 +++ Actual
21:59:17 @@ @@
21:59:17 '<p><span data-foo="bar">Baz</span>\n
21:59:17 </p>\n
21:59:17 -<p data-abc-def_hij="">Quuz</p>'
21:59:17 +<p>Quuz</p>'
21:59:17
21:59:17 /workspace/src/tests/phpunit/suites/ParserIntegrationTest.php:72
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67
21:59:17 /workspace/src/tests/phpunit/suites/SuiteEventsTrait.php:67TLDR may be that rGPARae6b65472b12: Parser test sync just needs backporting